Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

system.sls 13KB

9 years ago
9 years ago
9 years ago
9 years ago
7 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. linux:
  2. network:
  3. enabled: true
  4. hostname: linux
  5. fqdn: linux.ci.local
  6. system:
  7. enabled: true
  8. at:
  9. enabled: true
  10. user:
  11. root:
  12. enabled: true
  13. testuser:
  14. enabled: true
  15. cron:
  16. enabled: true
  17. user:
  18. root:
  19. enabled: true
  20. testuser:
  21. enabled: true
  22. cluster: default
  23. name: linux
  24. domain: ci.local
  25. environment: prd
  26. purge_repos: true
  27. selinux: permissive
  28. directory:
  29. /tmp/test:
  30. makedirs: true
  31. apparmor:
  32. enabled: false
  33. haveged:
  34. enabled: true
  35. prompt:
  36. default: "linux.ci.local$"
  37. kernel:
  38. isolcpu: 1,2,3,4
  39. elevator: deadline
  40. boot_options:
  41. - pti=off
  42. - spectre_v2=auto
  43. module:
  44. module_1:
  45. install:
  46. command: /bin/true
  47. remove:
  48. enabled: false
  49. command: /bin/false
  50. module_2:
  51. install:
  52. enabled: false
  53. command: /bin/false
  54. remove:
  55. command: /bin/true
  56. module_3:
  57. blacklist: true
  58. module_4:
  59. blacklist: false
  60. alias:
  61. "module*":
  62. enabled: true
  63. "module_*":
  64. enabled: false
  65. module_5:
  66. softdep:
  67. pre:
  68. 1:
  69. value: module_1
  70. 2:
  71. value: module_2
  72. enabled: false
  73. post:
  74. 1:
  75. value: module_3
  76. 2:
  77. value: module_4
  78. enabled: false
  79. module_6:
  80. option:
  81. opt_1: 111
  82. opt_2: 222
  83. module_7:
  84. option:
  85. opt_3:
  86. value: 333
  87. opt_4:
  88. enabled: true
  89. value: 444
  90. opt_5:
  91. enabled: false
  92. cgroup:
  93. group:
  94. group_1:
  95. controller:
  96. cpu:
  97. shares:
  98. value: 250
  99. mapping:
  100. subjects:
  101. - '@group1'
  102. sysfs:
  103. enable_apply: true
  104. scheduler:
  105. block/sda/queue/scheduler: deadline
  106. power:
  107. mode:
  108. power/state: 0660
  109. owner:
  110. power/state: "root:power"
  111. devices/system/cpu/cpu0/cpufreq/scaling_governor: powersave
  112. motd:
  113. - warning: |
  114. #!/bin/sh
  115. printf "WARNING: This is tcpcloud network.\n"
  116. printf " Unauthorized access is strictly prohibited.\n"
  117. printf "\n"
  118. - info: |
  119. #!/bin/sh
  120. printf -- "--[tcp cloud]---------------------------\n"
  121. printf " Hostname | ${linux:system:name}\n"
  122. printf " Domain | ${linux:system:domain}\n"
  123. printf " System | %s\n" "$(lsb_release -s -d)"
  124. printf " Kernel | %s\n" "$(uname -r)"
  125. printf -- "----------------------------------------\n"
  126. printf "\n"
  127. user:
  128. root:
  129. enabled: true
  130. home: /root
  131. name: root
  132. maxdays: 365
  133. testuser:
  134. enabled: true
  135. name: testuser
  136. password: passw0rd
  137. sudo: true
  138. uid: 9999
  139. full_name: Test User
  140. home: /home/test
  141. unique: false
  142. groups:
  143. - db-ops
  144. - salt-ops
  145. salt_user1:
  146. enabled: true
  147. name: saltuser1
  148. sudo: false
  149. uid: 9991
  150. full_name: Salt User1
  151. home: /home/saltuser1
  152. home_dir_mode: 755
  153. salt_user2:
  154. enabled: true
  155. name: saltuser2
  156. sudo: false
  157. uid: 9992
  158. full_name: Salt Sudo User2
  159. home: /home/saltuser2
  160. groups:
  161. - sudogroup1
  162. group:
  163. testgroup:
  164. enabled: true
  165. name: testgroup
  166. gid: 9999
  167. system: true
  168. addusers:
  169. - salt_user1
  170. - salt_user2
  171. db-ops:
  172. enabled: true
  173. delusers:
  174. - salt_user1
  175. - dontexistatall
  176. salt-ops:
  177. enabled: true
  178. name: salt-ops
  179. sudogroup1:
  180. enabled: true
  181. name: sudogroup1
  182. sudogroup2:
  183. enabled: true
  184. name: sudogroup2
  185. sudogroup3:
  186. enabled: false
  187. name: sudogroup3
  188. job:
  189. test:
  190. enabled: true
  191. command: "/bin/sleep 3"
  192. user: testuser
  193. minute: 0
  194. hour: 13
  195. package:
  196. htop:
  197. version: latest
  198. repo:
  199. disabled_repo:
  200. source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
  201. enabled: false
  202. disabled_repo_left_proxy:
  203. source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
  204. enabled: false
  205. proxy:
  206. enabled: true
  207. https: https://127.0.5.1:443
  208. saltstack:
  209. source: "deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7/ xenial main"
  210. key_url: "http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7/SALTSTACK-GPG-KEY.pub"
  211. architectures: amd64
  212. clean_file: true
  213. pinning:
  214. 10:
  215. enabled: true
  216. pin: 'release o=SaltStack'
  217. priority: 50
  218. package: 'libsodium18'
  219. 20:
  220. enabled: true
  221. pin: 'release o=SaltStack'
  222. priority: 1100
  223. package: '*'
  224. opencontrail:
  225. source: "deb http://ppa.launchpad.net/tcpcloud/contrail-3.0/ubuntu xenial main"
  226. keyid: E79EE90C
  227. keyserver: keyserver.ubuntu.com
  228. architectures: amd64
  229. proxy:
  230. enabled: true
  231. https: https://127.0.5.1:443
  232. #http: http://127.0.5.2:8080
  233. apt-salt:
  234. source: "deb http://apt.mirantis.com/xenial stable salt"
  235. #key_url: http://apt.mirantis.com/public.gpg
  236. # pub 4096R/A76882D3 2015-06-17
  237. key: |
  238. -----BEGIN PGP PUBLIC KEY BLOCK-----
  239. Version: GnuPG v1
  240. mQINBFWBfCIBEADf6lnsY9v4rf/x0ribkFlnHnsv1/yD+M+YgZoQxYdf6b7M4/PY
  241. zZ/c3uJt4l1vR3Yoocfc1VgtBNfA1ussBqXdmyRBMO1LKdQWnurNxWLW7CwcyNke
  242. xeBfhjOqA6tIIXMfor7uUrwlIxJIxK+jc3C3nhM46QZpWX5d4mlkgxKh1G4ZRj4A
  243. mEo2NduLUgfmF+gM1MmAbU8ekzciKet4TsM64WAtHyYllGKvuFSdBjsewO3McuhR
  244. i1Desb5QdfIU4p3gkIa0EqlkkqX4rowo5qUnl670TNTTZHaz0MxCBoYaGbGhS7gZ
  245. 6/PLm8fJHmU/phst/QmOY76a5efZWbhhnlyYLIB8UjywN+VDqwkNk9jLUSXHTakh
  246. dnL4OuGoNpIzms8juVFlnuOmx+FcfbHMbhAc7aPqFK+6J3YS4kJSfeHWJ6cTGoU1
  247. cLWEhsbU3Gp8am5fnh72RJ7v2sTe/rvCuVtlNufi5SyBPcEUZoxFVWAC/hMeiWzy
  248. drBIVC73raf+A+OjH8op9XfkVj6czxQ/451soe3jvCDGgTXPLlts+P5WhgWNpDPa
  249. fOfTHn/2o7NwoM7Vp+BQYKAQ78phsolvNNhf+g51ntoLUbxAGKZYzQ5RPsKo+Hq6
  250. 96UCFkqhSABk0DvM0LtquzZ+sNoipd02w8EaxQzelDJxvPFGigo1uqGoiQARAQAB
  251. tCx0Y3BjbG91ZCBzaWduaW5nIGtleSA8YXV0b2J1aWxkQHRjcGNsb3VkLmV1PokC
  252. OwQTAQIAJQIbAwYLCQgHA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
  268. sPcpysoBoo8IW+V1MVQEZuAJRn2AGO/Q7uY9TR4guHb3wXRfZ3k0KVUsyqqdusJi
  269. T3DxxBw6GcKdOH6t41Ys3eYgOrc+RcSdcHYSpxaLvEIhwzarZ+mqcp3gz/JkPlXS
  270. 2tx2l6NZHcgReOM7IhqMuxzBbpcrsbBmLBemC+u7hoPTjUdTHKEwvWaeXL4vgsqQ
  271. BbEeKmXep5sZg3kHtpXzY9ZfPQrtGB8vHGrfaZIcCKuXwZWGL5GGWKw3TSP4fAIA
  272. jLxLf5MyyXcsugbai2OY/H4sAuvJHsmGtergGknuR+iFdt5el1wgRKP1r1KdmvMm
  273. wsSayc6eSEKd689x3zsmAtnhYM31oMkPdeYRbnN15gLG7vcsVe4jug0YTqQt2WGn
  274. hwjBA0i2qfTorXemWChsxKllvY9aB3ST8I6RMat0kS08FMD+Ced/ABEBAAGJAh8E
  275. GAECAAkFAlWBfCICGwwACgkQJACFCadogtNicA/9HOM402VGHlmuYPcrvEThHqMK
  276. KOTtNFsrrPp67dGYaT8TGTgy1OG4Oys2y+hrwqnUK6dXJxX2/RBfRuO/gw65RCfC
  277. 9nWeMkqJTjHJCKNTYfXN4O4ag444UZPcOMq+IyiWF3/sh674zCkCm5DQ/FH8IJ8Y
  278. n4jMoxe7G48PCGtgcJKXo8NBzxwXJH4DCdk7rNdrbrnCwObG8h6530WrmzKuyFCJ
  279. QP5JA0MSx23J2OrK2YmVMhTeO0czJ8fRip9We9/qAfZGUEW+sey+nLmT5OJq04al
  280. Va9g2a4nXxzDy84+hRXQNUeCRYn/ys8d8q9HZNv3K36HlILcuWazNTTh0cuWupBd
  281. SlIEuWbIdbknYpGsmS1cPeGi0bdoLZv90BIVmdOS/vXP02fGUblyANciKcBPRhOI
  282. +z6hzwdZ+QvjPbxZUig5XuvqBhIHoRtMBJdf24ysFuf/d4uZzTC8T4rUQO+L29bt
  283. 8riT0dg6cHVwC0VH89FaO1FduvsCtAwdAgxSzOMBECNOmVBThIiWdLnns107Rp4F
  284. ECk+l2UCjl7zwGqJqcd1BQK+UgZwVG2UV11CrhopKU5oGL84n5DaO2n6Rv8wVdrt
  285. MKvqi7EkgvZpY0IHJ7rp0Gzrv0qmwJaUFCWFogITNyijb1JVsUgDTMhAkEgEsIYy
  286. jtcwJrHue5Xn8UPSLkE=
  287. =SWiA
  288. -----END PGP PUBLIC KEY BLOCK-----
  289. architectures: amd64
  290. proxy:
  291. enabled: true
  292. apt-salt-nightly:
  293. source: "deb http://apt.mirantis.com/xenial nightly salt"
  294. key_url: http://apt.mirantis.com/public.gpg
  295. architectures: amd64
  296. proxy:
  297. enabled: false
  298. apt-extra-nightly:
  299. source: "deb http://apt.mirantis.com/xenial nightly extra"
  300. key_url: http://apt.mirantis.com/public.gpg
  301. architectures: amd64
  302. locale:
  303. en_US:
  304. enabled: true
  305. default: true
  306. cs_CZ:
  307. enabled: true
  308. autoupdates:
  309. enabled: true
  310. sudo:
  311. enabled: true
  312. alias:
  313. runas:
  314. DBA:
  315. - postgres
  316. - mysql
  317. SALT:
  318. - root
  319. host:
  320. LOCAL:
  321. - localhost
  322. PRODUCTION:
  323. - db1
  324. - db2
  325. command:
  326. SUDO_RESTRICTED_SU:
  327. - /bin/vi /etc/sudoers
  328. - /bin/su - root
  329. - /bin/su -
  330. - /bin/su
  331. - /usr/sbin/visudo
  332. SUDO_SHELLS:
  333. - /bin/sh
  334. - /bin/ksh
  335. - /bin/bash
  336. - /bin/rbash
  337. - /bin/dash
  338. - /bin/zsh
  339. - /bin/csh
  340. - /bin/fish
  341. - /bin/tcsh
  342. - /usr/bin/login
  343. - /usr/bin/su
  344. - /usr/su
  345. SUDO_SALT_SAFE:
  346. - /usr/bin/salt state*
  347. - /usr/bin/salt service*
  348. - /usr/bin/salt pillar*
  349. - /usr/bin/salt grains*
  350. - /usr/bin/salt saltutil*
  351. - /usr/bin/salt-call state*
  352. - /usr/bin/salt-call service*
  353. - /usr/bin/salt-call pillar*
  354. - /usr/bin/salt-call grains*
  355. - /usr/bin/salt-call saltutil*
  356. SUDO_SALT_TRUSTED:
  357. - /usr/bin/salt*
  358. users:
  359. saltuser1: {}
  360. saltuser2:
  361. hosts:
  362. - LOCAL
  363. # User Alias:
  364. DBA:
  365. hosts:
  366. - ALL
  367. commands:
  368. - SUDO_SALT_SAFE
  369. groups:
  370. db-ops:
  371. hosts:
  372. - ALL
  373. - '!PRODUCTION'
  374. runas:
  375. - DBA
  376. commands:
  377. - /bin/cat *
  378. - /bin/less *
  379. - /bin/ls *
  380. - SUDO_SALT_SAFE
  381. - '!SUDO_SHELLS'
  382. - '!SUDO_RESTRICTED_SU'
  383. salt-ops:
  384. hosts:
  385. - 'ALL'
  386. runas:
  387. - SALT
  388. commands:
  389. - SUDO_SALT_TRUSTED
  390. salt-ops2:
  391. name: salt-ops
  392. runas:
  393. - DBA
  394. commands:
  395. - SUDO_SHELLS
  396. sudogroup1:
  397. commands:
  398. - ALL
  399. sudogroup2:
  400. commands:
  401. - ALL
  402. hosts:
  403. - localhost
  404. users:
  405. - test
  406. nopasswd: false
  407. sudogroup3:
  408. commands:
  409. - ALL
  410. env:
  411. BOB_VARIABLE: Alice
  412. BOB_PATH:
  413. - /srv/alice/bin
  414. - /srv/bob/bin
  415. HTTPS_PROXY: https://127.0.4.1:443
  416. http_proxy: http://127.0.4.2:80
  417. ftp_proxy: ftp://127.0.4.3:2121
  418. no_proxy:
  419. - 192.168.0.1
  420. - 192.168.0.2
  421. - .saltstack.com
  422. - .ubuntu.com
  423. - .mirantis.com
  424. - .launchpad.net
  425. - .dummy.net
  426. - .local
  427. LANG: C
  428. LC_ALL: C
  429. login_defs:
  430. PASS_MAX_DAYS:
  431. value: 99
  432. shell:
  433. umask: '027'
  434. timeout: 900
  435. profile:
  436. vi_flavors.sh: |
  437. export PAGER=view
  438. alias vi=vim
  439. locales: |
  440. export LANG=en_US
  441. export LC_ALL=en_US.UTF-8
  442. # pillar for proxy configuration
  443. proxy:
  444. # for package managers
  445. pkg:
  446. enabled: true
  447. https: https://127.0.2.1:4443
  448. #http: http://127.0.2.2
  449. ftp: none
  450. # fallback, system defaults
  451. https: https://127.0.1.1:443
  452. #http: http://127.0.1.2
  453. ftp: ftp://127.0.1.3
  454. noproxy:
  455. - host1
  456. - host2
  457. - .local
  458. # pillars for netconsole setup
  459. netconsole:
  460. enabled: true
  461. port: 514
  462. loglevel: debug
  463. target:
  464. 192.168.0.1:
  465. mac: "ff:ff:ff:ff:ff:ff"
  466. interface: bond0
  467. atop:
  468. enabled: true
  469. interval: 20
  470. logpath: "/var/mylog/atop"
  471. outfile: "/var/mylog/atop/daily.log"
  472. mcelog:
  473. enabled: true
  474. logging:
  475. syslog: true
  476. syslog_error: true