Saltstack Official Linux Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README.rst 39KB

il y a 7 ans
il y a 9 ans
il y a 7 ans
il y a 9 ans
il y a 7 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 7 ans
il y a 7 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 7 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632
  1. ============
  2. Linux Fomula
  3. ============
  4. Linux Operating Systems.
  5. * Ubuntu
  6. * CentOS
  7. * RedHat
  8. * Fedora
  9. * Arch
  10. Sample Pillars
  11. ==============
  12. Linux System
  13. ------------
  14. Basic Linux box
  15. .. code-block:: yaml
  16. linux:
  17. system:
  18. enabled: true
  19. name: 'node1'
  20. domain: 'domain.com'
  21. cluster: 'system'
  22. environment: prod
  23. timezone: 'Europe/Prague'
  24. utc: true
  25. Linux with system users, some with password set:
  26. .. WARNING::
  27. If no 'password' variable has been passed - any predifined password
  28. will be removed.
  29. .. code-block:: yaml
  30. linux:
  31. system:
  32. ...
  33. user:
  34. jdoe:
  35. name: 'jdoe'
  36. enabled: true
  37. sudo: true
  38. shell: /bin/bash
  39. full_name: 'Jonh Doe'
  40. home: '/home/jdoe'
  41. email: 'jonh@doe.com'
  42. jsmith:
  43. name: 'jsmith'
  44. enabled: true
  45. full_name: 'With clear password'
  46. home: '/home/jsmith'
  47. hash_password: true
  48. password: "userpassword"
  49. mark:
  50. name: 'mark'
  51. enabled: true
  52. full_name: "unchange password'
  53. home: '/home/mark'
  54. password: false
  55. elizabeth:
  56. name: 'elizabeth'
  57. enabled: true
  58. full_name: 'With hased password'
  59. home: '/home/elizabeth'
  60. password: "$6$nUI7QEz3$dFYjzQqK5cJ6HQ38KqG4gTWA9eJu3aKx6TRVDFh6BVJxJgFWg2akfAA7f1fCxcSUeOJ2arCO6EEI6XXnHXxG10"
  61. Configure sudo for users and groups under ``/etc/sudoers.d/``.
  62. This ways ``linux.system.sudo`` pillar map to actual sudo attributes:
  63. .. code-block:: jinja
  64. # simplified template:
  65. Cmds_Alias {{ alias }}={{ commands }}
  66. {{ user }} {{ hosts }}=({{ runas }}) NOPASSWD: {{ commands }}
  67. %{{ group }} {{ hosts }}=({{ runas }}) NOPASSWD: {{ commands }}
  68. # when rendered:
  69. saltuser1 ALL=(ALL) NOPASSWD: ALL
  70. .. code-block:: yaml
  71. linux:
  72. system:
  73. sudo:
  74. enabled: true
  75. aliases:
  76. host:
  77. LOCAL:
  78. - localhost
  79. PRODUCTION:
  80. - db1
  81. - db2
  82. runas:
  83. DBA:
  84. - postgres
  85. - mysql
  86. SALT:
  87. - root
  88. command:
  89. # Note: This is not 100% safe when ALL keyword is used, user still may modify configs and hide his actions.
  90. # Best practice is to specify full list of commands user is allowed to run.
  91. SUPPORT_RESTRICTED:
  92. - /bin/vi /etc/sudoers*
  93. - /bin/vim /etc/sudoers*
  94. - /bin/nano /etc/sudoers*
  95. - /bin/emacs /etc/sudoers*
  96. - /bin/su - root
  97. - /bin/su -
  98. - /bin/su
  99. - /usr/sbin/visudo
  100. SUPPORT_SHELLS:
  101. - /bin/sh
  102. - /bin/ksh
  103. - /bin/bash
  104. - /bin/rbash
  105. - /bin/dash
  106. - /bin/zsh
  107. - /bin/csh
  108. - /bin/fish
  109. - /bin/tcsh
  110. - /usr/bin/login
  111. - /usr/bin/su
  112. - /usr/su
  113. ALL_SALT_SAFE:
  114. - /usr/bin/salt state*
  115. - /usr/bin/salt service*
  116. - /usr/bin/salt pillar*
  117. - /usr/bin/salt grains*
  118. - /usr/bin/salt saltutil*
  119. - /usr/bin/salt-call state*
  120. - /usr/bin/salt-call service*
  121. - /usr/bin/salt-call pillar*
  122. - /usr/bin/salt-call grains*
  123. - /usr/bin/salt-call saltutil*
  124. SALT_TRUSTED:
  125. - /usr/bin/salt*
  126. users:
  127. # saltuser1 with default values: saltuser1 ALL=(ALL) NOPASSWD: ALL
  128. saltuser1: {}
  129. saltuser2:
  130. hosts:
  131. - LOCAL
  132. # User Alias DBA
  133. DBA:
  134. hosts:
  135. - ALL
  136. commands:
  137. - ALL_SALT_SAFE
  138. groups:
  139. db-ops:
  140. hosts:
  141. - ALL
  142. - '!PRODUCTION'
  143. runas:
  144. - DBA
  145. commands:
  146. - /bin/cat *
  147. - /bin/less *
  148. - /bin/ls *
  149. salt-ops:
  150. hosts:
  151. - 'ALL'
  152. runas:
  153. - SALT
  154. commands:
  155. - SUPPORT_SHELLS
  156. salt-ops-2nd:
  157. name: salt-ops
  158. nopasswd: false
  159. setenv: true # Enable sudo -E option
  160. runas:
  161. - DBA
  162. commands:
  163. - ALL
  164. - '!SUPPORT_SHELLS'
  165. - '!SUPPORT_RESTRICTED'
  166. Linux with package, latest version
  167. .. code-block:: yaml
  168. linux:
  169. system:
  170. ...
  171. package:
  172. package-name:
  173. version: latest
  174. Linux with package from certail repo, version with no upgrades
  175. .. code-block:: yaml
  176. linux:
  177. system:
  178. ...
  179. package:
  180. package-name:
  181. version: 2132.323
  182. repo: 'custom-repo'
  183. hold: true
  184. Linux with package from certail repo, version with no GPG verification
  185. .. code-block:: yaml
  186. linux:
  187. system:
  188. ...
  189. package:
  190. package-name:
  191. version: 2132.323
  192. repo: 'custom-repo'
  193. verify: false
  194. Linux with autoupdates (automatically install security package updates)
  195. .. code-block:: yaml
  196. linux:
  197. system:
  198. ...
  199. autoupdates:
  200. enabled: true
  201. mail: root@localhost
  202. mail_only_on_error: true
  203. remove_unused_dependencies: false
  204. automatic_reboot: true
  205. automatic_reboot_time: "02:00"
  206. Linux with cron jobs
  207. By default it will use name as an identifier, unless identifier key is
  208. explicitly set or False (then it will use Salt's default behavior which is
  209. identifier same as command resulting in not being able to change it)
  210. .. code-block:: yaml
  211. linux:
  212. system:
  213. ...
  214. job:
  215. cmd1:
  216. command: '/cmd/to/run'
  217. identifier: cmd1
  218. enabled: true
  219. user: 'root'
  220. hour: 2
  221. minute: 0
  222. Linux security limits (limit sensu user memory usage to max 1GB):
  223. .. code-block:: yaml
  224. linux:
  225. system:
  226. ...
  227. limit:
  228. sensu:
  229. enabled: true
  230. domain: sensu
  231. limits:
  232. - type: hard
  233. item: as
  234. value: 1000000
  235. Enable autologin on tty1 (may work only for Ubuntu 14.04):
  236. .. code-block:: yaml
  237. linux:
  238. system:
  239. console:
  240. tty1:
  241. autologin: root
  242. # Enable serial console
  243. ttyS0:
  244. autologin: root
  245. rate: 115200
  246. term: xterm
  247. To disable set autologin to `false`.
  248. Set ``policy-rc.d`` on Debian-based systems. Action can be any available
  249. command in ``while true`` loop and ``case`` context.
  250. Following will disallow dpkg to stop/start services for cassandra package automatically:
  251. .. code-block:: yaml
  252. linux:
  253. system:
  254. policyrcd:
  255. - package: cassandra
  256. action: exit 101
  257. - package: '*'
  258. action: switch
  259. Set system locales:
  260. .. code-block:: yaml
  261. linux:
  262. system:
  263. locale:
  264. en_US.UTF-8:
  265. default: true
  266. "cs_CZ.UTF-8 UTF-8":
  267. enabled: true
  268. Systemd settings:
  269. .. code-block:: yaml
  270. linux:
  271. system:
  272. ...
  273. systemd:
  274. system:
  275. Manager:
  276. DefaultLimitNOFILE: 307200
  277. DefaultLimitNPROC: 307200
  278. user:
  279. Manager:
  280. DefaultLimitCPU: 2
  281. DefaultLimitNPROC: 4
  282. Ensure presence of directory:
  283. .. code-block:: yaml
  284. linux:
  285. system:
  286. directory:
  287. /tmp/test:
  288. user: root
  289. group: root
  290. mode: 700
  291. makedirs: true
  292. Kernel
  293. ~~~~~~
  294. Install always up to date LTS kernel and headers from Ubuntu trusty:
  295. .. code-block:: yaml
  296. linux:
  297. system:
  298. kernel:
  299. type: generic
  300. lts: trusty
  301. headers: true
  302. Load kernel modules and add them to `/etc/modules`:
  303. .. code-block:: yaml
  304. linux:
  305. system:
  306. kernel:
  307. modules:
  308. - nf_conntrack
  309. - tp_smapi
  310. - 8021q
  311. Configure or blacklist kernel modules with additional options to `/etc/modprobe.d` following example
  312. will add `/etc/modprobe.d/nf_conntrack.conf` file with line `options nf_conntrack hashsize=262144`:
  313. .. code-block:: yaml
  314. linux:
  315. system:
  316. kernel:
  317. module:
  318. nf_conntrack:
  319. option:
  320. hashsize: 262144
  321. Install specific kernel version and ensure all other kernel packages are
  322. not present. Also install extra modules and headers for this kernel:
  323. .. code-block:: yaml
  324. linux:
  325. system:
  326. kernel:
  327. type: generic
  328. extra: true
  329. headers: true
  330. version: 4.2.0-22
  331. Systcl kernel parameters
  332. .. code-block:: yaml
  333. linux:
  334. system:
  335. kernel:
  336. sysctl:
  337. net.ipv4.tcp_keepalive_intvl: 3
  338. net.ipv4.tcp_keepalive_time: 30
  339. net.ipv4.tcp_keepalive_probes: 8
  340. CPU
  341. ~~~
  342. Enable cpufreq governor for every cpu:
  343. .. code-block:: yaml
  344. linux:
  345. system:
  346. cpu:
  347. governor: performance
  348. Certificates
  349. ~~~~~~~~~~~~
  350. Add certificate authority into system trusted CA bundle
  351. .. code-block:: yaml
  352. linux:
  353. system:
  354. ca_certificates:
  355. mycert: |
  356. -----BEGIN CERTIFICATE-----
  357. MIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkG
  358. A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz
  359. cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2
  360. MDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV
  361. BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt
  362. YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN
  363. ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE
  364. BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is
  365. I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G
  366. CSqGSIb3DQEBAgUAA4GBALtMEivPLCYATxQT3ab7/AoRhIzzKBxnki98tsX63/Do
  367. lbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59AhWM1pF+NEHJwZRDmJXNyc
  368. AA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2OmufTqj/ZA1k
  369. -----END CERTIFICATE-----
  370. Sysfs
  371. ~~~~~
  372. Install sysfsutils and set sysfs attributes:
  373. .. code-block:: yaml
  374. linux:
  375. system:
  376. sysfs:
  377. scheduler:
  378. block/sda/queue/scheduler: deadline
  379. power:
  380. mode:
  381. power/state: 0660
  382. owner:
  383. power/state: "root:power"
  384. devices/system/cpu/cpu0/cpufreq/scaling_governor: powersave
  385. Huge Pages
  386. ~~~~~~~~~~~~
  387. Huge Pages give a performance boost to applications that intensively deal
  388. with memory allocation/deallocation by decreasing memory fragmentation.
  389. .. code-block:: yaml
  390. linux:
  391. system:
  392. kernel:
  393. hugepages:
  394. small:
  395. size: 2M
  396. count: 107520
  397. mount_point: /mnt/hugepages_2MB
  398. mount: false/true # default false
  399. large:
  400. default: true # default automatically mounted
  401. size: 1G
  402. count: 210
  403. mount_point: /mnt/hugepages_1GB
  404. Note: not recommended to use both pagesizes in concurrently.
  405. Intel SR-IOV
  406. ~~~~~~~~~~~~
  407. PCI-SIG Single Root I/O Virtualization and Sharing (SR-IOV) specification defines a standardized mechanism to virtualize PCIe devices. The mechanism can virtualize a single PCIe Ethernet controller to appear as multiple PCIe devices.
  408. .. code-block:: yaml
  409. linux:
  410. system:
  411. kernel:
  412. sriov: True
  413. unsafe_interrupts: False # Default is false. for older platforms and AMD we need to add interrupt remapping workaround
  414. rc:
  415. local: |
  416. #!/bin/sh -e
  417. # Enable 7 VF on eth1
  418. echo 7 > /sys/class/net/eth1/device/sriov_numvfs; sleep 2; ifup -a
  419. exit 0
  420. Isolate CPU options
  421. ~~~~~~~~~~~~~~~~~~~
  422. Remove the specified CPUs, as defined by the cpu_number values, from the general kernel
  423. SMP balancing and scheduler algroithms. The only way to move a process onto or off an
  424. "isolated" CPU is via the CPU affinity syscalls. cpu_number begins at 0, so the
  425. maximum value is 1 less than the number of CPUs on the system.
  426. .. code-block:: yaml
  427. linux:
  428. system:
  429. kernel:
  430. isolcpu: 1,2,3,4,5,6,7 # isolate first cpu 0
  431. Repositories
  432. ~~~~~~~~~~~~
  433. RedHat based Linux with additional OpenStack repo
  434. .. code-block:: yaml
  435. linux:
  436. system:
  437. ...
  438. repo:
  439. rdo-icehouse:
  440. enabled: true
  441. source: 'http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/'
  442. pgpcheck: 0
  443. Ensure system repository to use czech Debian mirror (``default: true``)
  444. Also pin it's packages with priority 900.
  445. .. code-block:: yaml
  446. linux:
  447. system:
  448. repo:
  449. debian:
  450. default: true
  451. source: "deb http://ftp.cz.debian.org/debian/ jessie main contrib non-free"
  452. # Import signing key from URL if needed
  453. key_url: "http://dummy.com/public.gpg"
  454. pin:
  455. - pin: 'origin "ftp.cz.debian.org"'
  456. priority: 900
  457. package: '*'
  458. Package manager proxy setup globally:
  459. .. code-block:: yaml
  460. linux:
  461. system:
  462. ...
  463. repo:
  464. apt-mk:
  465. source: "deb http://apt-mk.mirantis.com/ stable main salt"
  466. ...
  467. proxy:
  468. pkg:
  469. enabled: true
  470. ftp: ftp://ftp-proxy-for-apt.host.local:2121
  471. ...
  472. # NOTE: Global defaults for any other componet that configure proxy on the system.
  473. # If your environment has just one simple proxy, set it on linux:system:proxy.
  474. #
  475. # fall back system defaults if linux:system:proxy:pkg has no protocol specific entries
  476. # as for https and http
  477. ftp: ftp://proxy.host.local:2121
  478. http: http://proxy.host.local:3142
  479. https: https://proxy.host.local:3143
  480. Package manager proxy setup per repository:
  481. .. code-block:: yaml
  482. linux:
  483. system:
  484. ...
  485. repo:
  486. debian:
  487. source: "deb http://apt-mk.mirantis.com/ stable main salt"
  488. ...
  489. apt-mk:
  490. source: "deb http://apt-mk.mirantis.com/ stable main salt"
  491. # per repository proxy
  492. proxy:
  493. enabled: true
  494. http: http://maas-01:8080
  495. https: http://maas-01:8080
  496. ...
  497. proxy:
  498. # package manager fallback defaults
  499. # used if linux:system:repo:apt-mk:proxy has no protocol specific entries
  500. pkg:
  501. enabled: true
  502. ftp: ftp://proxy.host.local:2121
  503. #http: http://proxy.host.local:3142
  504. #https: https://proxy.host.local:3143
  505. ...
  506. # global system fallback system defaults
  507. ftp: ftp://proxy.host.local:2121
  508. http: http://proxy.host.local:3142
  509. https: https://proxy.host.local:3143
  510. Remove all repositories:
  511. .. code-block:: yaml
  512. linux:
  513. system:
  514. purge_repos: true
  515. RC
  516. ~~
  517. rc.local example
  518. .. code-block:: yaml
  519. linux:
  520. system:
  521. rc:
  522. local: |
  523. #!/bin/sh -e
  524. #
  525. # rc.local
  526. #
  527. # This script is executed at the end of each multiuser runlevel.
  528. # Make sure that the script will "exit 0" on success or any other
  529. # value on error.
  530. #
  531. # In order to enable or disable this script just change the execution
  532. # bits.
  533. #
  534. # By default this script does nothing.
  535. exit 0
  536. Prompt
  537. ~~~~~~
  538. Setting prompt is implemented by creating ``/etc/profile.d/prompt.sh``. Every
  539. user can have different prompt.
  540. .. code-block:: yaml
  541. linux:
  542. system:
  543. prompt:
  544. root: \\n\\[\\033[0;37m\\]\\D{%y/%m/%d %H:%M:%S} $(hostname -f)\\[\\e[0m\\]\\n\\[\\e[1;31m\\][\\u@\\h:\\w]\\[\\e[0m\\]
  545. default: \\n\\D{%y/%m/%d %H:%M:%S} $(hostname -f)\\n[\\u@\\h:\\w]
  546. On Debian systems to set prompt system-wide it's necessary to remove setting
  547. PS1 in ``/etc/bash.bashrc`` and ``~/.bashrc`` (which comes from
  548. ``/etc/skel/.bashrc``). This formula will do this automatically, but will not
  549. touch existing user's ``~/.bashrc`` files except root.
  550. Bash
  551. ~~~~
  552. Fix bash configuration to preserve history across sessions (like ZSH does by
  553. default).
  554. .. code-block:: yaml
  555. linux:
  556. system:
  557. bash:
  558. preserve_history: true
  559. Message of the day
  560. ~~~~~~~~~~~~~~~~~~
  561. ``pam_motd`` from package ``update-motd`` is used for dynamic messages of the
  562. day. Setting custom motd will cleanup existing ones.
  563. .. code-block:: yaml
  564. linux:
  565. system:
  566. motd:
  567. - release: |
  568. #!/bin/sh
  569. [ -r /etc/lsb-release ] && . /etc/lsb-release
  570. if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then
  571. # Fall back to using the very slow lsb_release utility
  572. DISTRIB_DESCRIPTION=$(lsb_release -s -d)
  573. fi
  574. printf "Welcome to %s (%s %s %s)\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname -m)"
  575. - warning: |
  576. #!/bin/sh
  577. printf "This is [company name] network.\n"
  578. printf "Unauthorized access strictly prohibited.\n"
  579. Services
  580. ~~~~~~~~
  581. Stop and disable linux service:
  582. .. code-block:: yaml
  583. linux:
  584. system:
  585. service:
  586. apt-daily.timer:
  587. status: dead
  588. Possible status is dead (disable service by default), running (enable service by default), enabled, disabled.
  589. Linux with atop service:
  590. .. code-block:: yaml
  591. linux:
  592. system:
  593. atop:
  594. enabled: true
  595. interval: 20
  596. logpath: "/var/log/atop"
  597. outfile: "/var/log/atop/daily.log"
  598. RHEL / CentOS
  599. ^^^^^^^^^^^^^
  600. Unfortunately ``update-motd`` is currently not available for RHEL so there's
  601. no native support for dynamic motd.
  602. You can still set static one, only pillar structure differs:
  603. .. code-block:: yaml
  604. linux:
  605. system:
  606. motd: |
  607. This is [company name] network.
  608. Unauthorized access strictly prohibited.
  609. Haveged
  610. ~~~~~~~
  611. If you are running headless server and are low on entropy, it may be a good
  612. idea to setup Haveged.
  613. .. code-block:: yaml
  614. linux:
  615. system:
  616. haveged:
  617. enabled: true
  618. Linux network
  619. -------------
  620. Linux with network manager
  621. .. code-block:: yaml
  622. linux:
  623. network:
  624. enabled: true
  625. network_manager: true
  626. Linux with default static network interfaces, default gateway interface and DNS servers
  627. .. code-block:: yaml
  628. linux:
  629. network:
  630. enabled: true
  631. interface:
  632. eth0:
  633. enabled: true
  634. type: eth
  635. address: 192.168.0.102
  636. netmask: 255.255.255.0
  637. gateway: 192.168.0.1
  638. name_servers:
  639. - 8.8.8.8
  640. - 8.8.4.4
  641. mtu: 1500
  642. Linux with bonded interfaces and disabled NetworkManager
  643. .. code-block:: yaml
  644. linux:
  645. network:
  646. enabled: true
  647. interface:
  648. eth0:
  649. type: eth
  650. ...
  651. eth1:
  652. type: eth
  653. ...
  654. bond0:
  655. enabled: true
  656. type: bond
  657. address: 192.168.0.102
  658. netmask: 255.255.255.0
  659. mtu: 1500
  660. use_in:
  661. - interface: ${linux:interface:eth0}
  662. - interface: ${linux:interface:eth0}
  663. network_manager:
  664. disable: true
  665. Linux with vlan interface_params
  666. .. code-block:: yaml
  667. linux:
  668. network:
  669. enabled: true
  670. interface:
  671. vlan69:
  672. type: vlan
  673. use_interfaces:
  674. - interface: ${linux:interface:bond0}
  675. Linux with wireless interface parameters
  676. .. code-block:: yaml
  677. linux:
  678. network:
  679. enabled: true
  680. gateway: 10.0.0.1
  681. default_interface: eth0
  682. interface:
  683. wlan0:
  684. type: eth
  685. wireless:
  686. essid: example
  687. key: example_key
  688. security: wpa
  689. priority: 1
  690. Linux networks with routes defined
  691. .. code-block:: yaml
  692. linux:
  693. network:
  694. enabled: true
  695. gateway: 10.0.0.1
  696. default_interface: eth0
  697. interface:
  698. eth0:
  699. type: eth
  700. route:
  701. default:
  702. address: 192.168.0.123
  703. netmask: 255.255.255.0
  704. gateway: 192.168.0.1
  705. Native Linux Bridges
  706. .. code-block:: yaml
  707. linux:
  708. network:
  709. interface:
  710. eth1:
  711. enabled: true
  712. type: eth
  713. proto: manual
  714. up_cmds:
  715. - ip address add 0/0 dev $IFACE
  716. - ip link set $IFACE up
  717. down_cmds:
  718. - ip link set $IFACE down
  719. br-ex:
  720. enabled: true
  721. type: bridge
  722. address: ${linux:network:host:public_local:address}
  723. netmask: 255.255.255.0
  724. use_interfaces:
  725. - eth1
  726. OpenVswitch Bridges
  727. .. code-block:: yaml
  728. linux:
  729. network:
  730. bridge: openvswitch
  731. interface:
  732. eth1:
  733. enabled: true
  734. type: eth
  735. proto: manual
  736. up_cmds:
  737. - ip address add 0/0 dev $IFACE
  738. - ip link set $IFACE up
  739. down_cmds:
  740. - ip link set $IFACE down
  741. br-ex:
  742. enabled: true
  743. type: bridge
  744. address: ${linux:network:host:public_local:address}
  745. netmask: 255.255.255.0
  746. use_interfaces:
  747. - eth1
  748. br-prv:
  749. enabled: true
  750. type: ovs_bridge
  751. mtu: 65000
  752. br-ens7:
  753. enabled: true
  754. name: br-ens7
  755. type: ovs_bridge
  756. proto: manual
  757. mtu: 9000
  758. use_interfaces:
  759. - ens7
  760. patch-br-ens7-br-prv:
  761. enabled: true
  762. name: ens7-prv
  763. ovs_type: ovs_port
  764. type: ovs_port
  765. bridge: br-ens7
  766. port_type: patch
  767. peer: prv-ens7
  768. mtu: 65000
  769. patch-br-prv-br-ens7:
  770. enabled: true
  771. name: prv-ens7
  772. bridge: br-prv
  773. ovs_type: ovs_port
  774. type: ovs_port
  775. port_type: patch
  776. peer: ens7-prv
  777. mtu: 65000
  778. ens7:
  779. enabled: true
  780. name: ens7
  781. proto: manual
  782. ovs_port_type: OVSPort
  783. type: ovs_port
  784. ovs_bridge: br-ens7
  785. bridge: br-ens7
  786. Debian manual proto interfaces
  787. When you are changing interface proto from static in up state to manual, you
  788. may need to flush ip addresses. For example, if you want to use the interface
  789. and the ip on the bridge. This can be done by setting the ``ipflush_onchange``
  790. to true.
  791. .. code-block:: yaml
  792. linux:
  793. network:
  794. interface:
  795. eth1:
  796. enabled: true
  797. type: eth
  798. proto: manual
  799. mtu: 9100
  800. ipflush_onchange: true
  801. Concatinating and removing interface files
  802. Debian based distributions have `/etc/network/interfaces.d/` directory, where
  803. you can store configuration of network interfaces in separate files. You can
  804. concatinate the files to the defined destination when needed, this operation
  805. removes the file from the `/etc/network/interfaces.d/`. If you just need to
  806. remove iface files, you can use the `remove_iface_files` key.
  807. .. code-block:: yaml
  808. linux:
  809. network:
  810. concat_iface_files:
  811. - src: '/etc/network/interfaces.d/50-cloud-init.cfg'
  812. dst: '/etc/network/interfaces'
  813. remove_iface_files:
  814. - '/etc/network/interfaces.d/90-custom.cfg'
  815. DHCP client configuration
  816. None of the keys is mandatory, include only those you really need. For full list
  817. of available options under send, supersede, prepend, append refer to dhcp-options(5)
  818. .. code-block:: yaml
  819. linux:
  820. network:
  821. dhclient:
  822. enabled: true
  823. backoff_cutoff: 15
  824. initial_interval: 10
  825. reboot: 10
  826. retry: 60
  827. select_timeout: 0
  828. timeout: 120
  829. send:
  830. - option: host-name
  831. declaration: "= gethostname()"
  832. supersede:
  833. - option: host-name
  834. declaration: "spaceship"
  835. - option: domain-name
  836. declaration: "domain.home"
  837. #- option: arp-cache-timeout
  838. # declaration: 20
  839. prepend:
  840. - option: domain-name-servers
  841. declaration:
  842. - 8.8.8.8
  843. - 8.8.4.4
  844. - option: domain-search
  845. declaration:
  846. - example.com
  847. - eng.example.com
  848. #append:
  849. #- option: domain-name-servers
  850. # declaration: 127.0.0.1
  851. # ip or subnet to reject dhcp offer from
  852. reject:
  853. - 192.33.137.209
  854. - 10.0.2.0/24
  855. request:
  856. - subnet-mask
  857. - broadcast-address
  858. - time-offset
  859. - routers
  860. - domain-name
  861. - domain-name-servers
  862. - domain-search
  863. - host-name
  864. - dhcp6.name-servers
  865. - dhcp6.domain-search
  866. - dhcp6.fqdn
  867. - dhcp6.sntp-servers
  868. - netbios-name-servers
  869. - netbios-scope
  870. - interface-mtu
  871. - rfc3442-classless-static-routes
  872. - ntp-servers
  873. require:
  874. - subnet-mask
  875. - domain-name-servers
  876. # if per interface configuration required add below
  877. interface:
  878. ens2:
  879. initial_interval: 11
  880. reject:
  881. - 192.33.137.210
  882. ens3:
  883. initial_interval: 12
  884. reject:
  885. - 192.33.137.211
  886. Linux network systemd settings:
  887. .. code-block:: yaml
  888. linux:
  889. network:
  890. ...
  891. systemd:
  892. link:
  893. 10-iface-dmz:
  894. Match:
  895. MACAddress: c8:5b:67:fa:1a:af
  896. OriginalName: eth0
  897. Link:
  898. Name: dmz0
  899. netdev:
  900. 20-bridge-dmz:
  901. match:
  902. name: dmz0
  903. network:
  904. mescription: bridge
  905. bridge: br-dmz0
  906. network:
  907. # works with lowercase, keys are by default capitalized
  908. 40-dhcp:
  909. match:
  910. name: '*'
  911. network:
  912. DHCP: yes
  913. Configure global environment variables
  914. Use ``/etc/environment`` for static system wide variable assignment after
  915. boot. Variable expansion is frequently not supported.
  916. .. code-block:: yaml
  917. linux:
  918. system:
  919. env:
  920. BOB_VARIABLE: Alice
  921. ...
  922. BOB_PATH:
  923. - /srv/alice/bin
  924. - /srv/bob/bin
  925. ...
  926. ftp_proxy: none
  927. http_proxy: http://global-http-proxy.host.local:8080
  928. https_proxy: ${linux:system:proxy:https}
  929. no_proxy:
  930. - 192.168.0.80
  931. - 192.168.1.80
  932. - .domain.com
  933. - .local
  934. ...
  935. # NOTE: global defaults proxy configuration.
  936. proxy:
  937. ftp: ftp://proxy.host.local:2121
  938. http: http://proxy.host.local:3142
  939. https: https://proxy.host.local:3143
  940. noproxy:
  941. - .domain.com
  942. - .local
  943. Configure profile.d scripts
  944. The profile.d scripts are being sourced during .sh execution and support
  945. variable expansion in opposite to /etc/environment global settings in
  946. ``/etc/environment``.
  947. .. code-block:: yaml
  948. linux:
  949. system:
  950. profile:
  951. locales: |
  952. export LANG=C
  953. export LC_ALL=C
  954. ...
  955. vi_flavors.sh: |
  956. export PAGER=view
  957. export EDITOR=vim
  958. alias vi=vim
  959. shell_locales.sh: |
  960. export LANG=en_US
  961. export LC_ALL=en_US.UTF-8
  962. shell_proxies.sh: |
  963. export FTP_PROXY=ftp://127.0.3.3:2121
  964. export NO_PROXY='.local'
  965. Linux with hosts
  966. Parameter purge_hosts will enforce whole /etc/hosts file, removing entries
  967. that are not defined in model except defaults for both IPv4 and IPv6 localhost
  968. and hostname + fqdn.
  969. It's good to use this option if you want to ensure /etc/hosts is always in a
  970. clean state however it's not enabled by default for safety.
  971. .. code-block:: yaml
  972. linux:
  973. network:
  974. purge_hosts: true
  975. host:
  976. # No need to define this one if purge_hosts is true
  977. hostname:
  978. address: 127.0.1.1
  979. names:
  980. - ${linux:network:fqdn}
  981. - ${linux:network:hostname}
  982. node1:
  983. address: 192.168.10.200
  984. names:
  985. - node2.domain.com
  986. - service2.domain.com
  987. node2:
  988. address: 192.168.10.201
  989. names:
  990. - node2.domain.com
  991. - service2.domain.com
  992. Linux with hosts collected from mine
  993. In this case all dns records defined within infrastrucuture will be passed to
  994. local hosts records or any DNS server. Only hosts with `grain` parameter to
  995. true will be propagated to the mine.
  996. .. code-block:: yaml
  997. linux:
  998. network:
  999. purge_hosts: true
  1000. mine_dns_records: true
  1001. host:
  1002. node1:
  1003. address: 192.168.10.200
  1004. grain: true
  1005. names:
  1006. - node2.domain.com
  1007. - service2.domain.com
  1008. Setup resolv.conf, nameservers, domain and search domains
  1009. .. code-block:: yaml
  1010. linux:
  1011. network:
  1012. resolv:
  1013. dns:
  1014. - 8.8.4.4
  1015. - 8.8.8.8
  1016. domain: my.example.com
  1017. search:
  1018. - my.example.com
  1019. - example.com
  1020. options:
  1021. - ndots: 5
  1022. - timeout: 2
  1023. - attempts: 2
  1024. setting custom TX queue length for tap interfaces
  1025. .. code-block:: yaml
  1026. linux:
  1027. network:
  1028. tap_custom_txqueuelen: 10000
  1029. DPDK OVS interfaces
  1030. **DPDK OVS NIC**
  1031. .. code-block:: yaml
  1032. linux:
  1033. network:
  1034. bridge: openvswitch
  1035. dpdk:
  1036. enabled: true
  1037. driver: uio/vfio
  1038. openvswitch:
  1039. pmd_cpu_mask: "0x6"
  1040. dpdk_socket_mem: "1024,1024"
  1041. dpdk_lcore_mask: "0x400"
  1042. memory_channels: 2
  1043. interface:
  1044. dpkd0:
  1045. name: ${_param:dpdk_nic}
  1046. pci: 0000:06:00.0
  1047. driver: igb_uio/vfio-pci
  1048. enabled: true
  1049. type: dpdk_ovs_port
  1050. n_rxq: 2
  1051. pmd_rxq_affinity: "0:1,1:2"
  1052. bridge: br-prv
  1053. mtu: 9000
  1054. br-prv:
  1055. enabled: true
  1056. type: dpdk_ovs_bridge
  1057. **DPDK OVS Bond**
  1058. .. code-block:: yaml
  1059. linux:
  1060. network:
  1061. bridge: openvswitch
  1062. dpdk:
  1063. enabled: true
  1064. driver: uio/vfio
  1065. openvswitch:
  1066. pmd_cpu_mask: "0x6"
  1067. dpdk_socket_mem: "1024,1024"
  1068. dpdk_lcore_mask: "0x400"
  1069. memory_channels: 2
  1070. interface:
  1071. dpdk_second_nic:
  1072. name: ${_param:primary_second_nic}
  1073. pci: 0000:06:00.0
  1074. driver: igb_uio/vfio-pci
  1075. bond: dpdkbond0
  1076. enabled: true
  1077. type: dpdk_ovs_port
  1078. n_rxq: 2
  1079. pmd_rxq_affinity: "0:1,1:2"
  1080. mtu: 9000
  1081. dpdk_first_nic:
  1082. name: ${_param:primary_first_nic}
  1083. pci: 0000:05:00.0
  1084. driver: igb_uio/vfio-pci
  1085. bond: dpdkbond0
  1086. enabled: true
  1087. type: dpdk_ovs_port
  1088. n_rxq: 2
  1089. pmd_rxq_affinity: "0:1,1:2"
  1090. mtu: 9000
  1091. dpdkbond0:
  1092. enabled: true
  1093. bridge: br-prv
  1094. type: dpdk_ovs_bond
  1095. mode: active-backup
  1096. br-prv:
  1097. enabled: true
  1098. type: dpdk_ovs_bridge
  1099. **DPDK OVS bridge for VXLAN**
  1100. If VXLAN is used as tenant segmentation then ip address must be set on br-prv
  1101. .. code-block:: yaml
  1102. linux:
  1103. network:
  1104. ...
  1105. interface:
  1106. br-prv:
  1107. enabled: true
  1108. type: dpdk_ovs_bridge
  1109. address: 192.168.50.0
  1110. netmask: 255.255.255.0
  1111. mtu: 9000
  1112. Linux storage
  1113. -------------
  1114. Linux with mounted Samba
  1115. .. code-block:: yaml
  1116. linux:
  1117. storage:
  1118. enabled: true
  1119. mount:
  1120. samba1:
  1121. - enabled: true
  1122. - path: /media/myuser/public/
  1123. - device: //192.168.0.1/storage
  1124. - file_system: cifs
  1125. - options: guest,uid=myuser,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm
  1126. NFS mount
  1127. .. code-block:: yaml
  1128. linux:
  1129. storage:
  1130. enabled: true
  1131. mount:
  1132. nfs_glance:
  1133. enabled: true
  1134. path: /var/lib/glance/images
  1135. device: 172.16.10.110:/var/nfs/glance
  1136. file_system: nfs
  1137. opts: rw,sync
  1138. File swap configuration
  1139. .. code-block:: yaml
  1140. linux:
  1141. storage:
  1142. enabled: true
  1143. swap:
  1144. file:
  1145. enabled: true
  1146. engine: file
  1147. device: /swapfile
  1148. size: 1024
  1149. Partition swap configuration
  1150. .. code-block:: yaml
  1151. linux:
  1152. storage:
  1153. enabled: true
  1154. swap:
  1155. partition:
  1156. enabled: true
  1157. engine: partition
  1158. device: /dev/vg0/swap
  1159. LVM group `vg1` with one device and `data` volume mounted into `/mnt/data`
  1160. .. code-block:: yaml
  1161. parameters:
  1162. linux:
  1163. storage:
  1164. mount:
  1165. data:
  1166. enabled: true
  1167. device: /dev/vg1/data
  1168. file_system: ext4
  1169. path: /mnt/data
  1170. lvm:
  1171. vg1:
  1172. enabled: true
  1173. devices:
  1174. - /dev/sdb
  1175. volume:
  1176. data:
  1177. size: 40G
  1178. mount: ${linux:storage:mount:data}
  1179. Create partitions on disk. Specify size in MB. It expects empty
  1180. disk without any existing partitions.
  1181. .. code-block:: yaml
  1182. linux:
  1183. storage:
  1184. disk:
  1185. first_drive:
  1186. name: /dev/loop1
  1187. type: gpt
  1188. partitions:
  1189. - size: 200 #size in MB
  1190. type: fat32
  1191. - size: 300 #size in MB
  1192. mkfs: True
  1193. type: xfs
  1194. /dev/vda1:
  1195. partitions:
  1196. - size: 5
  1197. type: ext2
  1198. - size: 10
  1199. type: ext4
  1200. Multipath with Fujitsu Eternus DXL
  1201. .. code-block:: yaml
  1202. parameters:
  1203. linux:
  1204. storage:
  1205. multipath:
  1206. enabled: true
  1207. blacklist_devices:
  1208. - /dev/sda
  1209. - /dev/sdb
  1210. backends:
  1211. - fujitsu_eternus_dxl
  1212. Multipath with Hitachi VSP 1000
  1213. .. code-block:: yaml
  1214. parameters:
  1215. linux:
  1216. storage:
  1217. multipath:
  1218. enabled: true
  1219. blacklist_devices:
  1220. - /dev/sda
  1221. - /dev/sdb
  1222. backends:
  1223. - hitachi_vsp1000
  1224. Multipath with IBM Storwize
  1225. .. code-block:: yaml
  1226. parameters:
  1227. linux:
  1228. storage:
  1229. multipath:
  1230. enabled: true
  1231. blacklist_devices:
  1232. - /dev/sda
  1233. - /dev/sdb
  1234. backends:
  1235. - ibm_storwize
  1236. Multipath with multiple backends
  1237. .. code-block:: yaml
  1238. parameters:
  1239. linux:
  1240. storage:
  1241. multipath:
  1242. enabled: true
  1243. blacklist_devices:
  1244. - /dev/sda
  1245. - /dev/sdb
  1246. - /dev/sdc
  1247. - /dev/sdd
  1248. backends:
  1249. - ibm_storwize
  1250. - fujitsu_eternus_dxl
  1251. - hitachi_vsp1000
  1252. Disabled multipath (the default setup)
  1253. .. code-block:: yaml
  1254. parameters:
  1255. linux:
  1256. storage:
  1257. multipath:
  1258. enabled: false
  1259. Linux with local loopback device
  1260. .. code-block:: yaml
  1261. linux:
  1262. storage:
  1263. loopback:
  1264. disk1:
  1265. file: /srv/disk1
  1266. size: 50G
  1267. External config generation
  1268. --------------------------
  1269. You are able to use config support metadata between formulas and only generate
  1270. config files for external use, eg. docker, etc.
  1271. .. code-block:: yaml
  1272. parameters:
  1273. linux:
  1274. system:
  1275. config:
  1276. pillar:
  1277. jenkins:
  1278. master:
  1279. home: /srv/volumes/jenkins
  1280. approved_scripts:
  1281. - method java.net.URL openConnection
  1282. credentials:
  1283. - type: username_password
  1284. scope: global
  1285. id: test
  1286. desc: Testing credentials
  1287. username: test
  1288. password: test
  1289. Netconsole Remote Kernel Logging
  1290. --------------------------------
  1291. Netconsole logger could be configured for configfs-enabled kernels
  1292. (`CONFIG_NETCONSOLE_DYNAMIC` should be enabled). Configuration applies both in
  1293. runtime (if network is already configured), and on-boot after interface
  1294. initialization. Notes:
  1295. * receiver could be located only in same L3 domain
  1296. (or you need to configure gateway MAC manually)
  1297. * receiver's MAC is detected only on configuration time
  1298. * using broadcast MAC is not recommended
  1299. .. code-block:: yaml
  1300. parameters:
  1301. linux:
  1302. system:
  1303. netconsole:
  1304. enabled: true
  1305. port: 514 (optional)
  1306. loglevel: debug (optional)
  1307. target:
  1308. 192.168.0.1:
  1309. interface: bond0
  1310. mac: "ff:ff:ff:ff:ff:ff" (optional)
  1311. Usage
  1312. =====
  1313. Set mtu of network interface eth0 to 1400
  1314. .. code-block:: bash
  1315. ip link set dev eth0 mtu 1400
  1316. Read more
  1317. =========
  1318. * https://www.archlinux.org/
  1319. * http://askubuntu.com/questions/175172/how-do-i-configure-proxies-in-ubuntu-server-or-minimal-cli-ubuntu
  1320. Documentation and Bugs
  1321. ======================
  1322. To learn how to install and update salt-formulas, consult the documentation
  1323. available online at:
  1324. http://salt-formulas.readthedocs.io/
  1325. In the unfortunate event that bugs are discovered, they should be reported to
  1326. the appropriate issue tracker. Use Github issue tracker for specific salt
  1327. formula:
  1328. https://github.com/salt-formulas/salt-formula-linux/issues
  1329. For feature requests, bug reports or blueprints affecting entire ecosystem,
  1330. use Launchpad salt-formulas project:
  1331. https://launchpad.net/salt-formulas
  1332. You can also join salt-formulas-users team and subscribe to mailing list:
  1333. https://launchpad.net/~salt-formulas-users
  1334. Developers wishing to work on the salt-formulas projects should always base
  1335. their work on master branch and submit pull request against specific formula.
  1336. https://github.com/salt-formulas/salt-formula-linux
  1337. Any questions or feedback is always welcome so feel free to join our IRC
  1338. channel:
  1339. #salt-formulas @ irc.freenode.net