Saltstack Official Linux Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

390 lines
11KB

  1. linux:
  2. network:
  3. enabled: true
  4. hostname: linux
  5. fqdn: linux.ci.local
  6. system:
  7. enabled: true
  8. cluster: default
  9. name: linux
  10. domain: ci.local
  11. environment: prd
  12. purge_repos: true
  13. directory:
  14. /tmp/test:
  15. makedirs: true
  16. apparmor:
  17. enabled: false
  18. haveged:
  19. enabled: true
  20. prompt:
  21. default: "linux.ci.local$"
  22. kernel:
  23. isolcpu: 1,2,3,4
  24. elevator: deadline
  25. boot_options:
  26. - pti=off
  27. - spectre_v2=auto
  28. cgroup:
  29. group:
  30. group_1:
  31. controller:
  32. cpu:
  33. shares:
  34. value: 250
  35. mapping:
  36. subjects:
  37. - '@group1'
  38. sysfs:
  39. scheduler:
  40. block/sda/queue/scheduler: deadline
  41. power:
  42. mode:
  43. power/state: 0660
  44. owner:
  45. power/state: "root:power"
  46. devices/system/cpu/cpu0/cpufreq/scaling_governor: powersave
  47. motd:
  48. - warning: |
  49. #!/bin/sh
  50. printf "WARNING: This is tcpcloud network.\n"
  51. printf " Unauthorized access is strictly prohibited.\n"
  52. printf "\n"
  53. - info: |
  54. #!/bin/sh
  55. printf -- "--[tcp cloud]---------------------------\n"
  56. printf " Hostname | ${linux:system:name}\n"
  57. printf " Domain | ${linux:system:domain}\n"
  58. printf " System | %s\n" "$(lsb_release -s -d)"
  59. printf " Kernel | %s\n" "$(uname -r)"
  60. printf -- "----------------------------------------\n"
  61. printf "\n"
  62. user:
  63. root:
  64. enabled: true
  65. home: /root
  66. name: root
  67. testuser:
  68. enabled: true
  69. name: testuser
  70. password: passw0rd
  71. sudo: true
  72. uid: 9999
  73. full_name: Test User
  74. home: /home/test
  75. groups:
  76. - db-ops
  77. - salt-ops
  78. salt_user1:
  79. enabled: true
  80. name: saltuser1
  81. sudo: false
  82. uid: 9991
  83. full_name: Salt User1
  84. home: /home/saltuser1
  85. home_dir_mode: 755
  86. salt_user2:
  87. enabled: true
  88. name: saltuser2
  89. sudo: false
  90. uid: 9992
  91. full_name: Salt Sudo User2
  92. home: /home/saltuser2
  93. groups:
  94. - sudogroup1
  95. group:
  96. testgroup:
  97. enabled: true
  98. name: testgroup
  99. gid: 9999
  100. system: true
  101. addusers:
  102. - salt_user1
  103. - salt_user2
  104. db-ops:
  105. enabled: true
  106. delusers:
  107. - salt_user1
  108. - dontexistatall
  109. salt-ops:
  110. enabled: true
  111. name: salt-ops
  112. sudogroup1:
  113. enabled: true
  114. name: sudogroup1
  115. sudogroup2:
  116. enabled: true
  117. name: sudogroup2
  118. sudogroup3:
  119. enabled: false
  120. name: sudogroup3
  121. job:
  122. test:
  123. enabled: true
  124. command: "/bin/sleep 3"
  125. user: testuser
  126. minute: 0
  127. hour: 13
  128. package:
  129. htop:
  130. version: latest
  131. repo:
  132. disabled_repo:
  133. source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
  134. enabled: false
  135. disabled_repo_left_proxy:
  136. source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
  137. enabled: false
  138. proxy:
  139. enabled: true
  140. https: https://127.0.5.1:443
  141. opencontrail:
  142. source: "deb http://ppa.launchpad.net/tcpcloud/contrail-3.0/ubuntu xenial main"
  143. keyid: E79EE90C
  144. keyserver: keyserver.ubuntu.com
  145. architectures: amd64
  146. proxy:
  147. enabled: true
  148. https: https://127.0.5.1:443
  149. #http: http://127.0.5.2:8080
  150. apt-mk-salt:
  151. source: "deb http://apt-mk.mirantis.com/xenial stable salt"
  152. #key_url: http://apt-mk.mirantis.com/public.gpg
  153. key: |
  154. -----BEGIN PGP PUBLIC KEY BLOCK-----
  155. Version: GnuPG v1
  156. mQINBFWBfCIBEADf6lnsY9v4rf/x0ribkFlnHnsv1/yD+M+YgZoQxYdf6b7M4/PY
  157. zZ/c3uJt4l1vR3Yoocfc1VgtBNfA1ussBqXdmyRBMO1LKdQWnurNxWLW7CwcyNke
  158. xeBfhjOqA6tIIXMfor7uUrwlIxJIxK+jc3C3nhM46QZpWX5d4mlkgxKh1G4ZRj4A
  159. mEo2NduLUgfmF+gM1MmAbU8ekzciKet4TsM64WAtHyYllGKvuFSdBjsewO3McuhR
  160. i1Desb5QdfIU4p3gkIa0EqlkkqX4rowo5qUnl670TNTTZHaz0MxCBoYaGbGhS7gZ
  161. 6/PLm8fJHmU/phst/QmOY76a5efZWbhhnlyYLIB8UjywN+VDqwkNk9jLUSXHTakh
  162. dnL4OuGoNpIzms8juVFlnuOmx+FcfbHMbhAc7aPqFK+6J3YS4kJSfeHWJ6cTGoU1
  163. cLWEhsbU3Gp8am5fnh72RJ7v2sTe/rvCuVtlNufi5SyBPcEUZoxFVWAC/hMeiWzy
  164. drBIVC73raf+A+OjH8op9XfkVj6czxQ/451soe3jvCDGgTXPLlts+P5WhgWNpDPa
  165. fOfTHn/2o7NwoM7Vp+BQYKAQ78phsolvNNhf+g51ntoLUbxAGKZYzQ5RPsKo+Hq6
  166. 96UCFkqhSABk0DvM0LtquzZ+sNoipd02w8EaxQzelDJxvPFGigo1uqGoiQARAQAB
  167. tCx0Y3BjbG91ZCBzaWduaW5nIGtleSA8YXV0b2J1aWxkQHRjcGNsb3VkLmV1PokC
  168. OwQTAQIAJQIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AFAlWj4K8CGQEACgkQ
  169. JACFCadogtPm9xAAl1D1RUY1mttjKk+8KI3tUmgtqLaIGUcB4TPbIhQpFy23TJd6
  170. BnnEaGZ+HSCj3lp/dBoq1xxCqHCziKA04IpPaLpGJf8cqaKOpQpW1ErlSxT6nCQW
  171. FrHFxZreBTljKqW3fvRBXNAquj0krJEwv19/3SsQ+CJI2Zkq/HPDw9eJOCu0WcJM
  172. PVtAq2SmaDigh1jtFcFoWZ7uFFMQPIWit/RCPkDfkFaf6lbYZ/nnvWON9OAgzWci
  173. GJjCp5a7vMyCpTRy6bgNPqM61omCe0iQ4yIc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c6eSEKd689x3zsmAtnhYM31oMkPdeYRbnN15gLG7vcsVe4jug0YTqQt2WGn
  190. hwjBA0i2qfTorXemWChsxKllvY9aB3ST8I6RMat0kS08FMD+Ced/ABEBAAGJAh8E
  191. GAECAAkFAlWBfCICGwwACgkQJACFCadogtNicA/9HOM402VGHlmuYPcrvEThHqMK
  192. KOTtNFsrrPp67dGYaT8TGTgy1OG4Oys2y+hrwqnUK6dXJxX2/RBfRuO/gw65RCfC
  193. 9nWeMkqJTjHJCKNTYfXN4O4ag444UZPcOMq+IyiWF3/sh674zCkCm5DQ/FH8IJ8Y
  194. n4jMoxe7G48PCGtgcJKXo8NBzxwXJH4DCdk7rNdrbrnCwObG8h6530WrmzKuyFCJ
  195. QP5JA0MSx23J2OrK2YmVMhTeO0czJ8fRip9We9/qAfZGUEW+sey+nLmT5OJq04al
  196. Va9g2a4nXxzDy84+hRXQNUeCRYn/ys8d8q9HZNv3K36HlILcuWazNTTh0cuWupBd
  197. SlIEuWbIdbknYpGsmS1cPeGi0bdoLZv90BIVmdOS/vXP02fGUblyANciKcBPRhOI
  198. +z6hzwdZ+QvjPbxZUig5XuvqBhIHoRtMBJdf24ysFuf/d4uZzTC8T4rUQO+L29bt
  199. 8riT0dg6cHVwC0VH89FaO1FduvsCtAwdAgxSzOMBECNOmVBThIiWdLnns107Rp4F
  200. ECk+l2UCjl7zwGqJqcd1BQK+UgZwVG2UV11CrhopKU5oGL84n5DaO2n6Rv8wVdrt
  201. MKvqi7EkgvZpY0IHJ7rp0Gzrv0qmwJaUFCWFogITNyijb1JVsUgDTMhAkEgEsIYy
  202. jtcwJrHue5Xn8UPSLkE=
  203. =SWiA
  204. -----END PGP PUBLIC KEY BLOCK-----
  205. architectures: amd64
  206. proxy:
  207. enabled: true
  208. apt-mk-salt-nightly:
  209. source: "deb http://apt-mk.mirantis.com/xenial nightly salt"
  210. key_url: http://apt-mk.mirantis.com/public.gpg
  211. architectures: amd64
  212. proxy:
  213. enabled: false
  214. apt-mk-extra-nightly:
  215. source: "deb http://apt-mk.mirantis.com/xenial nightly extra"
  216. key_url: http://apt-mk.mirantis.com/public.gpg
  217. architectures: amd64
  218. locale:
  219. en_US:
  220. enabled: true
  221. default: true
  222. cs_CZ:
  223. enabled: true
  224. autoupdates:
  225. enabled: true
  226. sudo:
  227. enabled: true
  228. alias:
  229. runas:
  230. DBA:
  231. - postgres
  232. - mysql
  233. SALT:
  234. - root
  235. host:
  236. LOCAL:
  237. - localhost
  238. PRODUCTION:
  239. - db1
  240. - db2
  241. command:
  242. SUDO_RESTRICTED_SU:
  243. - /bin/vi /etc/sudoers
  244. - /bin/su - root
  245. - /bin/su -
  246. - /bin/su
  247. - /usr/sbin/visudo
  248. SUDO_SHELLS:
  249. - /bin/sh
  250. - /bin/ksh
  251. - /bin/bash
  252. - /bin/rbash
  253. - /bin/dash
  254. - /bin/zsh
  255. - /bin/csh
  256. - /bin/fish
  257. - /bin/tcsh
  258. - /usr/bin/login
  259. - /usr/bin/su
  260. - /usr/su
  261. SUDO_SALT_SAFE:
  262. - /usr/bin/salt state*
  263. - /usr/bin/salt service*
  264. - /usr/bin/salt pillar*
  265. - /usr/bin/salt grains*
  266. - /usr/bin/salt saltutil*
  267. - /usr/bin/salt-call state*
  268. - /usr/bin/salt-call service*
  269. - /usr/bin/salt-call pillar*
  270. - /usr/bin/salt-call grains*
  271. - /usr/bin/salt-call saltutil*
  272. SUDO_SALT_TRUSTED:
  273. - /usr/bin/salt*
  274. users:
  275. saltuser1: {}
  276. saltuser2:
  277. hosts:
  278. - LOCAL
  279. # User Alias:
  280. DBA:
  281. hosts:
  282. - ALL
  283. commands:
  284. - SUDO_SALT_SAFE
  285. groups:
  286. db-ops:
  287. hosts:
  288. - ALL
  289. - '!PRODUCTION'
  290. runas:
  291. - DBA
  292. commands:
  293. - /bin/cat *
  294. - /bin/less *
  295. - /bin/ls *
  296. - SUDO_SALT_SAFE
  297. - '!SUDO_SHELLS'
  298. - '!SUDO_RESTRICTED_SU'
  299. salt-ops:
  300. hosts:
  301. - 'ALL'
  302. runas:
  303. - SALT
  304. commands:
  305. - SUDO_SALT_TRUSTED
  306. salt-ops2:
  307. name: salt-ops
  308. runas:
  309. - DBA
  310. commands:
  311. - SUDO_SHELLS
  312. sudogroup1:
  313. commands:
  314. - ALL
  315. sudogroup2:
  316. commands:
  317. - ALL
  318. hosts:
  319. - localhost
  320. users:
  321. - test
  322. nopasswd: false
  323. sudogroup3:
  324. commands:
  325. - ALL
  326. env:
  327. BOB_VARIABLE: Alice
  328. BOB_PATH:
  329. - /srv/alice/bin
  330. - /srv/bob/bin
  331. HTTPS_PROXY: https://127.0.4.1:443
  332. http_proxy: http://127.0.4.2:80
  333. ftp_proxy: ftp://127.0.4.3:2121
  334. no_proxy:
  335. - 192.168.0.1
  336. - 192.168.0.2
  337. - .saltstack.com
  338. - .ubuntu.com
  339. - .mirantis.com
  340. - .launchpad.net
  341. - .dummy.net
  342. - .local
  343. LANG: C
  344. LC_ALL: C
  345. profile:
  346. vi_flavors.sh: |
  347. export PAGER=view
  348. alias vi=vim
  349. locales: |
  350. export LANG=en_US
  351. export LC_ALL=en_US.UTF-8
  352. # pillar for proxy configuration
  353. proxy:
  354. # for package managers
  355. pkg:
  356. enabled: true
  357. https: https://127.0.2.1:4443
  358. #http: http://127.0.2.2
  359. ftp: none
  360. # fallback, system defaults
  361. https: https://127.0.1.1:443
  362. #http: http://127.0.1.2
  363. ftp: ftp://127.0.1.3
  364. noproxy:
  365. - host1
  366. - host2
  367. - .local
  368. # pillars for netconsole setup
  369. netconsole:
  370. enabled: true
  371. port: 514
  372. loglevel: debug
  373. target:
  374. 192.168.0.1:
  375. mac: "ff:ff:ff:ff:ff:ff"
  376. interface: bond0
  377. atop:
  378. enabled: true
  379. interval: 20
  380. logpath: "/var/mylog/atop"
  381. outfile: "/var/mylog/atop/daily.log"
  382. mcelog:
  383. enabled: true
  384. logging:
  385. syslog: true
  386. syslog_error: true