little changes
parent
78cc2e5dab
commit
5df504b09c
|
|
@ -1,2 +1 @@
|
|||
**/inventory.ini
|
||||
.vscode/settings.json
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="TemplatesService">
|
||||
<option name="TEMPLATE_FOLDERS">
|
||||
<list>
|
||||
<option value="$MODULE_DIR$/docker/roles/docker-common/templates" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
</module>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="SpellCheckingInspection" enabled="true" level="INFORMATION" enabled_by_default="true">
|
||||
<option name="processCode" value="true" />
|
||||
<option name="processLiterals" value="true" />
|
||||
<option name="processComments" value="true" />
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.10 (5er)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (5er)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/ansible-playbooks.iml" filepath="$PROJECT_DIR$/.idea/ansible-playbooks.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[developers]
|
||||
192.168.2.39 ansible_user=developers ansible_password=developers ansible_become_pass=developers
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[prometheus]
|
||||
192.168.2.34 ansible_user=user ansible_password=k8sstand1 ansible_become_pass=k8sstand1
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
# defaults file for node-exporters-common
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# If the issue tracker for your role is not on github, uncomment the
|
||||
# next line and provide a value
|
||||
# issue_tracker_url: http://example.com/issue/tracker
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.1
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
galaxy_tags: []
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
#
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: install node exporter
|
||||
community.docker.docker_container:
|
||||
name: node_exporter
|
||||
image: quay.io/prometheus/node-exporter:latest
|
||||
restart_policy: always
|
||||
command: '--path.rootfs=/host'
|
||||
network_mode: host
|
||||
pid_mode: host
|
||||
volumes:
|
||||
- '/:/host:ro,rslave'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
localhost
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- node-exporters-common
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
# vars file for node-exporters-common
|
||||
|
|
@ -1,36 +1,40 @@
|
|||
$ANSIBLE_VAULT;1.1;AES256
|
||||
34643238346264313638356265636262626437376365656331366639613666656166623231346539
|
||||
3861633033616638386234666331643336353731623936620a383462313365636533646365616564
|
||||
36623138303435616365633961633961663666656437633732373066353164313237343165656430
|
||||
3963323361313861390a363930306637306139666164363165383630323632333861393530393062
|
||||
30326533326634666239643861663039323837323638656433623430666639616665323732666237
|
||||
34663236343763336263343632616636613533393936386130623231623335303761643438333237
|
||||
65326630373738373163666334346163666364633439313832343665326366323038333033376638
|
||||
33663236643039383261346365386139396466306432363236336431313035646631653436333365
|
||||
39623035316232653836383332353361643364316362336162303939343933343230383566623065
|
||||
61333134636434393434336130303132303039356362326135636237326239643439386434373836
|
||||
61333930303437666565343430623764636439616332323063653430323433376331326538393631
|
||||
32306662666163376439393734633133346334633832346666326661376135396265306564616234
|
||||
63353239636139356336623062613762363130356161386332373038653164333433646430326263
|
||||
35316561396632323263336231303735613462646562623437663635613965663661616136623364
|
||||
30353562343037336631636164316137626339346531376465613034336565313862613831323131
|
||||
35393465343263333163396130383964663366366461623265643438373965353533396136613137
|
||||
32633761356632663933396262653639316265633739336335333163623461383837386363363830
|
||||
65333932653864306363393332623434316366323333653862383631313937656538363935366363
|
||||
34646331316530306437613533653564373730393461373162353763616439663961616364316132
|
||||
36336530346563626665343432663333633936386632393330396132306364373363313834656230
|
||||
34366661316137396632666662386337633638353438373931373933663666353739616265373463
|
||||
39346534323030653365333430333834633964383432653339636432386265613564663166633365
|
||||
37316234643130303731343265653435623365613537643466616435383164313030363462663036
|
||||
39663463326233643033616665343562333437326263663164616534663336303261356134623966
|
||||
62623838646233383261316264396636393331643066666665616130336562656632373164373362
|
||||
33383562396464363963336331646131663332396139626564616665386332366264376233386130
|
||||
30356139336132313932653234616538396435353335313039626665663034653764383761633661
|
||||
37346335623063636133326164613466663264306164386166383164396536343232363564383230
|
||||
30353932643263383465393630376266366439643039353933396464646132343966313164303433
|
||||
34383366343032346233333061343634336638356234623835373565386662356238646639303233
|
||||
64396635316263306631396131313866653632653233336536386433646633343838366332363832
|
||||
39313963633833373363323862633739383733326235393234376239633739653236653663666433
|
||||
34613661313566633865303263626663303464353462363961316439623830626335353363636265
|
||||
37313161346339636535386238633036326631313438373535306338353766663861313862393137
|
||||
353465333132613535343865326364646633
|
||||
37363438356361313835356463333732653863666533313565623366356137343764343864393636
|
||||
6466363730386333316133633131333233316464356331650a643965363565323664383864366538
|
||||
31353863393762653931376461663738313731326635363630666534653839386539366535383334
|
||||
6161666538366133650a383338343935323133323862353663383761303238623336626336663365
|
||||
65656634636461636232383832616462666362616531333662643361373933626264653632643838
|
||||
62623865626638303864353062343539643330383331383563636634656165383764393161613866
|
||||
36366635626130366130643135363864326337666132643333616230303633373931303432643365
|
||||
33356265316239646436303561333661666466666332353934363261343733646133316339626166
|
||||
34643436323731333732356431393731306434643131393732346664643634626161383761656566
|
||||
31393431376463373437303430316233353337636536623631666239316461393363386161343565
|
||||
32313461656361353037333264613933646264383636626234303336316532636238386462306465
|
||||
62346139626164663766313930303864396361333832343566333564646335326133316630643733
|
||||
63333562366330663366363837653436333830656235623530363538396237613762316131396465
|
||||
35303565656666633635356164363339656161303839366637613963633934333635373831376339
|
||||
30393163366339316333346331656439353736636137636165306631393566646364616332346131
|
||||
35323030326439313938316431393332383464383362313631306265646537653761316538363065
|
||||
31376239366363353533386465616366356133303334663565646532333438376330643564636435
|
||||
33636639376465356637343635373133346266326265393930626536363939316539643666636133
|
||||
64636366333534393862303832613935653864663639653638323336323166646237663432663265
|
||||
37346162346163646163313732306232623362643563343232643138656266373430306238376135
|
||||
38313336323236366262373535316634656163313433383439383238323239373765353532313830
|
||||
35613735633430646536653466383936396436643739363831336565313332393464643635616365
|
||||
39336330363865663831306333623536663462613263623534653632316336623230626434316632
|
||||
35323561376333373634313964663238383365656535373634386235313932393165336537626662
|
||||
36386534333735303535333431653163343531353439633764323837303732363565613035656262
|
||||
65373437613962343134633534373465363362646464313631373765613465303563616532623330
|
||||
66343962303334313962373538613666313732656363633864333166343036396236316533303061
|
||||
38616564336238396263653035323136343861363864336261396265636161636566633531643562
|
||||
37663233386131383563336331353433346431653261363735396562353063646437383762633137
|
||||
36646332666439346265373061366165666239343533326337366335663039353433316337353461
|
||||
33326138636535386238386563653430623661323335396434376532313739643265633331646130
|
||||
33633230653463326639376634303336653433656131303437336634663334646631336435343234
|
||||
38386239396662306137383137656230366332353535393163636233643039643137626639323632
|
||||
34653636323137623932313634336461336363333033333636613332663232373236646639396232
|
||||
61666131623431376233616261373361383432323336323931653934363031366637363036643163
|
||||
62646239633562396137613063356233643734356362393365643237383365363037383436303337
|
||||
62396534633334383761616436363531366336313831613539313039323039623135656432636461
|
||||
64656639643239663938656161646632383634653137626638653337333235653534393439356662
|
||||
396663306633323131663233306262363962
|
||||
|
|
|
|||
Loading…
Reference in New Issue