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.

357 lines
11KB

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