Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-07-31

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

All times shown according to UTC.

Time Nick Message
00:06 teryx510 joined #salt
00:21 robawt for those following along at home: did bettery specifying the location under profiles.
00:26 bigdong left #salt
00:27 DEger joined #salt
00:33 Nahual joined #salt
00:43 edrocks joined #salt
00:47 Brijesh1 joined #salt
00:49 west575 joined #salt
00:52 Shirkdog joined #salt
00:56 Brijesh1 joined #salt
00:58 DEger joined #salt
01:04 iceyao joined #salt
01:14 Brijesh1 joined #salt
01:16 west575_ joined #salt
01:22 catpigger joined #salt
01:28 Tyrm joined #salt
01:29 racooper joined #salt
01:29 timoguin joined #salt
01:40 nmadhok joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.10, 2015.8.10, 2016.3.1 | Support: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
01:51 west575 joined #salt
02:01 west575 joined #salt
02:12 Tyrm joined #salt
02:15 jalbretsen joined #salt
02:39 west575 joined #salt
02:43 bastiandg joined #salt
02:47 Brijesh1 joined #salt
02:58 west575 joined #salt
03:02 besideyou joined #salt
03:17 Brijesh1 joined #salt
03:18 west575 joined #salt
03:29 besideyou left #salt
04:27 hasues joined #salt
04:28 hasues left #salt
04:43 Brijesh1 joined #salt
04:44 DEger joined #salt
04:44 edrocks joined #salt
05:01 Brijesh1 joined #salt
05:02 iceyao joined #salt
05:14 PerilousApricot joined #salt
05:15 hasues joined #salt
05:17 sagerdearia joined #salt
05:18 hasues left #salt
05:31 DEger joined #salt
05:41 ivanjaros joined #salt
05:49 SpX joined #salt
06:05 Brijesh1 joined #salt
06:18 Brijesh1 joined #salt
06:19 ninjada joined #salt
06:21 POJO joined #salt
06:25 Brijesh1 joined #salt
06:30 Brijesh1 left #salt
06:32 ninjada joined #salt
06:41 Brijesh1 joined #salt
06:41 GothAck joined #salt
06:44 blueelvis joined #salt
06:55 __number5__ joined #salt
07:15 BlackBishop joined #salt
07:16 __number5__ joined #salt
07:17 BlackBishop anyone can tell me what's wrong with my "line 20" Rendering SLS 'base:repo_mirror' failed: found character '@' that cannot start any token; line 20 ( https://paste.fedoraproject.org/398602/94940414/ )
07:17 BlackBishop it doesn't like  special: @daily for some reason
07:21 Brijesh1 joined #salt
07:29 __number5__ joined #salt
07:36 Miouge joined #salt
07:45 __number5__ joined #salt
07:45 mpanetta joined #salt
07:47 elias_ joined #salt
07:47 pppingme joined #salt
07:54 BlackBishop anybody ?
07:56 __number5__ joined #salt
08:02 iggy put quotes around it
08:02 iggy @ is specail syntax in yaml
08:02 iggy BlackBishop: ^
08:03 BlackBishop ow .. ok .. the examples should be updated then too !
08:04 mpanetta joined #salt
08:05 iggy PRs welcome ;)
08:06 BlackBishop Will do then ! :)
08:09 Miouge joined #salt
08:21 Brijesh1 joined #salt
08:33 guerby joined #salt
08:34 fredvd joined #salt
08:37 __number5__ joined #salt
08:42 Brijesh1 joined #salt
08:47 edrocks joined #salt
08:54 hoonetorg joined #salt
09:03 ninjada joined #salt
09:05 rbjorklin joined #salt
09:11 aidin joined #salt
09:17 aidin1 joined #salt
09:18 aidin joined #salt
09:18 lovecraftian joined #salt
09:46 CeBe joined #salt
09:57 Brijesh1 joined #salt
10:00 ivanjaros joined #salt
10:01 mpanetta joined #salt
10:05 ninjada joined #salt
10:26 aidin joined #salt
10:29 aidin left #salt
10:47 lero joined #salt
11:01 mpanetta joined #salt
11:03 ninjada joined #salt
11:11 BlackBishop Update all packages:
11:11 BlackBishop pkg.latest:
11:11 BlackBishop - name: '*'
11:11 BlackBishop why doesn't it like this ?
11:36 hemebond Because that's not a package name.
11:37 mavhq joined #salt
11:45 hemebond BlackBishop: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.uptodate
11:53 jvishnefske joined #salt
11:53 ninjada joined #salt
11:54 BlackBishop hemebond: salt '*' pkg.uptodate ?
11:54 mavhq joined #salt
11:56 Miouge joined #salt
12:01 mpanetta_ joined #salt
12:03 ivanjaros joined #salt
12:04 GreatSnoopy joined #salt
12:12 lero joined #salt
12:23 ninjada joined #salt
12:36 west575_ joined #salt
12:38 whytewolf BlackBishop: salt '*' pkg.upgrade
12:38 whytewolf BlackBishop: but if it is a state you use pkg.uptodate
12:39 whytewolf state modules vs exacution modules
12:41 blueelvis joined #salt
12:48 BlackBishop ow
12:49 edrocks joined #salt
13:01 BlackBishop whytewolf++ thanks. will remember next time.
13:01 mpanetta joined #salt
13:02 nyx joined #salt
13:07 jenastar joined #salt
13:13 CeBe joined #salt
13:14 Miouge joined #salt
13:26 iceyao joined #salt
13:29 PerilousApricot joined #salt
13:45 knx joined #salt
13:46 lovecraftian joined #salt
13:46 knx Hi, can anyone here tell me what's the purpose of "salt" rpm?
13:46 knx is it required for salt master or salt minion installation?
13:59 west575 joined #salt
14:01 llua yes
14:01 mpanetta joined #salt
14:09 edrocks joined #salt
14:15 west575_ joined #salt
14:16 POJO joined #salt
14:47 Brijesh1 joined #salt
15:01 mpanetta joined #salt
15:13 POJO joined #salt
15:15 cyborg-one joined #salt
15:32 Miouge joined #salt
15:40 CeBe joined #salt
15:45 hasues joined #salt
15:46 hasues left #salt
15:47 DEger joined #salt
15:56 Linuturk joined #salt
16:08 Miouge joined #salt
16:10 alinuxninja joined #salt
16:16 ribx joined #salt
16:24 Rumbles joined #salt
16:26 Sokel left #salt
16:27 fracklen joined #salt
16:28 ribx joined #salt
16:35 pcdummy https://rene.jochums.at/downloads/drawstack/drawstack_idea_0001.png <-- this is want i want to archive with Saltstack (Open source tool)
16:36 pcdummy #DrawStack will be open source i mean
16:37 edrocks joined #salt
16:43 raspy_ joined #salt
16:43 raspy_ his all, is it safe to create multiple cloud profiles
16:44 raspy_ not necessarily the cloud.profiles but the cloud file itself
16:44 raspy_ where the providers are defined
16:45 iggy yes
16:46 edrocks joined #salt
16:46 Jimlad joined #salt
16:46 fracklen joined #salt
16:46 ivanjaros joined #salt
16:48 raspy_ iggy: readin on the core config fiel /etc/salt/cloud, seems like its a global file
16:48 raspy_ i need to test how to define availability zones
16:49 raspy_ is there a way to call /etc/salt/cloud.test in a salt-cloud command?
16:49 raspy_ so that way I dont touch the main /etc/salt/cloud file
16:50 iggy -c ?
16:54 raspy_ oh ok thx iggy, are availability_zones defined in the /etc/salt/cloud or within the cloud.profiles?
16:56 iggy no clue, I only use do and vultr
16:56 iggy if I was to guess in the profile
17:01 DEger joined #salt
17:04 edrocks how safe is the job system? Would it be a good candidate for say sending invoices every month?
17:05 iggy the job cache clears out data after 24 hours, so probably not
17:05 edrocks iggy: using the pillar schedule type jobs?
17:06 rylnd joined #salt
17:07 alinuxninja joined #salt
17:07 iggy I'm too stupid to understand that question
17:07 CeBe joined #salt
17:07 edrocks at least your honest. Thank you for the info
17:10 iggy I'm not sure what exactly you're trying to achieve, but if you used something like the external job cache to a database or something, you could probably query that
17:10 iggy the job cache is _really_ chatty though
17:10 iggy I'd think a reactor pushing just the data you need to sdb or something might be better
17:12 edrocks I'm not 100% set on using salt for it. I just saw it had a job system and thought it might work
17:16 raspy_ is the /etc/salt/cloud file only called during provisioning of hosts when calling salt-cloud?
17:20 jenastar joined #salt
17:21 Mate at least profiles are re-read for every salt-cloud invocation
17:21 Mate i create them with a shell function just before calling salt-cloud
17:22 mpanetta_ joined #salt
17:26 raspy_ Mate: i see before making it a global change?
17:27 raspy_ if i wanted to have hosts built in different availability zones such as availability_zone=us-west-1a and availability_zone=us-west-1b, where would these zones be defined exactly?
17:29 Mate i have no /etc/salt/cloud file, only profiles and providers
17:30 iggy ditto
17:30 Mate and in case of profiles, i have some base profiles, and some interactively parametrized ones in one-off conf files
17:34 sagerdearia joined #salt
17:35 Lionel_Debroux joined #salt
17:46 raspy_ 'Message': "Value (us-west-1b) for parameter availabilityZone is invalid. Network interface 'eni-6af4c766' is in the availability zone us-west-1a"
17:46 raspy_ get this when defining availability_zone=us-west-1b
18:04 GreatSnoopy joined #salt
18:06 raspy_ i think i see the problem, its the subnet thats defined to an availabilityzone
18:09 theblazehen joined #salt
18:10 Garo_ joined #salt
18:14 ribx joined #salt
18:15 abhi joined #salt
18:15 abhi hi all
18:21 mpanetta joined #salt
18:24 abhi hi?
18:25 Garo_ joined #salt
18:27 CeBe joined #salt
18:28 ageorgop joined #salt
18:31 hasues joined #salt
18:31 GreatSnoopy joined #salt
18:32 hasues left #salt
18:50 brent_ joined #salt
18:58 ssplatt joined #salt
19:00 blueelvis joined #salt
19:04 lovecraftian joined #salt
19:04 lovecraftian joined #salt
19:05 Miouge joined #salt
19:20 Miouge joined #salt
19:21 mpanetta joined #salt
19:27 Xopher joined #salt
19:46 mpanetta_ joined #salt
19:48 raspy_ joined #salt
19:49 raspy_ joined #salt
20:11 nyx joined #salt
20:16 theblazehen joined #salt
20:18 mpanetta joined #salt
20:28 flowstate joined #salt
20:33 theblazehen joined #salt
20:38 edrocks_ joined #salt
20:41 edrocks__ joined #salt
20:41 raspy_ i have two salt maps one for us and one for us, the minion names are the same shortnames, proxy1 and proxy2
20:42 raspy_ salt keepsa saying that proxy1 and proxy2 already exists, and they do but for us
20:42 raspy_ whats a good way to make these unique
20:42 raspy_ but the minion names basically the same
20:43 raspy_ i see
20:48 cyborg-one joined #salt
20:50 theblazehen joined #salt
21:07 west575 joined #salt
21:09 raspy_ joined #salt
21:09 flowstate joined #salt
21:13 Rumbles joined #salt
21:21 Pulp joined #salt
21:26 lero joined #salt
21:27 NightMonkey joined #salt
21:34 barmaley joined #salt
21:50 moneylotion left #salt
22:01 mpanetta_ joined #salt
22:10 DEger joined #salt
22:10 flowstate joined #salt
22:10 XenophonF so i have an SLS that gets rendered differently depending on the state of the 'test' flag
22:11 XenophonF with test=True, I get the following output - https://gist.github.com/xenophonf/372e7a7783ed7edfb7b37012cf224054#file-test-out-L130
22:11 XenophonF if i don't specify test, I get the following output instead - https://gist.github.com/xenophonf/372e7a7783ed7edfb7b37012cf224054#file-run-out-L130
22:12 hemebond XenophonF: Does the file already contain that rewrite line?
22:12 hemebond "RewriteEngine on"
22:12 XenophonF no
22:12 XenophonF so when i run it without test=True, it ought to make those changes
22:13 XenophonF i've tried deleting the target file, but salt re-creates it without "RewriteEngine on"
22:13 XenophonF the state definitions come from this - https://github.com/irtnog/salt-states/tree/production/apache/
22:14 XenophonF specifically, I added a special case here to handle RewriteEngine directives specially - https://github.com/irtnog/salt-states/blob/production/apache/lib.jinja#L35
22:15 XenophonF i don't understand why the test flag changes how it renders
22:15 hemebond Done a sync_all?
22:16 XenophonF i'll try that
22:16 XenophonF i have run a highstate and refresh_pillar, and confirmed that the correct pillar settings are assigned to the minion
22:17 XenophonF sync_all didn't affect it - same behavior
22:21 Edgan joined #salt
22:23 raspy_ joined #salt
22:24 XenophonF i'm at a loss as to how to debug this
22:24 lero joined #salt
22:27 XenophonF i'm going to try the pprint jinja function
22:27 XenophonF maybe print the dict at each iteration
22:28 seblu joined #salt
22:34 XenophonF ok, this is bizarre
22:35 XenophonF on the first time through my config redering macro, i'm pretty-printing the dictionary that's passed in
22:35 raspy_ joined #salt
22:35 XenophonF and if i don't specify test=True, the key-value pair `'RewriteEngine': True` is missing
22:36 XenophonF hm...
22:37 XenophonF i wonder if my mutating the dictionary is the cause of this bug
22:37 hemebond Just did a quick search for a bug/issue but didn't find anything.
22:38 rylnd can someone tell me why +ds is hardcoded in debbuild.py? is that some convention i am not aware of? i can see that +ds is used in many deb packages, but was unable to find the reason for it
22:38 jenastar joined #salt
22:38 XenophonF i might be screwing up an object passed by reference
22:39 XenophonF i was removing the 'RewriteEngine' key from the dictionary, assuming it was passed by value (i.e., copied)
22:39 raspy_ joined #salt
22:39 XenophonF but if it's passed by reference, then i was mutating a copy of the pillar data cached on the minion
22:41 XenophonF i have an if clause meant to filter out keys that aren't apache directives, so i'm going to add 'RewriteEngine' to that list
22:41 XenophonF as opposed to calling dict.pop()
22:41 XenophonF omg
22:41 XenophonF that worked
22:42 XenophonF so everything's passed by reference
22:43 XenophonF and by mutating it during one of my test runs, i must have screwed up the in-memory data structure somewhere
22:43 hemebond Mmm. In Python objects are passed by reference.
22:43 hemebond Strings and ints are copied I think.
22:48 XenophonF yeah
22:48 XenophonF i should have remembered that
22:48 XenophonF dunno why i thought mutating the dict was a good idea
22:48 Deliants joined #salt
22:48 hemebond Especially while looping through it :-)
22:49 XenophonF setting test=True must cause salt to generate a fresh copy of the pillar data, which gets discarded after the test run
22:49 XenophonF same for pillar.get
22:49 XenophonF because both were showing the correct data
22:49 XenophonF anyway, all fixed now
22:49 XenophonF thanks hemebond :)
22:50 hemebond 👍
22:51 ALLmightySPIFF joined #salt
22:52 Xopher joined #salt
22:59 cyborg-one joined #salt
23:03 ninjada joined #salt
23:03 mpanetta joined #salt
23:10 flowstate joined #salt
23:11 discore joined #salt
23:38 DEger joined #salt
23:56 ninjada joined #salt
23:59 cyborg-one joined #salt

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