Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-08-08

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 Linz joined #salt
00:04 dthom91 joined #salt
00:04 tomeff joined #salt
00:07 ldgeorge85 joined #salt
00:08 jslatts joined #salt
00:20 aat joined #salt
00:22 [diecast] joined #salt
00:23 cwarner joined #salt
00:25 mgw joined #salt
00:28 pdayton joined #salt
00:31 logix812 joined #salt
00:31 berto- joined #salt
00:39 aat joined #salt
00:43 whit joined #salt
00:44 pdayton joined #salt
00:45 blee joined #salt
00:48 wendall911 joined #salt
00:48 krissaxton joined #salt
00:51 dthom91 joined #salt
00:51 troyready joined #salt
00:52 cxz hey, is there a way to get a list of all states?
00:57 m_george|away joined #salt
01:00 Lue_4911 joined #salt
01:03 auser joined #salt
01:05 Lue_4911 joined #salt
01:05 p3rror joined #salt
01:08 Ryan_Lane joined #salt
01:12 kenbolton joined #salt
01:23 honestly joined #salt
01:26 KyleG cxz: You can see which states will affect a specific minion. salt 'minion' state.show_highstate
01:26 cxz yeh
01:26 cxz not interested in that
01:34 honestly joined #salt
01:36 Nexpro1 joined #salt
01:39 Linz_ joined #salt
01:48 jdenning joined #salt
01:49 krissaxton joined #salt
01:57 FOCer joined #salt
02:14 atx_sono joined #salt
02:17 oz_akan_ joined #salt
02:19 liuyq joined #salt
02:19 jdenning joined #salt
02:19 UtahDave joined #salt
02:24 Ryan_Lane joined #salt
02:39 dthom91 joined #salt
02:40 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.16.2 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers - Channel logs are available at http://irclog.perlgeek.de/salt/
02:44 kenbolton joined #salt
02:49 krissaxton joined #salt
02:51 Gifflen joined #salt
02:53 carmony joined #salt
02:55 Lue_4911 joined #salt
02:58 dthom91 joined #salt
03:04 kenbolton joined #salt
03:07 jacksontj joined #salt
03:12 kermit joined #salt
03:13 Nexpro1 joined #salt
03:16 malinoff joined #salt
03:18 mannyt joined #salt
03:25 spudbook joined #salt
03:26 Furao joined #salt
03:34 Thiggy joined #salt
03:35 wendall911 joined #salt
03:39 Ryan_Lane joined #salt
03:39 berto- joined #salt
03:44 kermit joined #salt
03:56 whit joined #salt
04:16 Gifflen_ joined #salt
04:30 Ryan_Lane joined #salt
04:31 Ryan_Lane1 joined #salt
04:42 dthom91 joined #salt
04:43 Ryan_Lane joined #salt
04:51 krissaxton joined #salt
04:54 frosty996_afk joined #salt
05:06 berto- joined #salt
05:10 syngin Is there a way to get jinja2 not to pollute files with newlines when looping over iterables?
05:10 pdayton joined #salt
05:16 dthom91 joined #salt
05:17 cxz how do i set pillar data with the salt python api
05:18 cxz syngin: use {%-
05:18 cxz and -%}
05:18 cxz {%- for prepended newlines
05:18 cxz and -%} for appended newlines
05:20 Katafalkas joined #salt
05:36 Katafalkas joined #salt
05:39 bzf130_mm joined #salt
05:48 Furao cxz: set pillar data with salt python api?
05:49 Furao cxz: I use ext_pillar for that
05:49 cxz ah ok
05:49 bruce-one joined #salt
05:49 cxz doesn't matter i got my problem solved
05:49 cxz one other thing though
05:49 cxz how can i run salt-call on a minion as non-root?
05:49 Furao sudo -u nonrootuser salt-call? :P
05:50 Katafalkas joined #salt
05:50 cxz no i mean
05:50 cxz as a user
05:50 cxz 'myuser'
05:50 cxz it can't run salt-call without getting permission problems
05:50 cxz salt-call expects to be run as root i believe (at least on the minion)
05:50 Furao http://docs.saltstack.com/ref/configuration/minion.html#user
05:51 krissaxton joined #salt
05:51 matanya joined #salt
05:51 cxz 'Could not access /etc/salt/pki/minion. Try running as user root.
05:51 cxz '
05:52 cxz i still want salt-minion running as root
05:52 cxz i just want to be able to use salt-call non root
05:52 cxz client_acl doesn't help on the minion
05:53 Furao salt-call need to read the keys to talk to the master
05:53 Furao and the permission are root:root 400 (or 440)
05:54 Furao so, to run salt-call as non-root you need to change at least this (and other files) permission
05:54 Furao I wonder if you can run salt-call --local as non-root
05:54 cxz i guess client-acl obviously doesn't work because the comment in the config file has this:
05:54 cxz '# Allow users on the master access to execute specific commands on minions.'
05:55 cxz so that is purely a configuration for the salt-master only
05:55 cxz salt-call --local will use the local FS
05:55 cxz it doesn't contact the master at all
05:57 Furao no it don't
05:57 Furao as it's the way I bootstrap my master (as there is no master yet)
05:57 Furao salt-call --local state.highstate
05:57 cxz yes
05:57 cxz it uses local states
05:57 cxz i don't think you understand what i'm saying
05:57 cxz this is completely irrelevant to what i want
05:58 cxz i need to retrieve pillar data from the master, --local is not an option
06:02 Furao then you need communication between minion and master
06:02 Furao you need access to keys
06:02 Furao and probably write access to /var/cache/salt/minion
06:02 Furao salt-call is just a minion "in a" cli process, instead of a deamon
06:03 Furao so, if you still want to run the minion as root, and sometimes salt-call as non-root
06:03 troyready joined #salt
06:03 Furao you should have a virtualenv for that non-root user with a copy of the the private key to talk to the master
06:03 Furao oh no, no need to fhrat
06:03 Furao for that
06:04 Furao just need a separate minion config you can use for that salt-call
06:04 Furao and it will have read access to the private key and a separate opts['cachedir'] to write
06:04 nonuby joined #salt
06:05 Furao salt-call --config-dir=/home/$nonrootuser/salt
06:06 Furao and have a /home/$nonrootuser/salt/config with a user=$nonrootuser and a cachedir=/home/$nonrootuser/salt/cache
06:06 Furao but why you need to run a salt-call as non-root?
06:06 ollins joined #salt
06:06 Furao probably for security reason, but maybe there is a better way to do solve your problem
06:10 Ryan_Lane joined #salt
06:15 nonuby "The Salt master communicates with the minions using an AES-encrypted ZeroMQ connection" is the AES in addition to pub/private key stuff that authenticates the minion?
06:23 bzf130_mm joined #salt
06:27 cxz salt-call should really be modified so that the non-root user doesn't need to have write access to anything or read access to anything
06:27 cxz that would probably require it to be setuid though
06:30 oz_akan_ joined #salt
06:32 nonuby looks at building a system on top of salt. are commands executed in parrellel on the salt minion i.e. if two people run a script via salt <target> <cmd> where it makes a check that could be non-deterministic based on where each cmd is up to?
06:39 pkruithof joined #salt
06:48 bud joined #salt
06:51 syngin Is there a way to get jinja2 not to pollute files with newlines when looping over iterables?
06:51 syngin oops
06:51 syngin DONT PRESS UP AND ENTER WITHOUT LOOKING KIDS
06:51 bud syngin: yes there is {% -%}.
06:51 bud The '-" removes the line.
06:52 syngin bud: yeah, that was an older question - I accidentally reposted it ;)
06:53 EugeneKay Ask harder, not smarter
06:54 EugeneKay nonuby - my understanding is that it's a homerolled AES implementation; the pub/private key thing is used more for authentication of the client/server, while the AES stuff provides the data channel
06:55 EugeneKay nonuby - I've been told(and do) that even with this, you should only run Salt traffic over an otherwise encrypted channel, eg a trusted LAN or an OpenVPN link.
06:55 EugeneKay It /probably/ would be OK to run it ove the open internet, but that was said abotu SSH-1, once upon a time ;-)
06:56 nonuby EugeneKay, thanks!
06:57 bud Or oven a tinc VPN channel :).
06:58 felskrone joined #salt
07:00 ml_1 joined #salt
07:09 druonysus joined #salt
07:13 druonysuse joined #salt
07:15 druonysus joined #salt
07:16 kaos|work joined #salt
07:18 nonuby if I want a grain to contain the load average of a minion over the last 24hrs (from 5m sample) I guess I would have to use sls schedule with load/uptime task, set to 5m and use rdbms reporter, then build a little util to poll the rdbms every 5mins calculate 24hr load and then do programatiically set the grain val for each node?
07:20 luff joined #salt
07:21 Furao nonuby: that's a very bad idea
07:22 nonuby Furao, how would you handle that then? target a single minion based on load average of last 24hrs (from 5m samples)
07:23 Furao grains are supposed to be built at minion startup, they're static values over minion lifetime
07:24 Furao rdbms reporter?
07:24 Furao personally, I would use graphite for that
07:25 Furao (well diamond -> carbon and use graphite to get load values)
07:26 balboah joined #salt
07:27 vaxholm joined #salt
07:28 nonuby targetting only works on grains though?
07:29 bud nonuby: that's only half of the thruth - http://docs.saltstack.com/topics/targeting/index.html.
07:29 Furao I would build a list of the minion with proper load and use -L
07:31 Ryan_Lane joined #salt
07:31 nonuby you mean query database/graphite in my code and then pass the explicit node list to salt ?
07:31 Furao yes
07:33 nonuby sounds reasonable
07:34 nonuby does the minion executes commands in serial manner (i.e. two file manipulation) commands cant run at the same time on same minion?
07:34 Furao what if you ends with crazier requirements/conditions and you only implement it in grains, you'll ends with very complex logic you have to manage in all minions
07:34 Furao the same command can't run 2 times in parallel, the minion will reject the 2nd one
07:35 Furao but you can run test.ping and saltutil.refresh_pillar while a state.highstate is running
07:36 nonuby how does the minion know which commands are safe?
07:37 nonuby is this metadata in the executors?
07:37 Furao I didn't looked at that code so far and I didn't tried other command
07:38 Furao maybe it refuse to run 2 function of the same module
07:38 Furao you can easily try it
07:39 scott_w joined #salt
07:39 krissaxton joined #salt
07:43 helderco joined #salt
07:50 pkruithof joined #salt
07:54 Furao weird, I get internal/debug stuff in google maps http://picpaste.com/pics/727586b5e8d258a6d9c50dc707e7e3e1.1375948406.png
07:55 felixhummel joined #salt
07:56 it_dude joined #salt
07:57 felskrone joined #salt
08:00 nonuby how do I use cmd.run with no shell? passing shell=None yields an error
08:20 Xeago joined #salt
08:23 zooz joined #salt
08:25 hvn joined #salt
08:27 hvn hello everyone, do salt-minion will use its new config after it restarted by itself (run state: salt-minion.service.wait)? Seem it doesn't work. I'm trying to config salt for mysql and use mysql state only in one run.
08:29 scott_w joined #salt
08:31 Mouzz joined #salt
08:40 krissaxton joined #salt
08:43 squelch joined #salt
08:45 squelch does anyone know if i can use this - https://github.com/saltstack/salt/pull/6233 to extend pillars
08:54 djn anybody using the smtp returner? how can I include the date in the correct field?
08:58 ggoZ joined #salt
08:59 ninkotech_ joined #salt
09:05 helderco joined #salt
09:10 carlos joined #salt
09:21 Ryan_Lane joined #salt
09:24 dthom91 joined #salt
09:32 david_a joined #salt
09:40 pkruithof joined #salt
09:43 blast_hardcheese joined #salt
09:44 whiskybar joined #salt
09:45 pdayton joined #salt
09:46 krak3n` joined #salt
09:47 austin987 joined #salt
09:59 Katafalkas joined #salt
10:04 tomspur joined #salt
10:04 tomspur joined #salt
10:09 jefferai joined #salt
10:09 david_a joined #salt
10:09 rhand joined #salt
10:15 blee joined #salt
10:23 Furao https://gist.github.com/bclermont/61e09fdef1e49c4a4417
10:24 Furao I didn't knew that extend and include was now working properly
10:24 Furao this is one of best features! and there is almost nothing about it in the doc
10:25 Furao I'll be able to remove so much lines of states and templates
10:34 gildegoma joined #salt
10:48 Katafalkas joined #salt
10:50 lemao joined #salt
10:57 it_dude joined #salt
11:04 honestly wouldn't it be useful to have saltstack-formulas be more complete?
11:05 honestly the users-formula for example...
11:06 squelch what's the best way to manage users/pw's in a .htpasswd file
11:06 Katafalkas joined #salt
11:14 giantlock joined #salt
11:17 honestly something is fishy in the users template.
11:20 bhosmer joined #salt
11:28 bhosmer_ joined #salt
11:28 Furao honestly: the only few state I checked there had errors. and are so simple that I don't see how they can work in real life situation
11:29 honestly hm.
11:30 honestly yes, the users-formula errors out for me.
11:30 honestly it doesn't really seem simple to me though.
11:30 honestly is there a way to compile a templated sls to see it unfolded?
11:31 Furao check the minion logs at debug level
11:32 honestly how do I set the log level to debug?
11:32 Furao http://docs.saltstack.com/search.html?q=debug&amp;check_keywords=yes&amp;area=default
11:32 faldridge joined #salt
11:33 pkruithof joined #salt
11:33 octarine joined #salt
11:34 scalability-junk joined #salt
11:40 honestly if I change a state file, I don't need to do anything other than execute state.highstate to get the updated state to be read, correct?
11:40 m_george left #salt
11:40 Furao if you use gitfs you might have to wait up to 60 sec
11:46 honestly anybody know if @techhat on github is in here?
11:48 afx_hero joined #salt
11:52 flupke honestly: you can use state.show_sls: salt '*' state.show_sls statename
11:54 honestly flupke: cool, thanks
11:55 nonuby joined #salt
11:55 squelch does no one here need to overwrite pillars.. how do you add pillars for different environments and also include common options for all environments? (preferably without having separate entries for each option. i.e. nginx: version \n web_dir instead of nginx_version, nginx_webdir etc..
11:56 nonuby do I understand this correctly, minions are not aware of states, states are the concern of master, which when a change is mandated build a list of execution to be carried out of the minion?
11:58 honestly nonuby: the master builds the state for the minion, then the minion ensures that state. as far as I understood it.
11:58 nonuby squelch, do pillars support all the stuff of sls, i.e. extends for overrides http://docs.saltstack.com/ref/states/extend.html
12:00 nonuby so this code https://github.com/saltstack/salt/blob/develop/salt/states/user.py would be executed on the minion? rather than on the master using information it knows about the minion?
12:02 squelch nonuby: this didn't work on my version of salt, has there been an update recently
12:02 nonuby no idea, sorry new to salt, just digesting docs today
12:02 flupke nonuby: yes, the master doesn't know anything about the minions states
12:02 squelch nonuby: yeah, i don't think that works.. it should though
12:03 cron0 joined #salt
12:03 kenbolton joined #salt
12:04 nonuby flupke, so just to clarify when there is a change to user config (/etc/passwd etc..) the minion just received a sequential list of execution instructions (append this, delete this, restart)
12:04 renothing joined #salt
12:05 nonuby ah sorry
12:05 nonuby i read that wrong
12:05 * renothing
12:05 * ren0thing
12:06 ren0thing hellome:
12:06 fragamus joined #salt
12:12 nonuby does the master use inotify to monitor .sls files for changes?
12:15 nonuby when using gitfs for the state tree what notifies the master that the repo has advanced and needs to be pulled?
12:24 squelch posted it on the mailing list
12:28 jslatts joined #salt
12:29 mike25ro joined #salt
12:30 bhosmer joined #salt
12:35 pkruithof joined #salt
12:37 chrisgilmerproj joined #salt
12:46 Katafalkas joined #salt
12:47 nonuby if writing ones own state modules should execution be idempotent? in that if the minion loses power during one (i.e. it does get to the point of returning True) then it can be reran without adverse effects?
12:48 bud joined #salt
12:50 spudbook joined #salt
12:53 flupke nonuby: states should probe the system before modifying it (e.g. pkg.installed checks if a package is installed before running apt-get install), that makes them indempotent
12:57 bhosmer joined #salt
12:57 Katafalkas joined #salt
12:58 anteaya joined #salt
13:00 faldridge joined #salt
13:07 oz_akan_ joined #salt
13:09 ggoZ joined #salt
13:09 qba73 joined #salt
13:09 mike25ro hey guys ,... i need to set up a ftp server ... i am thinking of using pure-ftp ... now ... the problem is that i want to manage the virtual accounts from my master, the ftp-server is already a minion. Please suggest the best way to store the data of each user that connects to the ftp server (username, pass, homedir, quota, bandwidth etc etc )
13:10 Furao people still use ftp in 2013? :)
13:11 mike25ro Furao: ... i know.... ftp with TLS
13:11 Gifflen joined #salt
13:11 Furao I got a proftpd states but it's only for a single client, so it's very basic
13:11 mike25ro but is not ... that... i am just curious on how .. to do it
13:11 Furao use postgresql for auth
13:11 mike25ro Furao: can you show me that ? i was looking at proftpd as well
13:12 mike25ro i was thinking at mysql for auth - i am more familiar with mysql
13:12 brianhicks joined #salt
13:12 Furao I try to avoid mysql as it's not a real database http://www.youtube.com/watch?v=1PoFIohBSM4
13:12 mike25ro Furao: should i ... store ... all users in a pillar ? is that a good thing?
13:12 mike25ro Furao:  haa ha :)
13:13 Furao really check that video
13:13 mike25ro I AM Furao
13:13 Furao I happy I stopped using mysql 10 years ago
13:13 Furao check your private msg
13:13 mike25ro Furao: ... wow ... then you are a master of postgres :)
13:14 mike25ro how is the multi-master in postgres? ... i have never used postgres... but mysql is a pain .. percona/galera seem to start something in that direction
13:14 mgw joined #salt
13:14 oz_akan_ joined #salt
13:15 Furao it had been production ready for a long time
13:15 Furao but it's better to use 9.2 than < 9.2
13:15 mike25ro ah ok ... i will look into postgres
13:15 mike25ro thanks for the video
13:16 Ryan_Lane joined #salt
13:18 devinus joined #salt
13:19 westhood joined #salt
13:20 mgw joined #salt
13:21 alunduil joined #salt
13:23 it_dude joined #salt
13:28 juicer2 joined #salt
13:29 racooper joined #salt
13:39 nonuby where are salt mine accessible from? sls generation  on master? state modules on the minion?
13:41 Furao nonuby: minion push data to master, that keep it
13:41 Furao you can use mine.get from any minion to get the value sent by other minions
13:42 Furao minion send data each hour (by default)
13:42 Furao it's far better than peer.peer as you can get data from temporary unavailable minions
13:42 nonuby so mines are like a global version of pillars? in a mult-tenant environment where you dont trust  your minions using mines would be a bad idea?
13:42 Furao you decide which data you push
13:42 Furao it's the output of a salt module
13:42 Furao In my case, it's modules that I wrote
13:43 Furao I wrote a fancy one that check some pillar values to look gather data to send back to master
13:43 Furao i use that for monitoring auto-discovery
13:44 nonuby but another minion i could as part of code running on that (state etc..) mine.get 'customer2' 'somekey'
13:44 kmrhb joined #salt
13:44 mike25ro Furao: you are too smart :)
13:44 Furao nonuby: yes you could
13:45 Furao {% for data in mine.get('*', 'modname.funcname') %}
13:45 napperjabber joined #salt
13:45 Furao FAIL
13:45 Furao it's salt['mine.get']
13:45 Furao mike25ro: :P
13:45 jrpurdy joined #salt
13:47 nonuby okay, on code running on the minion (i.e. a state module), I can access pillar data in the same way (if pillar data is associated with that specific minion) . is there any data bucket like pillars or mines that only runs on the master (i.e. as part of the sls generation) and not visible directly to minions
13:48 mmilano joined #salt
13:48 Furao your minion can take pillar data and send a copy of it to salt mine to make it available to others
13:48 Furao but you only send safe data you carefully pick
13:50 nonuby but if i dont trust my minions, is there any data buckets that exist for masters' eyes only (i.e. i guess that means only for SLS generation)
13:51 Furao if you don't trust your minions only send the minimum required data
13:51 Furao and run the master with pillar_opts: False
13:51 Kholloway joined #salt
13:52 mike25ro left #salt
13:52 m_george|away joined #salt
13:52 Xeago joined #salt
13:52 nonuby Furao, thanks
13:53 m_george left #salt
13:59 troyready joined #salt
14:00 jrpurdy So, does anybody use salt for managing windows desktops?
14:00 aat joined #salt
14:05 ml_1 joined #salt
14:05 LGSilva joined #salt
14:07 LGSilva Good morning. Is it possible to concatenate text files in salt to output to one final file? Let's say I have two vhosts for apache on separate files and I want salt to read those files and merge them into httpd-vhosts.conf - is that possible?
14:07 [diecast] joined #salt
14:08 TheCodeAssassin joined #salt
14:09 Furao LGSilva: file.cummulate
14:09 ipmb joined #salt
14:09 Furao no accumulated
14:09 Furao but try to use conf.d if they're available (as it is for apache, nginx, and most other web servers)
14:10 Furao such as /etc/apache2/sites-enabled/ /etc/nginx/conf.d/
14:10 Furao 1 config per state, much more simple
14:10 Furao I have a huge set of states and I only used file.accumulated once
14:10 LGSilva Thank you Furao, I will look at that
14:13 whiskybar joined #salt
14:17 mannyt joined #salt
14:24 lyddonb_ joined #salt
14:24 it_dude joined #salt
14:25 bhosmer joined #salt
14:29 jalbretsen joined #salt
14:29 kermit joined #salt
14:32 cnelsonsic joined #salt
14:39 faldridge joined #salt
14:39 napperjabber_ joined #salt
14:41 toddejohnson joined #salt
14:45 williamthekid_ joined #salt
14:48 diegows joined #salt
14:48 kenbolton_ joined #salt
14:52 wendall911 joined #salt
14:56 mgw joined #salt
14:59 StDiluted joined #salt
14:59 Gifflen_ joined #salt
15:00 denstark Not sure what I'm doing wrong -- just trying to speficy a version for a package in a state file: https://gist.github.com/anonymous/99b4f6a813f0eccf80a4
15:00 dfinn joined #salt
15:01 FOCer joined #salt
15:07 joehh denstark: maybe missing colon after installed?
15:09 forrest joined #salt
15:15 mannyt_ joined #salt
15:15 DerekRBN Has anyone came across problems with mongo_user state?
15:15 DerekRBN getting a KeyError: 'mongodb.user_exists'
15:15 Katafalkas joined #salt
15:16 DerekRBN possibly could be using it wrong
15:18 TheCodeAssassin left #salt
15:21 joehh joined #salt
15:21 jacksontj joined #salt
15:23 joehh joined #salt
15:27 Gifflen joined #salt
15:33 jdenning joined #salt
15:34 jacksontj joined #salt
15:35 Furao joined #salt
15:38 jschadlick joined #salt
15:38 bhosmer joined #salt
15:43 Bingham joined #salt
15:45 Ahlee is there some secret sauce to pulling job info with /jobs/<jid> when using ext_job_cache?
15:45 Bingham Good morning Crew. I have noticed an odd behavior with the salt master. If the salt master is restarted, some portion of my windows minions stop responding to salt calls from that master. Master = 0.16.0-1313-gea98ba7, minions = 16.0
15:46 Bingham Restarting the service on the minion does not fix it, deleting the salt-key and re-adding it does not fix it
15:47 Bingham The minion key will reappear on the master if I delete the key, but it will not respond to calls from the master. Also, using salt-call on the minion itself does work.
15:48 lazyguru joined #salt
15:52 auser joined #salt
15:59 mannyt_ joined #salt
16:05 jxqz joined #salt
16:07 opapo joined #salt
16:08 Katafalkas joined #salt
16:08 qba73 joined #salt
16:09 KyleG joined #salt
16:09 KyleG joined #salt
16:09 napperjabber_ joined #salt
16:13 Linz joined #salt
16:15 Matthewt_ joined #salt
16:17 Matthewt_ Does salt.states.pkg support darwin/OS X? I'm a bit new to salt and would like to use it to install something from a dmg
16:19 gildegoma joined #salt
16:21 jdenning joined #salt
16:22 carmony joined #salt
16:23 devinus joined #salt
16:23 jacksontj joined #salt
16:25 LGSilva Matthewt_: http://docs.saltstack.com/ref/modules/all/salt.modules.pkg.html
16:26 Matthewt_ Thanks!
16:27 hazzadous joined #salt
16:27 carmony joined #salt
16:30 krissaxton joined #salt
16:30 Lue_4911 joined #salt
16:32 Xeago joined #salt
16:35 Ryan_Lane joined #salt
16:38 berto- joined #salt
16:38 kenbolton joined #salt
16:42 bitz joined #salt
16:44 troyready joined #salt
16:47 Matthewt_ Is there a way to install stuff on OSX with Salt without using homebrew? I'm digging through the docs and stuff but not really finidng much on this
16:48 anteaya joined #salt
16:49 Joe630 Matthewt_: as a minion?
16:49 Matthewt_ Yes
16:50 Joe630 brew looks like the official way
16:50 Joe630 good question though, im learning right now
16:50 bostonian joined #salt
16:50 KyleG joined #salt
16:50 KyleG joined #salt
16:51 Matthewt_ Yeah, I'm seeing the same thing. Puppet seems to have more stuff for OSX, but I'm trying out Salt to help determine which we want to use
16:52 bostonian When the salt master fails and it's reprovisioned (with the same hostname), the salt minions don't re-connect (I have to log in to each machine and restart the salt-minion service). Is there any way to make this happen automatically?
16:52 cnelsonsic joined #salt
16:53 jdenning joined #salt
16:53 kenbolton joined #salt
16:54 djn hey, is there any way to make an exception in my top file's targetting? for example, I want my apticron+ssmtp state enforced everywhere but on my mailserver
16:54 dfinn i'm having some issues adding a script (with salt as the source) into cron.  here's what I have:
16:54 dfinn https://gist.github.com/anonymous/6186428
16:55 dfinn but it doesn't seem to be rendering correctly,
16:55 dfinn do I need to first add the script as a file onto the minion, then add that as a cron job?\
16:58 napperjabber joined #salt
17:03 nliadm managed to have a minion start doing a highstate, and then claim it was unauthenticated
17:03 nliadm great
17:04 bauser joined #salt
17:06 rrauenza I'm using salt for a single deployment -- want to use it standalone to just try it out.  Looks like I can't just run an arbitrary salt repository (relative path...) from the command line.
17:07 rrauenza The use case is my git repo may be in an arbitrary directory, I'd like to be able to cd to the git repo's deploy directory, and run a script that runs my salt config from that directory.
17:08 rrauenza I guess I could wrap it in a script that dynamically creates a config that points to the $CWD ... and point to it... but is there a better way?
17:12 kenbolton joined #salt
17:14 karlp left #salt
17:20 aat joined #salt
17:21 devinus joined #salt
17:25 frosty996 left #salt
17:30 matanya joined #salt
17:31 pkruithof joined #salt
17:34 Slipo joined #salt
17:39 denstark Not sure what I'm doing wrong -- just trying to speficy a version for a package in a state file: https://gist.github.com/anonymous/99b4f6a813f0eccf80a4
17:41 it_dude joined #salt
17:42 kaos|work_ joined #salt
17:44 hwang251 joined #salt
17:45 hwang251 Hi, I followed the states tutorial, but when I run salt '*' state.highstate on the salt master, I get " No Top file or external nodes data matches found" on my salt minion
17:46 auser denstark: your line 4 is indented
17:46 auser make it the same indent level of line 3
17:47 hwang251 in my master conf file? or top.sls?
17:47 denstark auser: Let me give it a go
17:51 timidshark joined #salt
17:52 dave_den hwang251: make sure your top.sls file is in your file_roots bath listed for the 'base' environment in your master config /etc/salt/master
17:53 Thiggy joined #salt
17:53 hwang251 it is
17:53 dave_den by default it is /srv/salt/base/top.sls for the base env
17:54 dave_den hwang251: make sure you have properly formatted yaml in the top.sls file and no extra white spaces
17:54 Thiggy I wrote this about how I'm using git to manage my salt state files and saltmaster config. I'd love to know how other people are managing that stuff, or if there's anything I'm doing crazy wrong. I'm still pretty salt-newb. http://thiglife.com/2013/08/07/managing-a-saltstack-salt-master-with-git/
17:55 diegows joined #salt
17:57 hwang251 I checked both things and it still doesn't work
17:58 berto- terminalmage: ping
17:58 dave_den hwang: have you accepted a minion's key and verified that the minion is talking to the master?
17:59 kenbolton joined #salt
17:59 hwang251 yeah
17:59 terminalmage berto-: you rang?
17:59 EugeneKay Thiggy - I use a single /srv/salt/ directory, and then change my base paths in the master config file to point to those
18:00 dave_den hwang251: on the minion, run:  salt-call -l debug test.ping
18:00 berto- terminalmage: yep, are you in chicago?
18:00 EugeneKay Thiggy - thigns outside of that(eg, /etc/salt/) are file.managed
18:00 EugeneKay My salt master itself being a minion
18:00 hwang251 dave_den: what should I see?
18:00 Thiggy @EugeneKay So what does that look like? /srv/salt/states, /srv/salt/pillars, and /srv/salt/reactor?
18:01 terminalmage berto-: suburban chicago, yes
18:01 Thiggy @EugeneKay That's a lot cleaner I like that.
18:01 terminalmage berto-: why do you ask?
18:01 helderco joined #salt
18:01 berto- i'll be @ djangocon next month.
18:01 dave_den hwang251: post your output to a pastebin. you should see a lot of info and at the end you should see 'local:\n    True'
18:01 berto- terminalmage: ^^ wanted to see if you'd be around.
18:02 EugeneKay Thiggy - I don't have a reactor, but yes
18:02 terminalmage berto-: oh nice. I had a talk submitted for it, but I never heard back
18:02 EugeneKay Thiggy - Here's the public version https://github.com/KHresearch/slug
18:02 terminalmage heh
18:02 hwang251 dave_den: I got that result
18:02 terminalmage berto-: I may still be there, but I am not sure
18:02 EugeneKay (very threadbare)
18:02 dave_den hwang251: post your top.sls to a pastebin.
18:03 terminalmage berto-: I'm pretty certain that Salt will not have a booth there
18:03 dave_den the 'No tops or external nodes matches' means your master is not able to match any minions from your top file.
18:03 berto- terminalmage: well, if you're not attending, we should grab a drink anyway.  /msg me your email address and we can coordinate.
18:03 Thiggy @EugeneKay I like it. I'm gonna do this. Does your salt-master watch those file.managed things in /etc and restart itself?
18:03 terminalmage sure thing
18:03 EugeneKay Yurp.
18:04 EugeneKay If I'm making a change to a minion config(rare) then I end up having to highstate twice, because it aborts halfway through(it restarted the minion service)
18:04 EugeneKay Same with the master config
18:04 hwang251 dave_den: http://pastebin.com/5kxG41D0
18:04 Thiggy Hrmm
18:04 mmilano left #salt
18:06 EugeneKay I'm sure there's a way around that, but I have other things to do :-p
18:06 Thiggy Agreed. Very cool, I'm gonna impl this today
18:06 Thiggy danke
18:06 dave_den hwang: you are not targeting any nodes in your top file. are you trying to match on grains or pillar data?
18:07 hwang251 dave_den: match on grains
18:07 hwang251 dave_den: and my minion has the ldap:true grain
18:07 dave_den hwang: you need to specify match: grains
18:07 dave_den http://docs.saltstack.com/topics/tutorials/states_pt1.html#preparing-the-top-file
18:07 bhosmer joined #salt
18:08 hwang251 dave_den: thanks that fixed it
18:08 dave_den np
18:10 forrest Does anyone know if anything ever happened with https://groups.google.com/forum/#!topic/salt-users/i7JtuE2tZQA ?
18:10 whit joined #salt
18:11 forrest focusing on Tom's response with a jenkins module
18:11 kmrhb joined #salt
18:13 forrest Has anyone actually integrated a jenkins job into salt in some fashion? So you can use a jenkins job to kick off a deploy via salt?
18:13 it_dude joined #salt
18:13 KyleG forrest: We did something like that, except with Bamboo instead of jenkins
18:14 jeffasinger Anyone know anything about npm.bootstrap?
18:14 forrest KyleG, where you had jobs running and finishing, then pushing out changes?
18:14 Thiggy @forrest: I'm working on a deployment system right now that uses the salt reactor so it's triggered by an event which the jenkins system will trigger on successful build
18:14 forrest Thiggy, that's exactly the kind of thing I was thinking of, since I know Jenkins can run scripts post job
18:15 Thiggy @forrest - yeah, that's what we're gonna do, we haven't wired it up yet (still migrating $things) but it's working really nicely
18:15 forrest Thiggy, do you have this on github somewhere?
18:15 druonysuse joined #salt
18:16 Thiggy no, but I can probably pull some of the choice bits out. pm me.
18:17 LGSilva Is there a better way to update salt on archlinux/yaourt without having to go to each box and run yaourt?
18:22 nineteeneightd joined #salt
18:27 xet7 joined #salt
18:30 cedwards LGSilva: build and host packages..
18:31 LGSilva cedwards: thanks, that's what I was thinking. :)
18:31 cedwards LGSilva: that's what I do anyway.. pretty easy with Arch.
18:32 Khollowa_ joined #salt
18:32 austin987 joined #salt
18:34 nineteeneightd joined #salt
18:34 kenbolton joined #salt
18:35 LGSilva cedwards: so the minion will never report back to the master if it ran the update as the service gets restarted.
18:35 faldridge joined #salt
18:36 cedwards LGSilva: that's usually what I see. it's still a bit tricky i think
18:38 KyleG1 joined #salt
18:41 felskrone joined #salt
18:45 mikedawson joined #salt
18:47 Ahlee when adding new nodes, anybody else seeing those nodes present via salt-api on hosts that don't have the grain?
18:48 Ahlee i.e., salt-key -ay 'new node'; hit api for grain foo: bar which isn't on 'new node', but 'new node' doesn't have grain foo at all
18:56 zooz joined #salt
19:01 kiorky joined #salt
19:03 [diecast] the default behavior of salt-call pillar.data --out key used to be return the values
19:03 [diecast] now in 0.16.2 it returns both the key and value
19:06 kmrhb joined #salt
19:09 qba73 joined #salt
19:11 nineteeneightd Having some issues with pkg.installed and sources
19:11 forrest can you post a gist of the sls?
19:11 forrest and error?
19:12 kleinishere joined #salt
19:12 afx_hero joined #salt
19:12 nineteeneightd https://gist.github.com/198d/6187725
19:12 nineteeneightd That's using salt-call
19:13 forrest that's odd, if you do a normal install, does it work?
19:14 nineteeneightd Define 'normal'. When I manually run `sudo dpkg -i elasticsearch.deb` after manually downloading the .deb, it installs fine
19:15 forrest on debian can you define an alternate source for the download?
19:16 forrest err ubuntu
19:17 nineteeneightd On a hunch I did the following `sudo salt-call pkg.install sources='[{"elasticsearch:all": "https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb"}]'`
19:17 nineteeneightd That worked
19:18 nineteeneightd I remember vaguely from the docs about specifying architectures and noticed the architecture in from dpkg -I being all
19:20 nineteeneightd Going to throw that in my .sls
19:21 p3rror joined #salt
19:35 juicer2 Hi all, anyone know if you can comma seperate more than one mysql db in mysql_grants.present?
19:35 abe_music joined #salt
19:36 faldridge joined #salt
19:36 juicer2 as in http://pastebin.com/j6cWrCx3
19:39 zloidemon whiteinge:
19:39 whiteinge zloidemon:
19:39 [diecast] no takers on salt-call output change?
19:41 whit joined #salt
19:41 nineteeneightd Wow, so that works with salt-call pkg.install, however when I update the sls to provide such a structure, salt thinks the install failed because "elasticsearch:all" isn't "elasticsearch"
19:42 jschadlick joined #salt
19:42 nineteeneightd Fails in the opposite direction, first it wouldn't install it, because it basically looked at the deb as providing "elasticsearch:all" and I was asking for "elasticsearch"
19:42 nineteeneightd Now it fails because the deb installed "elasticsearch" but it thinks I wanted "elasticsearch:all"
19:42 nineteeneightd Any suggestions?
19:43 nineteeneightd https://gist.github.com/198d/6187725
19:43 nineteeneightd There's the sls file
19:44 ipmb joined #salt
19:48 nineteeneightd Between this and the mount.mounted bug (that appears to be fixed, just not released), getting a nice elasticsearch sls together has been frustrating
19:48 nineteeneightd Will say, however, of everything I've done with salt so far, this is the first time it's given me any trouble
19:49 brianhicks joined #salt
19:52 faldridge joined #salt
19:53 [diecast] nineteeneightd i see you have some fabric scripts in your gists. are you using both fabric and salt or migrating to salt from fabric
19:54 nineteeneightd I got a little combo running right now
19:54 nineteeneightd I haven't got ot the point of setting up a true master
19:55 nineteeneightd All my nodes have both a master and minion running and I use fabric to push pillar and sls files to /srv/salt /srv/pillar
19:56 nineteeneightd Then call high state on the node
19:56 nineteeneightd I say something like `fab -H .... apply` which uploads everything then calls highstate
19:57 kleinishere joined #salt
19:57 [diecast] sounds painful
19:58 nineteeneightd It works pretty well, even with a true salt master, I don't think the workflow would change at all, I'd just push everything to the master and call highstate there
19:58 nineteeneightd I'll always need a way to get sls files from my local where I edit them to the salt master
20:00 nineteeneightd I guess I'd be curious to know what other's workflows look like
20:00 [diecast] that's what git it for
20:01 [diecast] setup something to push code when merged into master - jenkins, hooks, scripts, cron, init, etc
20:03 jacksontj joined #salt
20:05 david_a joined #salt
20:06 JesseC Can you have multiple "names" for cmd.run and will they run in order if so?
20:10 diegows joined #salt
20:10 az87c joined #salt
20:11 darrend_ joined #salt
20:12 baniir joined #salt
20:12 it_dude joined #salt
20:15 auser joined #salt
20:15 nineteeneightd JesseC, I think you might want to use a combo of cmd.run and cmd.wait
20:15 nineteeneightd I'm assuming the commands have are dependent on each other which is why you're asking if they'll run in order
20:16 JesseC they are, my testing seems to show them running in order though, could just be by chance
20:16 isomorphic joined #salt
20:17 Thiggy joined #salt
20:18 LGSilva joined #salt
20:19 nineteeneightd You'd probably atleast want to do multiple cmd.run's and make each one require the cmd.run that it depends on
20:20 StDiluted how can i watch a 'sysctl.present' state?
20:20 StDiluted what would the syntax be?
20:23 nineteeneightd https://gist.github.com/198d/6188336
20:23 nineteeneightd Something like that should work, no?
20:24 nineteeneightd That's a terrible example, but that's the syntax
20:25 nineteeneightd Updated to use cmd.wait. That should run `echo hello` everytime the sysctl.present is successfully applied
20:28 StDiluted cool
20:29 StDiluted ok
20:29 StDiluted that's what I thought
20:29 StDiluted thank you
20:30 mmilano joined #salt
20:33 ingwaem joined #salt
20:37 jdenning joined #salt
20:37 pdayton joined #salt
20:40 Corey 45
20:41 JesseC joined #salt
20:44 joehoyle joined #salt
20:45 joehoyle Hey peeps, I am trying to check in my top.sls "if there is a grain of name 'project' include this sls file", however, if the grain is not defined I get a compile error
20:48 kermit joined #salt
20:49 gildegoma joined #salt
20:55 cenourinha joined #salt
20:58 kleinishere joined #salt
20:59 kleinishere joined #salt
21:02 up_the_irons2 joined #salt
21:04 juicer2 for mysql_grants.present ... how does one specify table wildcards, i.e.,  database: structure.table_%
21:06 juicer2 I get ProgrammingError: (1146, "Table 'structure.table_%' doesn't exist")
21:07 kenbolton joined #salt
21:09 giantlock joined #salt
21:10 it_dude joined #salt
21:11 cenourinha left #salt
21:12 kaos|work joined #salt
21:17 lyddonb_ joined #salt
21:17 jacksontj joined #salt
21:19 juicer2 found my answer, in mysql one can't grant permissions with wildcards on table names
21:19 hellome joined #salt
21:23 JasonSwindle joined #salt
21:25 JasonSwindle Howdy
21:27 suhaib joined #salt
21:30 EugeneKay Rawr
21:32 JesseC packer -> salt -> vagrant -> salt -> profit
21:33 Linz_ joined #salt
21:33 jschadlick joined #salt
21:38 renoirb_ joined #salt
21:39 whit_ joined #salt
21:42 eightyeight ok. here's an interesting question
21:42 eightyeight i want to manage a file, but i don't know what the name of one of the parent directories will be
21:43 eightyeight IE: /var/www/vhosts/???/httpdocs/robots.txt
21:43 eightyeight how can i manage that robots.txt file, if i don't know what '???' will be named?
21:43 eightyeight (in this case, this is parallels software creating that '???' dir dynamically)
21:44 Thiggy do you want the same one for all vhosts?
21:44 bhosmer joined #salt
21:44 eightyeight the same robots.txt? yes.
21:45 Thiggy if you could somehow put that name in a grain/pillar you could do it that way, but if parallels is doing it I might just write a script that runs
21:45 eightyeight yeah. i have absolutely no idea what that directory name will be
21:46 cedwards eightyeight: I'd need to find an example, but you could have the state detect the directories in a for-loop and populate it on the fly
21:46 StDiluted I have a similar problem where a cap deploy is making a symlink to a release dir, and I dont know what the release dir will be
21:46 cedwards eightyeight: I remember using it in the moosefs states back in the day
21:46 eightyeight could '/var/www/vhosts/*/httpdocs/robots.txt' work?
21:46 renoirb joined #salt
21:46 eightyeight (assuming it does regular file globbing)
21:50 JasonSwindle left #salt
21:50 pdayton joined #salt
21:51 StDiluted Is there any reason NOT to go to .16.2?
21:52 kleinishere joined #salt
21:52 cedwards eightyeight: PM
21:52 cewood joined #salt
21:52 renoirb joined #salt
21:55 nod joined #salt
21:56 eightyeight cedwards: thx, btw
22:00 KyleG joined #salt
22:00 KyleG joined #salt
22:03 fxdgear got a "selling salt to a client" question
22:03 fxdgear currenlty a client is using puppet, they don't want to use salt cause it uses 0mq and messagepack
22:04 fxdgear their current puppet setup is kinda hosed… so possibily switching is viable… but their argument is "it uses 0mq and we don't use 0mq for anything else"
22:06 Thiggy Anyone have any experience running a syndic in an Amazon VPC connected to a master in a different VPC?
22:09 hellome joined #salt
22:10 ahammond fxdgear I'd argue that's a good thing. 0mq not being used elsewhere in their system means that it can't be a dependency issue between salt and something in their system.
22:10 renoirb joined #salt
22:10 whit_ joined #salt
22:10 kleinishere joined #salt
22:10 fxdgear ahammond good call
22:11 bruce-one joined #salt
22:11 KyleG joined #salt
22:11 KyleG joined #salt
22:13 whiteinge fxdgear: the 0mq dep is pretty light. but next salt release will support ssh as a transport so that would be a good way to get the salt foot in the door
22:13 fxdgear whiteinge +1
22:13 whiteinge after they're hooked you can demo the difference by turning 0mq on and watch their eye pop :)
22:14 ahammond also remember that salt is more than just config management, it's remote execution, so you're getting more than just a puppet replacement.
22:14 fxdgear ahammond yeah I've been pushing that
22:14 fxdgear as well
22:14 fxdgear but the argument against was "0mq"
22:14 fxdgear I think it's more of a we don't know salt… so we don't want to use it
22:14 fxdgear than anything
22:15 LGSilva joined #salt
22:15 napperjabber joined #salt
22:16 ahammond fxdgear that's a very real thing
22:16 jschadlick Is there any way to log the return of a runner?
22:16 fxdgear ahammond totes… I've been pretty good at selling salt normally...
22:16 fxdgear but the ssh transport option that whiteinge mentioned is pretty heafy ammo :D
22:17 faldridge joined #salt
22:20 Ivo joined #salt
22:21 honestly_ joined #salt
22:24 renoirb joined #salt
22:26 eightyeight in a jinja template, how can i put in an 'if' statement to check if a file exsts?
22:26 eightyeight "{% if salt['cmd.run'](ls /var/www/vhosts/example.com/httpdocs/robots.txt) %}" seems a bit clunky
22:26 whit joined #salt
22:27 eightyeight seems hack-ish
22:27 mechanicalduck joined #salt
22:27 mechanicalduck hi
22:27 troyready joined #salt
22:27 mechanicalduck Is salt idempotent like puppet?
22:27 eightyeight basically, if the file exists, append to it. otherwise, create it
22:27 mechanicalduck also packages?
22:27 mechanicalduck I mean, install package xy?
22:28 StDiluted eightyeight, why wouldnt you use file.append or some other state?
22:28 StDiluted
22:28 eightyeight StDiluted: i am using file.append
22:28 eightyeight StDiluted: i'll get you a pastebin. one moment
22:28 Linz joined #salt
22:28 eightyeight StDiluted: http://ae7.st/p/9k0
22:29 forrest eightyeight, does the managed file contain that User-agent line?
22:29 StDiluted eightyeight: I would recommend you use an 'only_if'
22:30 eightyeight forrest: yes
22:30 honestly joined #salt
22:30 StDiluted er sorry, 'onlyif'
22:30 forrest so what's the reasoning behind appending it instead of just managing the file? I might have missed your explanation above.
22:30 Linz joined #salt
22:31 StDiluted - onlyif: test -e /var/www/vhosts/example.com/httpdocs/robots.txt
22:31 eightyeight forrest: there may be existing directives that i don't want to clobber
22:31 forrest that were added manually?
22:31 eightyeight correct
22:31 eightyeight and they could vary by {{ vhost }}
22:31 forrest why would someone add the changes manually when they can just update the source file?
22:31 eightyeight my understanding of file.append, is if that text exists, it won't write to it
22:32 eightyeight forrest: these were pre-salt
22:32 StDiluted forrest: changes made by something other than salt, perhaps
22:32 forrest wouldn't it make mor sense to add those to salt and explicitly manage them there?
22:32 eightyeight and, i want the flexibilty to add things to the file outside of salt, on a per-vhost bases
22:32 forrest or do you have hundreds/thousands of entries
22:32 forrest ahh ok, fair enough
22:32 eightyeight forrest: i have hundreds and hundreds of vhosts
22:32 eightyeight that doesn't scale
22:32 StDiluted eightyeight: use an onlyif in your statement
22:33 forrest eighteight, I understand now.
22:33 faldridge joined #salt
22:33 StDiluted eightyeight: - onlyif: test -e /var/www/vhosts/example.com/httpdocs/robots.txt
22:33 eightyeight StDiluted: that doesn't help. if the file exists, then append. if not, create.
22:33 eightyeight StDiluted: oh, i see
22:34 eightyeight {% onlyif test -e /var/www/vhosts/{{ vhost }}/httpdocs/robots.txt) %}
22:34 dthom91 joined #salt
22:34 StDiluted no
22:35 StDiluted the onlyif: is declared in an sls
22:35 eightyeight i'm in the init.sls
22:35 eightyeight s/txt)/txt/
22:36 StDiluted https://gist.github.com/dginther/6189464
22:36 StDiluted if virtual_mailbox_recipients exists, do this, unless virtual_mailbox_recipients.db exists
22:37 StDiluted in which case it was already done and don't do it again
22:37 eightyeight i see
22:38 StDiluted so applying that to your issue… file.append onlyif: file exists
22:38 StDiluted file.manage or file.cp unless it exists
22:41 renoirb joined #salt
22:41 jacksontj joined #salt
22:41 whit joined #salt
22:43 helderco joined #salt
22:43 eightyeight it appears that onlyif is an argument to some of the cmd.* commands, and not to file.*
22:43 eightyeight https://salt.readthedocs.org/en/latest/ref/states/all/salt.states.file.html#salt.states.file.append
22:43 eightyeight vs
22:44 StDiluted ah
22:44 eightyeight https://salt.readthedocs.org/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.run
22:45 eightyeight so, i'll stick with my "salt['cmd.run'](test -e file)" for the time being
22:45 eightyeight meh
22:47 alunduil joined #salt
22:47 StDiluted you could use a cmd.run - name echo whatever blah blah blah >> robots.txt
22:47 StDiluted onlyif
22:47 StDiluted unless
22:47 StDiluted etc
22:49 eightyeight i have other issues with that i need to think through too
22:49 eightyeight but, this is a start
22:56 jarm joined #salt
23:08 hazzadous joined #salt
23:09 eightyeight how exactly does file.append work? does it look for that text exctly at the end of the file to prevent appending again, or if it exists anywhere in the file, or...?
23:09 dthom91 joined #salt
23:10 KyleG eightyeight: I use unless with a grep so it does not append again, but I may just be paranoid, not sure if it would do it on its own
23:11 eightyeight https://salt.readthedocs.org/en/latest/ref/states/all/salt.states.file.html#salt.states.file.append states "The textwill not be appended again if it already exists in the file."
23:11 KyleG nice
23:11 eightyeight just curious if that means the exact end of the file, or anywhere
23:14 kenbolton joined #salt
23:14 KyleG eightyeight: Looking at the code, it scans the whole file for the string
23:14 aat joined #salt
23:15 eightyeight what file are you looking at? https://github.com/saltstack/salt/blob/develop/salt/modules/file.py#L884 ?
23:16 KyleG https://github.com/saltstack/salt/blob/develop/salt/states/file.py#L1718
23:16 eightyeight ah
23:16 eightyeight KyleG: thx
23:16 KyleG np
23:26 cyp joined #salt
23:30 kleinishere joined #salt
23:38 falican joined #salt
23:39 yota joined #salt
23:40 mikedawson joined #salt
23:45 DredTiger joined #salt
23:46 jschadlick left #salt
23:47 jarm joined #salt
23:49 logix812 joined #salt
23:51 Ryan_Lane joined #salt
23:54 troyready joined #salt
23:59 hellome joined #salt

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary