Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-12-28

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

All times shown according to UTC.

Time Nick Message
00:00 hasues left #salt
00:00 MTecknology iggy: Did you ever catch my rant? I deleted basically everything of mine. One server and my laptop remained. Everything else .. switch configs, vms, vm host, switch/router/vlan/vpn configs, etc. I'm rebuilding it all from ground zero. :(
00:11 iggy MTecknology: that was part of my normal operations at $last_job
00:13 shaggy_surfer joined #salt
00:14 nyx_ joined #salt
00:14 viq joined #salt
00:15 viq joined #salt
00:15 viq joined #salt
00:21 MTecknology heh.. how can I make file.comment not create a backup file?
00:22 dyasny joined #salt
00:25 MTecknology ah, rtfm
00:38 keimlink joined #salt
00:46 scoates joined #salt
00:52 hamsham joined #salt
00:52 ham_sham joined #salt
01:00 keimlink joined #salt
01:05 hamsham joined #salt
01:05 keimlink joined #salt
01:11 Segfault_ joined #salt
01:15 keimlink joined #salt
01:18 edrocks_ joined #salt
01:59 edrocks joined #salt
02:09 dyasny joined #salt
02:18 invalidexception joined #salt
02:23 jaybocc2 joined #salt
02:26 cberndt joined #salt
02:46 XenophonF joined #salt
02:47 ilbot3 joined #salt
02:47 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.3 | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste directly into the channel) | Have patience when asking questions as we are volunteers and may not have immediate answers
02:48 XenophonF i figured out that it's sphinx, but i've never used that before
02:48 XenophonF for the moment i just want to figure out how markup like `:param` works
02:49 XenophonF i think this is it - http://sphinx-doc.org/domains.html#info-field-lists
02:50 tpaul Anyone know a mechanism I can use to run salt after a merge? I'm considering writing something but didn't want to reinvent something already out there
02:51 catpigger joined #salt
02:51 tpaul For example, after a pull request is accepted, have the master server run "salt whatever state.highstate" where "whatever state.highstate" is part of a commit message: "#salt qa\* state.highstate" for example
02:52 XenophonF tpaul: i was working on a github webhook/salt reactor script to do this
02:52 XenophonF tpaul: basically, have a push trigger a highstate or something
02:53 XenophonF tpaul: haven't gotten very far with it, unfortunately
02:53 XenophonF tpaul: if your git repo is fully local, you could write a post-commit hook that did what you wanted
02:53 XenophonF tpaul: but i don't know of anything pre-written
02:53 tpaul XenophonF: that's what kinda what I was thinking, I have to implement this for stash
02:54 tpaul Basically what I want is for highstate to run after a pull request is merged in stash
02:56 auzty joined #salt
02:59 dyasny joined #salt
03:07 jrklein joined #salt
03:16 edrocks_ joined #salt
03:17 colegatron joined #salt
03:46 colegatron joined #salt
04:27 malinoff joined #salt
04:28 evle joined #salt
04:29 hamsham joined #salt
04:42 jaybocc2 joined #salt
04:55 malinoff joined #salt
04:57 anmol joined #salt
05:01 AndreasLutro joined #salt
05:05 otter768 joined #salt
05:11 rdas joined #salt
05:12 racooper joined #salt
05:12 evle joined #salt
05:18 anmol joined #salt
05:18 anmol joined #salt
05:31 jaybocc2 joined #salt
05:35 * MTecknology grumbles ... SaltException: The following keys were not present in the state return: name,result,changes,comment
05:41 rem5 joined #salt
05:47 beardedeagle joined #salt
05:48 tristianc joined #salt
05:54 favadi joined #salt
05:58 tristianc_ joined #salt
06:38 colegatron joined #salt
06:55 rotbeard joined #salt
07:01 AlberTUX joined #salt
07:01 beardedeagle I am playing around with different salt-cloud profile and provider layouts and I am unsure if this is expected behavior or not: if you have an extended profile the provider *MUST* be in the base that is extended from and cannot be in the extended profile itself.
07:01 beardedeagle is that expected?
07:03 beardedeagle I can post gists if no one knows what I am talking about.
07:14 KermitTheFragger joined #salt
07:18 dayid joined #salt
07:18 dayid joined #salt
07:23 genediazjr joined #salt
07:25 bbradley joined #salt
07:33 genediazjr joined #salt
07:37 illern_ joined #salt
07:42 jaybocc2 joined #salt
07:51 favadi joined #salt
07:58 jaybocc2 joined #salt
08:01 dustywusty joined #salt
08:01 qman__ joined #salt
08:01 rideh joined #salt
08:01 Bryson joined #salt
08:01 Vye joined #salt
08:01 smkelly joined #salt
08:01 okfine joined #salt
08:01 evilrob joined #salt
08:02 kuromagi joined #salt
08:03 frew joined #salt
08:03 bryguy joined #salt
08:05 jcockhren joined #salt
08:06 pmcnabb joined #salt
08:10 viq joined #salt
08:12 genediazjr joined #salt
08:15 dkrae joined #salt
08:15 robot joined #salt
08:18 slav0nic joined #salt
08:27 keimlink joined #salt
08:28 genediazjr joined #salt
08:36 giantlock joined #salt
08:50 otter768 joined #salt
09:45 linjan_ joined #salt
10:09 jaybocc2 joined #salt
10:13 Fiber^ joined #salt
10:17 genediazjr joined #salt
10:25 jaybocc2 joined #salt
10:26 viq MTecknology: sucks about the VM... One of reasons why I prefer dedicated servers ;)
10:27 viq MTecknology: and I hope at least the job is satisfying, since traveling that much can indeed be exhausting
10:45 ericof joined #salt
10:47 favadi joined #salt
10:50 keimlink joined #salt
10:51 otter768 joined #salt
11:02 giantlock joined #salt
11:32 amcorreia joined #salt
11:42 genediazjr joined #salt
11:50 abednarik joined #salt
11:51 cnginxs joined #salt
11:51 cnginxs hi guys
11:52 cnginxs i have a problem in salt-cloud
11:52 cnginxs when i try to create a volue for created instance so i am getting an error like this
11:53 cnginxs [ERROR   ] There was an error actioning machines: create_attach_volumes() takes at least 2 arguments (2 given)
11:53 cnginxs File "/usr/lib/python2.7/site-packages/salt/cloud/__init__.py", line 1450, in do_action     vm_name, call='action' TypeError: create_attach_volumes() takes at least 2 arguments (2 given)
11:53 cnginxs i run this command
11:53 cnginxs salt-cloud -a create_attach_volumes day-web31 '{ size: 3, device: /dev/sdb, type: gp2, zone:us-east-1b }'
11:54 cnginxs any idea ?
11:54 cnginxs i am sure that command has true arguments
11:55 cnginxs salt-cloud --versions-report       Salt: 2015.5.5           Python: 2.7.5 (default, Jun 24 2015, 00:41:19)
11:57 AndreasLutro anyone know if it's possible to get the minion id in a custom grain python file?
11:57 AndreasLutro __grains__ seems to be empty
11:58 catpig joined #salt
12:05 akhter joined #salt
12:25 favadi joined #salt
12:34 favadi joined #salt
12:36 jaybocc2 joined #salt
12:46 colegatron joined #salt
12:49 rm_jorge joined #salt
12:49 giantlock joined #salt
12:52 otter768 joined #salt
12:52 jaybocc2 joined #salt
12:54 cwright joined #salt
12:57 lazybear joined #salt
12:58 ggoZ joined #salt
13:06 om joined #salt
13:15 tkharju joined #salt
13:18 DammitJim joined #salt
13:23 Rumbles joined #salt
13:27 lothiraldan joined #salt
13:28 losh joined #salt
13:37 numkem joined #salt
13:38 toddnni joined #salt
13:46 subsignal joined #salt
13:47 marsdominion joined #salt
13:47 marsdominion joined #salt
13:54 fredvd joined #salt
13:59 om joined #salt
13:59 teryx510 joined #salt
14:02 edrocks joined #salt
14:04 evle joined #salt
14:11 BogdanR joined #salt
14:22 mapu joined #salt
14:23 scoates joined #salt
14:27 drawsmcgraw joined #salt
14:28 av_ joined #salt
14:32 jaybocc2 joined #salt
14:46 CeBe joined #salt
14:50 GothAck joined #salt
14:52 otter768 joined #salt
14:53 GothAck joined #salt
14:53 giantlock joined #salt
14:57 ralish left #salt
14:57 jeffspeff joined #salt
14:57 tmclaugh[work] joined #salt
14:58 lumtnman joined #salt
14:58 AlberTUX joined #salt
14:59 tpaul Anyone having issues updating CentOS after using the salt-repo? http://pastebin.com/2bRDqq1Y
15:00 tmclaugh[work] joined #salt
15:00 ALLmightySPIFF joined #salt
15:03 fxhp joined #salt
15:05 andrew_v joined #salt
15:05 marsdomi_ joined #salt
15:06 indispeq joined #salt
15:08 pjs joined #salt
15:08 mihait joined #salt
15:10 bhosmer joined #salt
15:12 rotbeard joined #salt
15:16 tpaul On another note is their and ETA on the next release of salt? Trying to figure out if I should nag packagers about a patch or wait it out.
15:17 jfindlay tpaul: should be in a couple of months
15:18 tpaul jfindlay: thanks
15:18 Trauma joined #salt
15:18 anotherZero joined #salt
15:21 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.3 | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
15:23 pcn Has anyone tried putting a ulimit on the salt-api process just to make sure that it's bounded?
15:26 jfindlay tpaul: I'm hoping that soon we can have our release process predictable enough that we will be able to publish a release schedule.  We have made significant progress towards this since I started
15:26 rem5 joined #salt
15:26 quarcu_ hello chaps, has anyone tried to change token valid time ?
15:28 ekristen joined #salt
15:33 salt-help-pls joined #salt
15:33 salt-help-pls saltcloud automatically deployed keys to the new nodes.. how can i disable that?
15:36 pcn salt-help-pls: what is your goal in using salt-cloud?
15:36 salt-help-pls to start new nodes.. however, i wrote my own bootstrap script to get keys from a key server...
15:37 salt-help-pls also im using a snapshot image, and i hope to reuse the "key" instead of authenticate them
15:38 salt-help-pls https://docs.saltstack.com/en/latest/topics/tutorials/preseed_key.html, i quote "salt-cloud performs these same steps automatically when new cloud VMs are created (unless instructed not to)."
15:38 salt-help-pls how can i instructed not to?
15:41 marsdominion joined #salt
15:41 marsdominion joined #salt
15:50 toddnni joined #salt
15:51 cheus joined #salt
15:53 bhosmer joined #salt
15:55 Erik_P joined #salt
15:55 pcn salt-help-pls: I haven't done this, but if you can extract a key for it, you may be able to pass it in to the bootstrap script, see what it's doing at https://github.com/saltstack/salt/blob/develop/salt/utils/cloud.py#L388-L451
15:55 Erik_P I need help with windows salt java installation
15:56 salt-help-pls pcn thanks will look into it
15:59 drawsmcgraw So I indexed... uh... a lot of source code with Opengrok. The indexing was in a Salt run
15:59 drawsmcgraw And this is the output of the Salt run when it finished - http://dpaste.com/1E52GY4
15:59 drawsmcgraw (I used 'time' to time the Salt run as well)
16:00 drawsmcgraw Am I reading that correctly? Salt says the run was 11 hours, but 'time' says it's more like 35
16:00 drawsmcgraw And I agree with 'time'. This run took a couple days
16:00 andrew_v joined #salt
16:02 mpanetta joined #salt
16:02 ALLmightySPIFF joined #salt
16:04 DammitJim joined #salt
16:10 Rumbles joined #salt
16:12 bhosmer joined #salt
16:26 TooLmaN joined #salt
16:31 conan_the_destro joined #salt
16:39 keimlink joined #salt
16:41 jussenadv joined #salt
16:42 quarcu_ is it possible to set tokens to NOT expire ie token_expire: 0 ?
16:42 jussenadv http://irclog.perlgeek.de/salt/ is broken?
16:42 quarcu_ jussenadv: not found on my side
16:44 amcorreia joined #salt
16:44 rem5 joined #salt
16:47 jasonrm joined #salt
16:53 otter768 joined #salt
16:57 genediazjr joined #salt
16:58 bhosmer joined #salt
17:01 nyx_ joined #salt
17:05 justanotheruser joined #salt
17:05 iggy people have been complaining about it for a few days
17:07 anmol joined #salt
17:15 Bryson joined #salt
17:15 linjan_ joined #salt
17:16 Bryson joined #salt
17:17 Xenith left #salt
17:19 Rumbles joined #salt
17:27 onlyanegg joined #salt
17:30 PeterO joined #salt
17:30 basepi joined #salt
17:33 jfindlay should we look for other log hosting or do we know who has responsibility for that?
17:34 jfindlay it shows up in the index, http://irclog.perlgeek.de/
17:36 jfindlay I have pinged moritz
17:38 whytewolf looks like everything starting with #s is having the issue. not just #salt
17:39 rmnuvg joined #salt
17:53 toddnni_ joined #salt
17:54 toddnni joined #salt
17:56 pcn yay perl?
17:57 * pcn is sure it's not perl's fault
17:58 whytewolf lol. yeah most likely the logs are stored in text files and split into alpha dirs. and something went wonky on the s dir
17:58 shaggy_surfer joined #salt
17:58 whytewolf but that is for moritz to figure out
17:59 marsdominion joined #salt
18:04 shaggy_surfer joined #salt
18:12 pafmaf joined #salt
18:20 marsdominion joined #salt
18:21 pcn If I have enabled a redis returner and a master job cache... how do I check if the values are getting into redis?
18:26 bhosmer joined #salt
18:26 otter768 joined #salt
18:30 nyx__ joined #salt
18:32 marsdominion joined #salt
18:32 CheKoLyN joined #salt
18:33 netcho joined #salt
18:34 pcn Looks like MONITOR is enough to know that it's working.
18:34 babilen pcn: Query redis?
18:36 conan_the_destro joined #salt
18:37 teryx510 joined #salt
18:37 hasues joined #salt
18:38 hasues left #salt
18:40 pcn I ran into this on the way is all: https://github.com/saltstack/salt/issues/22713
18:40 saltstackbot [#22713]title: Should get_jids required for Master/External Job Cache should return a dictionary! | The following returners return a list of jids from get_jids: cassandra_cql_return, couchdb_return, etcd_return, memcache_return, mongo_future_return, mysql, odbc, postgres, redis_return, and sqlite3_return....
18:41 marsdominion joined #salt
18:41 marsdominion joined #salt
18:44 shaggy_surfer joined #salt
18:47 colegatron joined #salt
18:50 zma joined #salt
18:50 pcn Can I overrid the default redis_returner by putting something in /srv/salt/_returners, with that fix?
18:50 zma any way to avoid runners printing the return value, typically yellow None/True/False?
18:59 GermanG joined #salt
19:01 GermanG Hi! Quick question, is there any way to know which hosts uses one state? state.show_top shows which states hits one host, how about the opposite?
19:03 abednarik Hi GermanG
19:03 GermanG abednarik: o/
19:03 abednarik lol
19:10 pcn GermanG: check the event cache?
19:12 intel joined #salt
19:13 marsdominion joined #salt
19:13 marsdominion joined #salt
19:15 intel joined #salt
19:17 rem5 joined #salt
19:23 marsdominion joined #salt
19:23 munki joined #salt
19:24 MindDrive joined #salt
19:24 cyborg-one joined #salt
19:25 XenophonF joined #salt
19:26 XenophonF ok, this is weird, salt 2015.8.3 on windows server 2012 r2, but osrelease grain is 2012Server, not 2012ServerR2
19:26 XenophonF that isn't right, is it?
19:27 Edgan XenophonF: It is all about it's source of information for the grain.
19:27 Eugene Depends upon who you ask. R2 is kind of a service pack moniker, but not really
19:28 Eugene What are the other version grains set to?
19:30 invalidexception AFAIK, it's been like that for the osrelease grain for Windows Server 2012R2 in every salt release. Windows Server 2008R2 does correctly state '2008ServerR2', for comparison.
19:30 XenophonF i rtfs-ed
19:31 XenophonF the osrelease grain comes from python's platform.uname()
19:31 XenophonF and invalidexception, that's exactly the behavior i expected
19:32 drawsmcgraw XenophonF: Do you have a link to the particular file? I gave the codebase a quick glance but couldn't find where grains.get finds the osrelease
19:32 XenophonF osfullname is correct
19:32 XenophonF drawsmcgraw, it's in salt/grains/core.py
19:32 XenophonF just look for the call to platform.uname()
19:33 drawsmcgraw XenophonF: thanks!
19:33 marsdominion joined #salt
19:34 XenophonF that sets kernelrelease, which gets overwritten later with the version number in a WMI call
19:34 XenophonF maybe it's a python bug
19:34 XenophonF UtahDave, are you around?
19:34 drawsmcgraw huhn.... That's interesting
19:35 XenophonF salt-call --versions says it's python 2.7.10
19:37 cberndt joined #salt
19:41 XenophonF this is what python 2.7.11's platform.uname() has to say:
19:41 XenophonF ('Windows', 'WIN-DNNG82401FO', '2012ServerR2', '6.3.9600', 'AMD64', 'Intel64 Family 6 Model 63 Stepping 2, GenuineIntel')
19:41 XenophonF let me uninstall that and install 2.7.10 instead
19:43 MTecknology viq: Turns out, having such a horrible time with gitlab lead me to look for alternatives. I ran across gogs. It's light weight, simple, and does everything from gitlab that I actually used. :D
19:47 munki joined #salt
19:47 nyx_ joined #salt
19:47 iggy that actually looks pretty cool
19:48 Bryson joined #salt
19:49 XenophonF ok, python 2.7.10's platform.uname() gives us
19:49 XenophonF ('Windows', 'WIN-DNNG82401FO', '2012Server', '6.2.9200', 'AMD64', 'Intel64 Family 6 Model 63 Stepping 2, GenuineIntel')
19:49 XenophonF which is clearly wrong
19:49 XenophonF bah
19:49 whytewolf humm, they list IGT as a client. yet I never saw it when i worked at IGT. they used Stash at IGT. [not saying they didn't have it as a lot of different dev spaces used a lot of different software at IGT]
19:50 pcn How can I add support for a custom returner to the salt-master?  I mean, can I fix this issue with jobs.list_jobs in some minimial way?
19:50 robawt whytewolf: that's when a 3 person team has a mini instance and they count it :P
19:50 pcn The reason I want the redis returner is to make list_jobs faster and more queryable!
19:51 whytewolf lol robawt I acutally wouldn't be surprised if it was one of the china teams of IGT that was using it. looking at the rest of their customers.
19:52 iggy ^
19:52 pcn Aha, I just had to remove all prior data
19:52 pcn Oh, no
19:53 pcn That worked for the 1-job-ever-run case, but not for >1
19:53 ajw0100 joined #salt
19:53 onlyanegg joined #salt
19:54 pcn Apparently redis will hand it back something it interprets as None.  o.....k?
19:56 CeBe joined #salt
20:02 kusuriya joined #salt
20:04 pcn https://github.com/saltstack/salt/pull/28654
20:04 saltstackbot [#28654]title: Returners get_jids() return dict. | The following returners are updated: cassandra_cql, couchdb, sqlite3, etcd, influxdb, memcache, mongo_future, odbc, pgjsonb, postgres, redis....
20:05 pcn iggy: is that note going to be seen by anybody?
20:05 lothiraldan joined #salt
20:07 * pcn is worried about this getting lost in the holidays
20:13 Rumbles joined #salt
20:14 iggy what note?
20:18 PeterO joined #salt
20:20 pcn I added a line note to that PR: it looks like it was already merged, but not closed yet.
20:20 AndreasLutro pcn: better chance opening a new issue, I think
20:20 iggy ^
20:20 pcn Thanks you two, will do
20:20 iggy I've had about 50/50 luck having comments on merged PRs noticed
20:22 diegows joined #salt
20:24 diegows joined #salt
20:25 rem5 joined #salt
20:25 teryx510 joined #salt
20:43 sinuhe joined #salt
20:47 shaggy_surfer joined #salt
20:55 marsdominion joined #salt
20:55 marsdominion joined #salt
21:02 teryx5101 joined #salt
21:02 giantlock joined #salt
21:13 elfixit joined #salt
21:19 akhter joined #salt
21:22 colegatron joined #salt
21:24 tkojames joined #salt
21:24 rem5 joined #salt
21:30 marsdominion joined #salt
21:37 XenophonF dang it, cmd.powershell's new
21:37 XenophonF ah well
21:39 rem5 joined #salt
21:42 marsdominion joined #salt
21:43 keimlink joined #salt
21:45 wt joined #salt
21:47 xmj moin
21:47 wt is there any way to specify a variable that can be imported in either the jinja template renderer or the other renderers like pyobjects or py or mako or whatever?
21:47 xmj how well does salt work with freebsd jails?
21:48 wt I'd like to be able to basically make a library of importable values
21:48 wt I'd like it to work with multiple renderers so that I don't need to specify information in multiple places.
21:49 iggy wt: you could make your own dunder dict maybe? Or just abuse pillars/grains
21:49 lompik joined #salt
21:50 keimlink joined #salt
21:50 beardedeagle joined #salt
21:55 mapu joined #salt
21:56 scott_w joined #salt
21:56 colegatron joined #salt
21:56 shaggy_surfer I understand there is a command line option to view docs , i.e. salt '*' sys.doc for execution modules.  In reference to the system states is there a similar command to view documentation on the command line for builtin state modules ?
21:58 whytewolf shaggy_surfer: yes sys.state_doc https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.sysmod.html#salt.modules.sysmod.state_doc
21:59 whytewolf there is also returner_doc, renderer_doc, runner_doc
21:59 shaggy_surfer wow, ok, in that case maybe it's just easier to browse the online docs, no?
22:00 shaggy_surfer I was hoping to not leave or grep and parse while sitting on the command line on the master for presentation.
22:02 whytewolf um. it really is up to you. but like i said they do exist so you don't need to get off the command line "salt 'minion' sys.state_doc pkg" does work
22:03 shaggy_surfer oh, ic.  you don't need to have the url appended
22:03 whytewolf no I was just pointing to the documentation on sys.state_doc
22:03 whytewolf :P
22:03 shaggy_surfer you can just run the sudo salt 'minion' sys.state_doc | less
22:03 whytewolf yes
22:03 shaggy_surfer ic, thx, was confused for a sec
22:05 shaggy_surfer gotcha, I didn't see it referenced in the documentation, in other words, what the command you just gave me was to reference state documentation from the command line…. I didn't find it in the Reference section of the documentation for the command line either
22:05 whytewolf salt 'minion' sys.doc sys.state_doc
22:05 shaggy_surfer am I just not looking in the right place?
22:07 whytewolf I'm not sure where you are looking.
22:07 shaggy_surfer https://docs.saltstack.com/en/latest/ref/cli/index.html
22:07 shaggy_surfer this references the command:  salt 'minion' sys.doc
22:08 whytewolf yes
22:08 shaggy_surfer it doesn't mention sys.state_doc
22:08 whytewolf it doesn't liskt EVERY command that is possable from the cli
22:09 shaggy_surfer I guess I am looking for where does the reference for sys.* come from
22:09 shaggy_surfer where to start
22:09 shaggy_surfer normally you can type on command line something like  sudo salt —help
22:09 morissette joined #salt
22:09 shaggy_surfer it will return help
22:09 whytewolf salt 'minion' sys.doc sys
22:09 wt joined #salt
22:10 whytewolf salt -help gives you help about the cli client. NOT the modules
22:10 whytewolf module help comes from the sys module
22:10 wt How can I create my own dunder dict?
22:11 shaggy_surfer IC, so you need to know the function arg to the salt command
22:11 wt I am not sure if that question came through. I seem to have spotty irc connectivity for some reason.
22:11 nyx_ joined #salt
22:11 shaggy_surfer in this case it's the module sys.doc
22:12 whytewolf shaggy_surfer: yes. knowing a couple of module.function groups is kind of key to doing anything in salt.
22:13 whytewolf even running a highstate is a module.function call.
22:14 shaggy_surfer well I got kind of confused.  After reading the doc's again …  I know that there are remote execution modules which are reference by sys.doc and have there own dir in for example on ubuntu:  /usr/lib/python2.7/dist-packages/salt/modules
22:15 shaggy_surfer but states are in a separate directory since they are not remote execution and part of the state system, located on ubuntu here:  /usr/lib/python2.7/dist-packages/salt/states
22:15 shaggy_surfer so they are 2 separate things no?
22:15 zooz joined #salt
22:15 shaggy_surfer I guess I am trying to correlate how modules and states work together
22:16 whytewolf yes. they are different. but not compleatly. state modules tend to call exacution modules to do the work
22:18 shaggy_surfer IC, so you basically need to read the python source to understand if/when a state module uses a execution module, correct?
22:18 shaggy_surfer in other words, learn python and code in it.
22:18 whytewolf if you really want to know that deep yes. for general operation it isn't needed to know
22:18 shaggy_surfer I know a little python
22:18 shaggy_surfer but I can't write it from scratch
22:19 shaggy_surfer well I am doing a presentation on salt and want to make sure I present the data and how it works in the right way if you  know what I mean
22:19 whytewolf generally just know that if you are writing states. you need state modules. if you are running something from the cli it is exacution modules
22:20 whytewolf general documentation can be found in many places.
22:20 whytewolf if you are running a salt-run [a runner on the master] it is a runner
22:21 shaggy_surfer yeah I pretty much just use state.highstate and state.sls to run either a full run from the top file or an individual state to a machine from the master.  I also use a deploy_code.sls to push code
22:21 shaggy_surfer so it's pretty simple
22:22 whytewolf if you are getting deep into jinja [or other render] you can access exacution modules to gather information on a system to fill in blanks on the system
22:22 shaggy_surfer I also use the environment based top.file so that each env qa/staging/prod all have their own tree of files.  It's harder to maintain but to me cleaner
22:22 shaggy_surfer yes, I do use grains and currently pillar also
22:23 shaggy_surfer I do also use templates with some if/else's and logic
22:23 * whytewolf hates enviroments. and normally runs a seperate master per enviroment
22:23 shaggy_surfer :)
22:25 eliasp whytewolf: yeah, environments are unfortunately broken on all ends… ;(
22:26 eliasp whytewolf: it would be an awesome thing if they just worked, but until then, your approach is the most reasonable one
22:26 shaggy_surfer there is a lot of things added in the last year in salt…
22:26 eliasp whytewolf: and since the new GitFS config-per-repo capabilities it's also easier than ever before to do so…
22:26 whytewolf eliasp: I think the problem lies with it being soft partitions for enviroments instead of hard internal partitions.
22:27 eliasp whytewolf: well, soft partitions are required to allow things like "fallback to environment X when data in Y not sufficient" etc.
22:27 eliasp whytewolf: but then again… you might be right ;)
22:29 whytewolf lol, well if it really only fell back to x when data in Y no sufficient that would be great. but instead it is try and merge x and y with y being more important.
22:30 pcn Is there a way to get libpepper to close/not re-use connections?
22:30 eliasp whytewolf: sure, those are hypothetical ;)
22:34 linjan joined #salt
22:34 keimlink_ joined #salt
22:35 indispeq joined #salt
22:36 sinuhe left #salt
22:39 beardedeagle joined #salt
22:41 beardedeagle So I am trying to use keyring in salt-cloud for openstack but I keep getting the following: RuntimeError: This functionality is not supported;
22:41 shaggy_surfer I am resisting becoming a developer :P , but to know and contribute to salt (which I would like to do), looks like I need to pursue it
22:41 beardedeagle I installed python-keyczar and keyring
22:43 keimlink joined #salt
22:43 beardedeagle unsure of what is causing this
22:44 whytewolf beardedeagle: check to see if the note at the end of this helps https://github.com/saltstack/salt/issues/13133
22:44 saltstackbot [#13133]title: keyring usage instead of plain-text password in cloud configuration for openstack | I read the following from http://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.openstack.html...
22:45 beardedeagle @whytewolf: that is what I have been using
22:45 morissette joined #salt
22:47 whytewolf then I got nothin
22:50 spuder_ joined #salt
22:51 beardedeagle I was afraid of that
22:52 wt joined #salt
22:56 nyx_ joined #salt
22:57 PeterO_ joined #salt
22:59 beardedeagle @whytewolf: looking at the code in parser.py and not sure this will work at all
23:00 linjan joined #salt
23:01 brianfeister joined #salt
23:04 MindDrive joined #salt
23:14 blueyed joined #salt
23:18 teryx510 joined #salt
23:20 saltsa joined #salt
23:27 colegatron joined #salt
23:30 bhosmer_ joined #salt
23:31 rem5 joined #salt
23:35 abednarik joined #salt
23:35 wt joined #salt
23:39 mapu joined #salt
23:40 confusednoob joined #salt
23:46 confused joined #salt
23:51 confused Hey guys, quick, probably dumb question: why does patch require a hash? In my situation, a hash of the final file is impossible due to a random salt in the file that is different on each machine, so this requirement is a bit frustrating.

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