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.

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