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.

477 lines
13KB

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