Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-10-06

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

All times shown according to UTC.

Time Nick Message
00:08 dvdmuckle joined #salt
00:12 cliluw joined #salt
00:17 stanchan joined #salt
00:26 johnj_ joined #salt
00:29 stanchan joined #salt
00:31 tiwula joined #salt
00:46 shadoxx joined #salt
00:54 tvinson joined #salt
01:01 justanotheruser joined #salt
01:09 shadoxx joined #salt
01:24 dh__ joined #salt
01:26 Udkkna joined #salt
01:27 johnj_ joined #salt
01:27 ntropy joined #salt
01:30 stanchan joined #salt
01:36 stanchan joined #salt
01:53 shadoxx_ joined #salt
01:55 ilbot3 joined #salt
01:55 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.7, 2017.7.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
02:03 kmk1971 joined #salt
02:05 LordOfLA joined #salt
02:05 chamunks joined #salt
02:05 tcolvin joined #salt
02:06 magnuss joined #salt
02:07 pfallenop joined #salt
02:07 pfallenop joined #salt
02:08 blu__ joined #salt
02:09 phobosd__ joined #salt
02:09 bbhoss_ joined #salt
02:09 CheckYourSix_ joined #salt
02:09 linovia_ joined #salt
02:10 MightyJoe joined #salt
02:10 onovy joined #salt
02:11 todder joined #salt
02:11 evilrob joined #salt
02:11 scarcry_ joined #salt
02:12 eseyman joined #salt
02:12 kshlm joined #salt
02:12 manji joined #salt
02:13 tiberius__ left #salt
02:13 Rubin joined #salt
02:13 tiberius_ joined #salt
02:13 revellion joined #salt
02:13 tiberius_ so is there any way to change the format of a disk image with salt-virt?
02:14 tiberius_ near as I can tell it ignores what you set for format and just uses qcow2
02:14 packeteer joined #salt
02:14 marwel joined #salt
02:14 __[0_0]__ joined #salt
02:15 dlloyd_ joined #salt
02:16 aboe[m] joined #salt
02:16 toofoo[m] joined #salt
02:18 k1412 joined #salt
02:20 shadoxx joined #salt
02:24 dankolbrs joined #salt
02:24 McNinja joined #salt
02:26 Savemech joined #salt
02:28 johnj_ joined #salt
02:32 bd_ joined #salt
02:32 tru_tru_ joined #salt
02:32 diegows_ joined #salt
02:32 Sacro_ joined #salt
02:33 q1x_ joined #salt
02:33 pjs_ joined #salt
02:33 mirko_ joined #salt
02:36 s0undt3ch joined #salt
02:38 permalac joined #salt
02:38 evle joined #salt
02:43 v0rtex joined #salt
03:07 oida_ joined #salt
03:17 zerocool_ joined #salt
03:28 sh123124213 joined #salt
03:29 johnj_ joined #salt
03:33 shadoxx joined #salt
03:38 johnj_ joined #salt
04:10 ahrs joined #salt
04:21 SaucyElf_ joined #salt
04:22 seeg joined #salt
04:37 zenchiken joined #salt
04:41 justanotheruser joined #salt
04:42 justanotheruser joined #salt
04:58 nalninzfl joined #salt
05:02 msn joined #salt
05:02 johnj_ joined #salt
05:06 jagguli joined #salt
05:10 jagguli Hi, how do I make a state fire if the requsite state completes without any changes
05:14 felskrone joined #salt
05:19 motherfsck joined #salt
05:27 aldevar joined #salt
05:33 aldevar left #salt
05:49 stanchan joined #salt
05:52 Bock joined #salt
06:03 johnj_ joined #salt
06:10 scarcry joined #salt
06:18 Felgar joined #salt
06:21 do3meli joined #salt
06:21 do3meli left #salt
06:45 aldevar joined #salt
06:50 sh123124213 joined #salt
06:50 dh joined #salt
07:01 Ricardo1000 joined #salt
07:03 johnj joined #salt
07:08 bluenemo joined #salt
07:10 blu_ joined #salt
07:13 schasi joined #salt
07:22 nick123 joined #salt
07:24 colegatron joined #salt
07:24 johnj joined #salt
07:29 toanju joined #salt
07:32 nick123 joined #salt
07:41 gnomethrower joined #salt
07:42 pbandark joined #salt
07:45 stanchan joined #salt
07:46 sh123124213 joined #salt
07:50 Rumbles joined #salt
08:02 Hybrid joined #salt
08:03 q1x_ left #salt
08:04 q1x joined #salt
08:04 Guest62933 joined #salt
08:05 q1x_ joined #salt
08:06 q1x_ joined #salt
08:09 mikecmpbll joined #salt
08:12 q1x_ joined #salt
08:13 q1x joined #salt
08:20 stanchan joined #salt
08:22 manji joined #salt
08:33 mikecmpbll joined #salt
08:38 sgo_ joined #salt
08:43 revellion Hmm, does anyone here know how to handle patterns in SUSEs Zypper with the pkg.installed state?
08:43 revellion seems to only work on individual packages but not "patterns" that are groups of packages.
08:52 defsdoor joined #salt
08:53 defsdoor XenophonF,  recall our conversation yesterday ?  I've took a different approach now - I simply pass the pillar path to the template instead - seems cleaner
08:55 nexus2000 joined #salt
08:55 defsdoor XenophonF, i.e. pillar_path: 'websites:test.co.uk' - the template can then read from the pillar relative to that path - pillar_path + ':an_option:etc'
08:56 scarcry joined #salt
09:08 pbandark hi.. i am using reactor "wheel.key.accept"  to accept the minions. but, from logs i can see "self.functions[fun](*args, **kwargs)\nTypeError: accept() takes at least 1 argument (0 given)". kwargs and args are empty. https://paste.fedoraproject.org/paste/Ov72zpiTQbphzDJrdnqBXQ
09:17 pbandark please ignore. there is change in latest version
09:17 Hybrid joined #salt
09:18 Hybrid joined #salt
09:30 okaiser joined #salt
09:32 tatrman joined #salt
09:32 i4o joined #salt
09:33 _KaszpiR_ joined #salt
09:42 AndChat20400 joined #salt
09:54 schasi joined #salt
10:13 colttt joined #salt
10:19 schasi joined #salt
10:25 smartalek joined #salt
10:25 gmacon joined #salt
10:26 _aeris_ joined #salt
10:29 W4RL0RD joined #salt
10:42 Neighbour I've seen orchestrations use `salt.state:` to apply specific states (or sls files) to specific minions, but I can't find the documentation page for that..does anyone know where to look?
10:51 gmoro joined #salt
11:00 babilen https://docs.saltstack.com/en/latest/ref/states/all/salt.states.saltmod.html#salt.states.saltmod.state
11:14 Neighbour ahh, saltmod...thanks
11:17 XenophonF defsdoor: sounds good
11:17 XenophonF pbandark: auto-accepting minion keys sounds like a bad idea
11:18 pbandark XenophonF: yeah.. i am just testing something on my test setup
11:18 XenophonF gotcha
11:21 mk-fg joined #salt
11:21 mk-fg joined #salt
11:24 peters-tx joined #salt
11:40 m4rk0 joined #salt
11:40 m4rk0 Hello
11:41 m4rk0 I'm trying to send json via cmd.run curl from reactor, but I'm getting this error: SaltRenderError: mapping values are not allowed here
11:44 mk-fg joined #salt
11:44 mk-fg joined #salt
11:45 XenophonF can't read your mind, m4rk0 - not enough coffee, I guess?
11:45 XenophonF would you mind posting a gist instead?
11:45 m4rk0 just sec hahah
11:46 AnteNsoft joined #salt
11:46 XenophonF in the meantime i'll refresh my cuppa
11:48 JawnAuz What's the way to disable state runs while you're executing a command on a minion? I have a command that stops a service and I don't want the service that keeps it "running" to run during that time.
11:49 m4rk0 XenophonF, https://gist.github.com/mdzidic/9e9854f0701e624f63cce4e4278acb05
11:50 m4rk0 When i remove --data part curl execute as it should....
11:56 DanyC joined #salt
11:56 jagguli joined #salt
11:57 gladia2r joined #salt
11:59 Naresh joined #salt
12:00 usernkey joined #salt
12:05 smead joined #salt
12:06 Tucky joined #salt
12:07 gladia2r heya, I have this very simple 'if' in this SLS and it doesn't get recognized apparently, https://gist.github.com/gladia2r/e7d5d61a122bdf8481234440950470f3 - is the 'if' incorrect?
12:10 WKNiGHT joined #salt
12:13 Nahual joined #salt
12:16 tru_tru joined #salt
12:20 rgrundstrom_home joined #salt
12:30 Muir joined #salt
12:32 q1x can I enforce saltenv from pillar?
12:33 q1x or do I have to write a state to update minion config from the pillar data?
12:40 mchlumsky joined #salt
12:41 babilen gladia2r: I'm quite sure that the snippet you pasted wouldn't result in that error. You seem to have omitted the part where you try to access app_version and I assume that you do so out of scope of the variable.
13:00 daks joined #salt
13:01 mchlumsky joined #salt
13:01 gh34 joined #salt
13:10 zenchiken joined #salt
13:19 ouemt joined #salt
13:19 ouemt joined #salt
13:20 pbandark is it possible to pass startup script with salt-cloud for GCP ?
13:21 racooper joined #salt
13:21 DammitJim joined #salt
13:22 m4rk0 XenophonF, any ideas? :D
13:34 Hybrid joined #salt
13:35 chadhs joined #salt
13:36 Hybrid joined #salt
13:36 gladia2r babilen: yes, indeed - thats true - but its happening because its not getting "set" between those IFs, which I don't get why
13:38 Uni hrmm
13:39 Uni can anyone tell me why the saltstack devs would choose to name a column 'return' (using the mysql returner)?
13:39 Uni this kind of breaks anything trying to use an orm and read values from this table
13:41 Uni at least from py, I can't use return as an attribute name so mocking the table with a class (which any orm would be doing, I don't know of any that don't work like that) is impossible
13:42 chadhs joined #salt
13:42 Uni I get that it is a 'return' and that's sensible, it just seems like 'returned' would be much more so, IMO
13:43 Uni or hell, given the context, 'data' would be adequately descriptive
13:43 babilen gladia2r: The variable is not available outside of the block
13:43 cgiroua joined #salt
13:44 babilen Uni: I think the only reason is: "To make it horribly complicated for you and teach you a lesson about string escaping"
13:45 Uni string escaping doesn't come into play when you're trying to mock up a class representing the table, it uses attribute names not dictionary keys, and return is not a valid attribute name
13:45 Uni it's a reserved keyword
13:46 colegatron joined #salt
13:46 babilen Yeah, keywords such as that really shouldn't be used.. In fact the Python reference is quite clear about that
13:47 babilen File a bug and link https://docs.python.org/3/reference/lexical_analysis.html#keywords and https://docs.python.org/2.5/ref/keywords.html :)
13:48 Uni I was just wondering wether this would count as a bug
13:48 gladia2r babilen: isn't the variable not available because its not getting "set" between those IFs?, I mean if I drop the IF and just set one value for app_version, it works - I don't get why the IF doesn't work
13:49 babilen What's in a bug? It complicates your life and is something you learn *very* early on during your coding career (in any language really)
13:49 babilen gladia2r: Set them to different values in and outside of those blocks and observer the value when you access it in scope of the block and outwith
13:50 babilen *observe
13:55 rgrundstrom_home A litte help please. https://gist.github.com/Robert-Grundstrom/601cf658f6c327f84ca36cb7d1e7c1ed#file-gistfile1-txt As explained here the {%else%} never happens.
13:55 babilen gladia2r: http://jinja.pocoo.org/docs/2.9/templates/#assignments → Scoping behavior
13:56 Hybrid joined #salt
13:59 brodudeman joined #salt
14:01 brodudeman left #salt
14:01 ccha I want to add some dict for pillar
14:01 ccha salt '*' pillar.items pillar='{ "test": true}' pillar='{ "test1": true}'
14:01 brodudeman joined #salt
14:01 ccha I got just the final one
14:01 ccha how can I do that ?
14:02 babilen salt '*' pillar.items pillar='{ "test": true, "test1": true}'
14:02 ccha salt '*' pillar.items pillar='{ "test": true, "test1": true}'
14:02 ccha oh same thing
14:02 ccha ok thanks anyway
14:03 babilen anyway?
14:04 brodudeman left #salt
14:04 DammitJim1 joined #salt
14:04 brodudeman joined #salt
14:09 brodudeman joined #salt
14:11 brokensyntax joined #salt
14:17 brodudeman Good morning! I am having trouble getting salt-cloud to work in python. seems to complain about permissions 0400 even after I set it. I would appreciate some help! Thanks.
14:17 brodudeman https://gist.github.com/anonymous/0cf3c50c9ec2baaecfdc43ed152b93d0
14:34 cro joined #salt
14:37 scarcry joined #salt
14:37 Sacro_ left #salt
14:37 Sacro joined #salt
14:40 rgrundstrom_home A litte help please as explained here the {%else%} never happens. https://gist.github.com/Robert-Grundstrom/ee0579f004cba2500d01b44b7bb5cd55#file-gistfile1-txt  (NEW gist with more information!!!)
14:40 justanotheruser joined #salt
14:43 cyteen joined #salt
14:45 magz0r joined #salt
14:46 babilen rgrundstrom_home: salt['pillar.get']('monitor:servers') is always defined, isn't it? (the function that is)
14:46 _JZ_ joined #salt
14:51 saltuser joined #salt
14:52 saltuser left #salt
14:52 saltuser2 joined #salt
14:53 q1x Does anyone know when salt 2017.7.2 will be available from the repos?
14:55 saltuser2 hi, i have a small error to fire an event: https://paste.fedoraproject.org/paste/sunia5ODOl8j1UlKpWasZw . I want to send 2 arguments for the event. on the cli it works
14:57 smartalek Anyone ever come across salt rendering environments in reverse order? Env_Order: ['base', 'prd'] and state.show_top shows the correct order, but at runtime, prd states are executed first followed by base.
14:59 rgrundstrom_home babilen: Hmm okey.... So im missing something in that line...
15:02 jmiven joined #salt
15:02 omie888777 joined #salt
15:06 rgrundstrom_home babilen: Ok now I understand what your point was, got it working but not in a way that I would like it to work. Thank you!
15:07 Brew joined #salt
15:10 babilen rgrundstrom_home: You could load the pillar and then do something like if pillar_somewhere.foo.bar is defined (to test if 'bar' is defined) or just provide sensible default values in the pillar .. you'll iterate over it anyway and iterating over an empty list does, well, nothing
15:10 babilen Note that if foo is also undefined you'd get an error
15:12 rgrundstrom_home babilen: Solved it by changeing the if state to {% if salt['pillar.get']('monitor:servers', None) != None%} its not as pretty as using "is defined" but it works.
15:15 babilen You could use {% set monitor = salt['pillar.get']('monitor', {}) %} earlier and then use {% if monitor.servers is defined %} -- easy to read and you probably need access to monitor later on anyway
15:15 babilen I'd recomend to ensure that it is always defined by providing sensible default values that you mungify in map.jinja
15:15 vegasq joined #salt
15:16 gh34 joined #salt
15:18 rgrundstrom_home babilen: Will do thnx
15:20 pbandark is it possible to pass startup script with salt-cloud for GCP ? any pointers to confirm if the functionality is available ?
15:30 ponyofdeath joined #salt
15:42 tiwula joined #salt
15:44 _aeris_ joined #salt
15:45 oida joined #salt
15:50 DanyC joined #salt
15:55 aldevar left #salt
16:02 mikecmpb_ joined #salt
16:05 evle1 joined #salt
16:15 seeg joined #salt
16:15 onlyanegg Morning, everyone. My company has a position opening in San Francisco for an SRE. If you're interested, PM me for details. Thx!
16:16 stanchan joined #salt
16:17 colegatron joined #salt
16:19 tiwula joined #salt
16:19 phtes anyone work with installing mariadb10 with salty
16:19 phtes salt..*
16:20 phtes It's fully installing when i add the package repo, but reports as failed for mariadb-server...but upon sshing its all running
16:20 phtes this is via salt.state.group_installed
16:20 DanyC joined #salt
16:21 phtes thinking this is related https://github.com/saltstack/salt/issues/25291
16:22 JawnAuz Would it be weird to have a schedule state that adds a schedule to re-run the schedule state and make sure the minion has the newest version of the schedule? (If that makes sense...)
16:23 mikecmpbll joined #salt
16:27 LeProvokateur joined #salt
16:37 gladia2r joined #salt
16:44 stanchan joined #salt
16:50 vexati0n Is there any worthwhile way to use SaltStack to push Docker images to Google Container Engine?
16:51 cyteen joined #salt
16:58 dxiri joined #salt
17:12 pipps joined #salt
17:14 chitown joined #salt
17:17 DammitJim joined #salt
17:18 pipps joined #salt
17:22 tapoxi joined #salt
17:23 tapoxi does saltstack inc do PS engagements for people who arent using enterprise?
17:25 omie888777 joined #salt
17:26 swa_work joined #salt
17:31 mechleg left #salt
17:37 pipps joined #salt
17:38 stanchan joined #salt
17:40 whytewolf JawnAuz. I do something like that with my dynamic top file I put a schedule state in the highstate. That runs the highstate
17:41 whytewolf So if I change that state I change the schedule of figured highstates
17:41 DanyC joined #salt
17:41 whytewolf So. Not weird at all
17:42 whytewolf Also phone suck for typing
17:42 JawnAuz Yep, primarily using the schedule now but I want the machines to check if there's an update to the schedule. :) Will definitely be doing that.
17:49 rgrundstrom_home whytewolf: Hey o/
17:50 whytewolf O/
17:53 pipps joined #salt
17:58 pipps joined #salt
18:03 rgrundstrom_home whytewolf: *poke*  Sent you a priv.
18:04 whytewolf Sorry. Meeting
18:07 brodudeman Does anyone know if there is a way to bypass ssl verification using the python API? Im trying to create an instance in AWS through a proxy. "client.profile('linux-tiny', names=['test_vm'])"
18:08 tatrman joined #salt
18:08 i4o joined #salt
18:16 pipps joined #salt
18:16 stanchan joined #salt
18:18 correct joined #salt
18:19 correct can I use a roster file when deploying the salt key?
18:22 smartalek joined #salt
18:23 q1x I have a *very* weird issue with one minion ignoring my top.sls file completely...it only hits on the '*' glob, not on name, grain, or pillar data for some reason. I've been pulling my hair on this the entire day, anyone have any suggestions to get this minion working like it should?
18:28 correct_ joined #salt
18:30 torontoy1s joined #salt
18:30 Eugene Alcohol
18:31 Heartsbane That is one of my hilight words
18:32 Heartsbane Never drink to forget your problems in system engineering, drink to stop the voices.
18:33 Hybrid joined #salt
18:37 stanchan joined #salt
18:44 muxdaemon joined #salt
18:47 q1x Bloody hell, I found it!
18:48 q1x there was a file in /etc/salt/minion.d/ that had an environment entry hardcoded >.<
18:57 toanju joined #salt
18:59 wryfi joined #salt
19:01 aldevar joined #salt
19:03 justinl joined #salt
19:04 wryfi joined #salt
19:06 stanchan joined #salt
19:08 _KaszpiR_ joined #salt
19:09 nickadam joined #salt
19:10 torontoy1s joined #salt
19:14 mchlumsky joined #salt
19:16 ouemt joined #salt
19:18 DanyC joined #salt
19:21 wryfi joined #salt
19:21 pipps joined #salt
19:23 pipps99 joined #salt
19:23 numkem joined #salt
19:26 DanyC joined #salt
19:26 ChubYann joined #salt
19:28 DanyC joined #salt
19:35 thematthewgreen joined #salt
19:35 smartalek joined #salt
19:40 thematthewgreen question: if a formula is added to two separate roles and a minion happens to have both roles, will salt detect that it doesn't need to be run twice? (new to salt, tia)
19:42 fatal_exception joined #salt
19:44 pipps joined #salt
19:49 Danishman joined #salt
19:49 Danishman left #salt
19:51 ecdhe joined #salt
19:54 aldevar left #salt
19:58 aldevar joined #salt
20:02 schemanic joined #salt
20:04 schemanic Hi everyone, can anyone recommend any Salt books?
20:05 aldevar joined #salt
20:19 omie888777 joined #salt
20:22 stanchan joined #salt
20:24 KevinAn2757 joined #salt
20:32 JawnAuz I like the Salt Cookbook by Anirban Saha
20:33 JawnAuz schemanic, for starting I used Learning Saltstack by Colton Myers
20:33 schemanic I bought Mastering Saltstack and the Salt Cookbook
20:33 JawnAuz I also have that one, but haven't used it much, yet. :D
20:35 chitown Salt Essentials is amazing!
20:35 wavded joined #salt
20:35 chitown but, im the author... so, take that with a grain of salt. (no pun inended) ;)
20:36 JawnAuz That said, this channel has been a huge help too. :) Not exactly a book but definitely clarifies things when you get stuck, lot of helpful people here.
20:36 chitown and the mailing list seems very active
20:37 thematthewgreen question: if a formula is added to two separate roles and a minion happens to have both roles, will salt detect that it doesn't need to be run twice? (new to salt, tia)
20:38 XenophonF thematthewgreen: not sure i follow you
20:39 XenophonF logically, a computer only has one role
20:39 XenophonF i.e., the sum of role1+role2
20:40 XenophonF you dig?
20:40 thematthewgreen I'm new to salt but there are definitely minions reporting multiple roles
20:40 XenophonF like, let's say you have a "Salt master" role and a "NAS" role that you want to combine.
20:40 XenophonF logically, that minion would then have a new role named "Salt minion/NAS"
20:40 XenophonF that's how i'd define it, anyway
20:41 _aeris_ joined #salt
20:41 XenophonF i wouldn't recommend setting up role targets in top.sls that work like you describe
20:41 XenophonF but to answer your question
20:42 XenophonF let's say you have a "Salt minion" role and a "NAS" role, and they both assign the "apache" SLS
20:42 thematthewgreen yes... go on
20:42 XenophonF dude give me a minute
20:42 XenophonF I am pretty sure it will throw an error at state.apply time b/c of duplicate, conflicting state IDs
20:42 XenophonF i can only type so fast! :)
20:43 thematthewgreen hehe
20:43 XenophonF but you can easily verify this yourself
20:43 XenophonF but again i caution you against this idea of a multi-valued role attribute
20:44 XenophonF if you have a multi-role server, treat it like it has one role---a role that subsumes the others
20:44 JawnAuz I also have written test states that are harmless to run against these very kind of scenarios, sometimes the best answer is just to see what happens. :) test=true is also your friend, as well as state.show_sls
20:46 thematthewgreen hrmmm
20:47 pipps joined #salt
20:50 ChubYann joined #salt
20:56 schasi joined #salt
21:07 pipps joined #salt
21:08 wavded joined #salt
21:08 pipps99 joined #salt
21:17 mechleg joined #salt
21:19 DanyC joined #salt
21:30 stanchan joined #salt
21:35 oida_ joined #salt
21:38 pipps joined #salt
21:41 dograt joined #salt
21:42 zulutango joined #salt
21:54 pipps joined #salt
22:13 pipps joined #salt
22:20 stanchan joined #salt
22:22 aldevar left #salt
22:27 torontoy1s joined #salt
22:34 onlyanegg joined #salt
22:43 mike25de joined #salt
22:44 okaiser joined #salt
22:50 cyborg-one joined #salt
22:52 Edgan joined #salt
22:53 csmule joined #salt
22:55 pipps joined #salt
23:04 sjorge joined #salt
23:18 pipps joined #salt
23:37 stanchan joined #salt
23:43 Edgan joined #salt
23:49 Edgan joined #salt
23:51 blu__ joined #salt
23:53 sh123124213 joined #salt
23:54 justan0theruser joined #salt
23:55 justan0theruser joined #salt
23:55 Edgan joined #salt

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