Saltstack Official Linux Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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