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.

268 lines
6.2KB

  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. apparmor:
  10. enabled: false
  11. haveged:
  12. enabled: true
  13. prompt:
  14. default: "linux.ci.local$"
  15. kernel:
  16. isolcpu: 1,2,3,4
  17. motd:
  18. - warning: |
  19. #!/bin/sh
  20. printf "WARNING: This is tcpcloud network.\n"
  21. printf " Unauthorized access is strictly prohibited.\n"
  22. printf "\n"
  23. - info: |
  24. #!/bin/sh
  25. printf -- "--[tcp cloud]---------------------------\n"
  26. printf " Hostname | ${linux:system:name}\n"
  27. printf " Domain | ${linux:system:domain}\n"
  28. printf " System | %s\n" "$(lsb_release -s -d)"
  29. printf " Kernel | %s\n" "$(uname -r)"
  30. printf -- "----------------------------------------\n"
  31. printf "\n"
  32. user:
  33. root:
  34. enabled: true
  35. home: /root
  36. name: root
  37. test:
  38. enabled: true
  39. name: test
  40. sudo: true
  41. uid: 9999
  42. full_name: Test User
  43. home: /home/test
  44. groups:
  45. - root
  46. salt_user1:
  47. enabled: true
  48. name: saltuser1
  49. sudo: false
  50. uid: 9991
  51. full_name: Salt User1
  52. home: /home/saltuser1
  53. salt_user2:
  54. enabled: true
  55. name: saltuser2
  56. sudo: false
  57. uid: 9992
  58. full_name: Salt Sudo User2
  59. home: /home/saltuser2
  60. group:
  61. test:
  62. enabled: true
  63. name: test
  64. gid: 9999
  65. system: true
  66. db-ops:
  67. enabled: true
  68. name: testgroup
  69. salt-ops:
  70. enabled: true
  71. name: sudogroup0
  72. sudogroup1:
  73. enabled: true
  74. name: sudogroup1
  75. sudogroup2:
  76. enabled: true
  77. name: sudogroup2
  78. sudogroup3:
  79. enabled: false
  80. name: sudogroup3
  81. job:
  82. test:
  83. enabled: true
  84. command: "/bin/sleep 3"
  85. user: test
  86. minute: 0
  87. hour: 13
  88. package:
  89. htop:
  90. version: latest
  91. repo:
  92. opencontrail:
  93. source: "deb http://ppa.launchpad.net/tcpcloud/contrail-3.0/ubuntu xenial main"
  94. keyid: E79EE90C
  95. keyserver: keyserver.ubuntu.com
  96. architectures: amd64
  97. proxy:
  98. enabled: true
  99. https: https://127.0.5.1:443
  100. #http: http://127.0.5.2:8080
  101. apt-mk-salt:
  102. source: "deb http://apt-mk.mirantis.com/xenial stable salt"
  103. key_url: http://apt-mk.mirantis.com/public.gpg
  104. architectures: amd64
  105. proxy:
  106. enabled: true
  107. apt-mk-salt-nightly:
  108. source: "deb http://apt-mk.mirantis.com/xenial nightly salt"
  109. key_url: http://apt-mk.mirantis.com/public.gpg
  110. architectures: amd64
  111. proxy:
  112. enabled: false
  113. apt-mk-extra-nightly:
  114. source: "deb http://apt-mk.mirantis.com/xenial nightly extra"
  115. key_url: http://apt-mk.mirantis.com/public.gpg
  116. architectures: amd64
  117. locale:
  118. en_US.UTF-8:
  119. enabled: true
  120. default: true
  121. "cs_CZ.UTF-8 UTF-8":
  122. enabled: true
  123. autoupdates:
  124. enabled: true
  125. sudo:
  126. enabled: true
  127. alias:
  128. runas:
  129. DBA:
  130. - postgres
  131. - mysql
  132. SALT:
  133. - root
  134. host:
  135. LOCAL:
  136. - localhost
  137. PRODUCTION:
  138. - db1
  139. - db2
  140. command:
  141. SUDO_RESTRICTED_SU:
  142. - /bin/vi /etc/sudoers
  143. - /bin/su - root
  144. - /bin/su -
  145. - /bin/su
  146. - /usr/sbin/visudo
  147. SUDO_SHELLS:
  148. - /bin/sh
  149. - /bin/ksh
  150. - /bin/bash
  151. - /bin/rbash
  152. - /bin/dash
  153. - /bin/zsh
  154. - /bin/csh
  155. - /bin/fish
  156. - /bin/tcsh
  157. - /usr/bin/login
  158. - /usr/bin/su
  159. - /usr/su
  160. SUDO_SALT_SAFE:
  161. - /usr/bin/salt state*
  162. - /usr/bin/salt service*
  163. - /usr/bin/salt pillar*
  164. - /usr/bin/salt grains*
  165. - /usr/bin/salt saltutil*
  166. - /usr/bin/salt-call state*
  167. - /usr/bin/salt-call service*
  168. - /usr/bin/salt-call pillar*
  169. - /usr/bin/salt-call grains*
  170. - /usr/bin/salt-call saltutil*
  171. SUDO_SALT_TRUSTED:
  172. - /usr/bin/salt*
  173. users:
  174. saltuser1: {}
  175. saltuser2:
  176. hosts:
  177. - LOCAL
  178. # User Alias:
  179. DBA:
  180. hosts:
  181. - ALL
  182. commands:
  183. - SUDO_SALT_SAFE
  184. groups:
  185. db-ops:
  186. hosts:
  187. - ALL
  188. - '!PRODUCTION'
  189. runas:
  190. - DBA
  191. commands:
  192. - /bin/cat *
  193. - /bin/less *
  194. - /bin/ls *
  195. - SUDO_SALT_SAFE
  196. - '!SUDO_SHELLS'
  197. - '!SUDO_RESTRICTED_SU'
  198. salt-ops:
  199. hosts:
  200. - 'ALL'
  201. runas:
  202. - SALT
  203. commands:
  204. - SUDO_SALT_TRUSTED
  205. salt-ops2:
  206. name: salt-ops
  207. runas:
  208. - DBA
  209. commands:
  210. - SUDO_SHELLS
  211. sudogroup1:
  212. commands:
  213. - ALL
  214. sudogroup2:
  215. commands:
  216. - ALL
  217. hosts:
  218. - localhost
  219. users:
  220. - test
  221. nopasswd: false
  222. sudogroup3:
  223. commands:
  224. - ALL
  225. env:
  226. BOB_VARIABLE: Alice
  227. BOB_PATH:
  228. - /srv/alice/bin
  229. - /srv/bob/bin
  230. HTTPS_PROXY: https://127.0.4.1:443
  231. http_proxy: http://127.0.4.2:80
  232. ftp_proxy: ftp://127.0.4.3:2121
  233. no_proxy:
  234. - 192.168.0.1
  235. - 192.168.0.2
  236. - .saltstack.com
  237. - .ubuntu.com
  238. - .mirantis.com
  239. - .launchpad.net
  240. - .dummy.net
  241. - .local
  242. LANG: C
  243. LC_ALL: C
  244. profile:
  245. vi_flavors.sh: |
  246. export PAGER=view
  247. alias vi=vim
  248. locales: |
  249. export LANG=en_US
  250. export LC_ALL=en_US.UTF-8
  251. # pillar for proxy configuration
  252. proxy:
  253. # for package managers
  254. pkg:
  255. enabled: true
  256. https: https://127.0.2.1:4443
  257. #http: http://127.0.2.2
  258. ftp: none
  259. # fallback, system defaults
  260. https: https://127.0.1.1:443
  261. #http: http://127.0.1.2
  262. ftp: ftp://127.0.1.3
  263. noproxy:
  264. - host1
  265. - host2
  266. - .local