Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-07-03

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

All times shown according to UTC.

Time Nick Message
00:01 SheetiS joined #salt
00:06 ajw0100 joined #salt
00:07 otter768 joined #salt
00:08 aqua^c joined #salt
00:11 scoates joined #salt
00:14 aphor joined #salt
00:17 quasiben joined #salt
00:17 mgar joined #salt
00:17 mgar joined #salt
00:25 Viper233 joined #salt
00:28 baweaver joined #salt
00:29 notnotpeter joined #salt
00:29 SubOracle joined #salt
00:32 CheKoLyN joined #salt
00:35 bfoxwell joined #salt
00:38 JoshuaX_ joined #salt
00:44 Twiglet joined #salt
00:46 radd joined #salt
00:52 iggy irated: {{ salt['pillar.get']( salt['grains.get']('env', 'astring') ~ 'user' ) }}
00:52 N-Mi joined #salt
00:55 notnotpeter joined #salt
00:57 yomilk joined #salt
00:57 cberndt joined #salt
00:58 p0rkbelly joined #salt
01:02 fllr joined #salt
01:02 N-Mi joined #salt
01:02 N-Mi joined #salt
01:05 amcorreia joined #salt
01:06 supersheep joined #salt
01:09 drc joined #salt
01:15 drc left #salt
01:19 sine_nitore joined #salt
01:19 Garo_ joined #salt
01:20 Hipikat joined #salt
01:24 N-Mi joined #salt
01:45 JoshuaX joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt | 2015.5.2 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | 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/
01:52 madpenguin joined #salt
01:53 subsignal joined #salt
01:58 prwilson joined #salt
01:58 boldnetwarrior joined #salt
02:05 baweaver joined #salt
02:06 quasiben joined #salt
02:12 timoguin joined #salt
02:13 sunkist joined #salt
02:15 boldnetwarrior joined #salt
02:27 quasiben joined #salt
02:29 yomilk joined #salt
02:30 JoshuaX joined #salt
02:30 otter768 joined #salt
02:32 favadi joined #salt
02:34 ITChap joined #salt
02:34 scoates joined #salt
02:48 yamnog_ joined #salt
02:53 GothAck joined #salt
02:54 napsterX joined #salt
03:00 ITChap joined #salt
03:02 SheetiS joined #salt
03:03 quasiben joined #salt
03:03 sunkist joined #salt
03:03 TyrfingMjolnir joined #salt
03:04 amcorreia joined #salt
03:08 julez joined #salt
03:12 wabkia joined #salt
03:13 quasiben joined #salt
03:19 quasiben joined #salt
03:28 napsterX joined #salt
03:32 Furao joined #salt
03:39 wabkia joined #salt
03:47 N-Mi joined #salt
03:47 N-Mi joined #salt
03:47 gcfhvjbkn joined #salt
03:59 hrumph_ hi
03:59 hrumph_ i don't fully understand how to work with local.cmd
04:00 thehaven joined #salt
04:02 p0rkbelly joined #salt
04:08 Diaoul joined #salt
04:09 sunkist1 joined #salt
04:11 hrumph_ some entries in the returend result are of the form minion_id: 'module_name' __virtual__ returned False
04:11 hrumph_ how do I process this?
04:12 hrumph_ am i just suppoed to look for the magic string, '__virtual__ returned False'
04:12 hrumph_ i want to make robust handling of the output which means i can't exclude that possibility from occuring
04:12 sunkist joined #salt
04:13 hrumph_ if i work with magic strings then i'm precluding the possibility that they might be valid entries
04:13 hrumph_ sort of like if I use the string "False" to mean the boolean False, then i can't use the string "False"
04:16 hrumph_ are there any examples online or anything?
04:16 hasues joined #salt
04:18 N-Mi joined #salt
04:18 evle joined #salt
04:27 boldnetwarrior joined #salt
04:31 moos3 joined #salt
04:31 otter768 joined #salt
04:33 rdas joined #salt
04:42 N-Mi joined #salt
04:46 ramteid joined #salt
04:48 p0rkbelly joined #salt
04:57 julez joined #salt
05:02 zer0def joined #salt
05:05 jahmed joined #salt
05:06 jaybocc2 joined #salt
05:09 Guest89 joined #salt
05:22 mosen joined #salt
05:23 jaybocc2 joined #salt
05:26 ITChap joined #salt
05:30 ingslovak joined #salt
05:31 joeto joined #salt
05:40 napsterX joined #salt
05:40 ajw0100 joined #salt
05:43 apofis joined #salt
05:43 jaybocc2 joined #salt
05:44 catpigger joined #salt
05:45 keimlink joined #salt
05:48 subsignal joined #salt
05:49 gcfhvjbkn joined #salt
05:51 NightMonkey joined #salt
05:56 zemm joined #salt
05:57 rnts joined #salt
05:57 Micromus joined #salt
05:57 marcel joined #salt
05:58 llb42 joined #salt
05:59 jaybocc2 joined #salt
06:00 mgar joined #salt
06:00 mgar joined #salt
06:01 colttt joined #salt
06:03 ITChap joined #salt
06:05 Bateau_ joined #salt
06:07 lb1a joined #salt
06:08 dopesong joined #salt
06:11 dopesong_ joined #salt
06:12 AndreasLutro joined #salt
06:13 MatthewsFace joined #salt
06:14 sirex joined #salt
06:19 favadi joined #salt
06:21 flyboy joined #salt
06:24 michelangelo joined #salt
06:31 sectionme joined #salt
06:32 otter768 joined #salt
06:50 jaybocc2 joined #salt
06:55 thalleralexander joined #salt
07:00 sectionme joined #salt
07:06 N-Mi joined #salt
07:06 N-Mi joined #salt
07:06 jaybocc2 joined #salt
07:08 soren joined #salt
07:09 jamesog_ joined #salt
07:10 peno_ joined #salt
07:10 ajolo_ joined #salt
07:10 madpengu_ joined #salt
07:10 atoponce joined #salt
07:10 sgate1_ joined #salt
07:10 rackermanfred joined #salt
07:11 jeblair_ joined #salt
07:11 kevin-wk_ joined #salt
07:11 mrtrosen joined #salt
07:11 cheine_ joined #salt
07:11 Nazzy_ joined #salt
07:11 collinanderson joined #salt
07:12 certainty joined #salt
07:12 joehh joined #salt
07:13 eseyman joined #salt
07:13 linjan joined #salt
07:16 leszq joined #salt
07:17 Romlok joined #salt
07:24 jhauser joined #salt
07:25 chiui joined #salt
07:26 forrest joined #salt
07:27 jahmed joined #salt
07:28 forrest joined #salt
07:29 impi joined #salt
07:30 al joined #salt
07:30 jhauser_ joined #salt
07:34 kawa2014 joined #salt
07:46 catpiggest joined #salt
07:49 napsterX joined #salt
07:50 gcfhvjbkn joined #salt
08:06 Matthews_ joined #salt
08:06 IanV0rn2341 joined #salt
08:07 s_kunk joined #salt
08:09 aqua^c joined #salt
08:09 IanV0rn2341 joined #salt
08:11 markm joined #salt
08:11 jaybocc2 joined #salt
08:13 cberndt joined #salt
08:16 Xevian joined #salt
08:17 KermitTheFragger joined #salt
08:22 julez joined #salt
08:27 jaybocc2 joined #salt
08:32 napsterX joined #salt
08:33 otter768 joined #salt
08:35 SubOracle joined #salt
08:38 gcfhvjbkn joined #salt
08:40 joeto1 joined #salt
08:43 supersheep joined #salt
08:46 jhauser joined #salt
08:47 napsterX_ joined #salt
08:54 aqua^c_ joined #salt
08:57 ndrei joined #salt
09:01 slav0nic joined #salt
09:03 DaveQB joined #salt
09:05 plindgren joined #salt
09:05 plindgren Hi
09:05 plindgren Does anybody know if a salt-minion can have two seperate salt-masters?
09:06 plindgren In my case i already use salt for somestuff but i want to use some software that also uses salt
09:06 jahmed joined #salt
09:08 VSpike plindgren: I happen to have this page open already http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html :)
09:08 plindgren yeah
09:08 plindgren it says "the masters do not share any information, keys need to be accepted on both masters"
09:08 VSpike yep
09:08 plindgren But then it shows steps on how to have a redundant master
09:09 plindgren so i got a bit confused but
09:09 aqua^c_ joined #salt
09:09 plindgren i guess "the masters do not share any information, keys need to be accepted on both masters" means that its possible
09:09 VSpike The feature seems to be specifically intended to allow you have redundant masters which are as identical as possible (presumably using git or some other method to share pillar, state and config data) ...
09:09 VSpike but I don't think there's anything that restricts you to that
09:10 plindgren alright
09:10 VSpike As long as they keys are accepted on both masters, the masters could be quite different. I think.
09:10 plindgren we'll im not trying on production systems at the moment so i guess ill just have to find out :)
09:10 lb1a or you could use a third master, that controlls the previous masters as minions
09:11 plindgren hmm
09:11 VSpike lb1a: good point. Inception-style.
09:11 lb1a endless possibilities :D
09:11 plindgren lb1a: Do you have any docs on this ?
09:11 lb1a no just heard it in a talk
09:11 VSpike On this subject, I was wondering if a master can also run a minion that refers to itself as master
09:12 lb1a its on yt, i'll search the link
09:12 VSpike I can't see why not off-hand
09:12 VSpike I'm setting up a redundant master, so I've created a recipe, and I'm using the original master to create the new one. I was wondering if I could install the minion on the first master and run the same recipe too
09:13 VSpike The new master is already a minion too, and will get the minion config that points to both masters (i.e. including itself)
09:13 VSpike One I fix my DNS, that is
09:13 yomilk joined #salt
09:14 shantanoo joined #salt
09:14 shantanoo hi
09:14 shantanoo is it possible to have a template file, and copy it on the minion depending on the pillar variables?
09:17 lb1a plindgren, here he talked about that https://www.youtube.com/watch?feature=player_detailpage&v=yphLKSjnSU8#t=523
09:17 plindgren thx
09:18 slav0nic as i can reload service with params via states.service? like `service uwsgi reload blabla`
09:18 jaybocc2 joined #salt
09:18 Furao joined #salt
09:23 VSpike is there any basic guide on how to use salt-contrib?
09:23 Furao joined #salt
09:24 VSpike Is it as simple as running "salt-contrib/link_contrib.py /srv/salt" ?
09:24 VSpike Presumably this will affect my state tree so I probably want to use .gitignore judiciously
09:26 jahmed joined #salt
09:27 napsterX joined #salt
09:29 apofis joined #salt
09:34 jaybocc2 joined #salt
09:35 CeBe joined #salt
09:38 jahmed joined #salt
09:41 vieira_ joined #salt
09:42 markm joined #salt
09:44 joeto joined #salt
09:45 mage_ when I have multiple environments, how can I pass the environment to salt ?
09:47 mage_ there is nothing like salt --env=dev "targets" state.sls foo
09:49 vieira_ joined #salt
09:50 vieira_ Hello, when using salt-cloud the preseeded key is always the same?
09:54 phix what is salt-cloud? acid rain?
09:54 pcdummy joined #salt
09:54 IanV0rn2341 joined #salt
09:56 cberndt joined #salt
09:59 ndrei joined #salt
10:00 vieira_ xD https://docs.saltstack.com/en/develop/topics/cloud/index.html
10:00 shorty_mu joined #salt
10:01 morsik vieira_: ?
10:03 vieira_ morsik: is salt-cloud the preseededing always the same key?
10:04 bigfoot_ joined #salt
10:04 bigfoot_ hi! can salt manage just part of a config file, a section?
10:05 shorty_mu Hi all, is it possible to show me only those Minions which have a specific state defined via top.sls (like state.show_top with grep)? Otherwise I'd have to parse the output of show_top (probably as JSON).
10:05 chupetito joined #salt
10:06 xmj joined #salt
10:06 xmj joined #salt
10:06 PI-Lloyd bigfoot_: file.blockreplace might be what you're looking for
10:06 PI-Lloyd http://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.blockreplace
10:07 zerthimon joined #salt
10:07 chupetito good morning! can any one tell me what is wrong with this? Im trying to use vmware provider wit salt cloud. when i run "salt-cloud -p vmware myinstance -l debug"  /usr/lib/python2.6/site-packages/salt/cloud/clouds/digital_ocean.py:86: DeprecationWarning: The digital_ocean driver is deprecated and will be removed in Salt Beryllium. Please convert your digital ocean provider configs to use the digital_ocean_v2 driver.[DEBUG   ] Faile
10:08 AndreasLutro chupetito: can you put the full error message on a pastebin like https://gist.github.com ?
10:08 AndreasLutro the deprecation warning is normal, you can ignore it
10:08 chupetito ah yes ... one sec
10:08 CeBe1 joined #salt
10:09 joeyparsons joined #salt
10:09 jbub joined #salt
10:09 donmichelangelo joined #salt
10:10 chupetito ok its here https://gist.github.com/ppchan/84257d57c11dd381abf2
10:12 jahmed joined #salt
10:13 xmj joined #salt
10:13 xmj joined #salt
10:13 AndreasLutro well, it says "Profile vmware is not defined"
10:13 AndreasLutro have you defined the profile?
10:15 catpigger joined #salt
10:20 chupetito Andreas... yes, i have. I have /etc/salt/cloud.providers.d/vmware.conf and /etc/salt/cloud.profiles.d/vmware.conf
10:21 napsterX_ joined #salt
10:21 donmichelangelo joined #salt
10:21 jahmed joined #salt
10:23 AndreasLutro chupetito: and how does cloud.profiled.d/vmware.conf look?
10:23 pcdummy joined #salt
10:23 pcdummy joined #salt
10:23 EvaSDK joined #salt
10:24 jaybocc2 joined #salt
10:24 mage_ is there a way to render a jinja template and put the generated content in a file.blockreplace block ..?
10:24 mage_ it seems übercomplicated to do that with accumulator, blockreplace, etc
10:25 chupetito @Andreas. I posted the contents of vmware.conf here https://gist.github.com/ppchan/be6de1a9c1ef9cfbf059
10:27 AndreasLutro chupetito: looks correct, have you installed the python pyVmomi package?
10:27 losh joined #salt
10:28 slav0nic joined #salt
10:28 chupetito Andreas: yum.. im following instructions here http://salt.readthedocs.org/en/latest/topics/cloud/vmware.html
10:28 VSpike Has anyone use the yamlex renderer for pillars? I'm wondering if it should be able to aggregate data across different files
10:29 AndreasLutro chupetito: what salt version are you on? I don't think this is available until the next release
10:29 AndreasLutro could be a misleading error message
10:30 chupetito Andreas .... as far as i know is the latest. Salt: 2015.5.2
10:31 fisuk yeah, vmware not available on 2015.5
10:31 chupetito oh
10:31 AndreasLutro chupetito: it'll be available in 2015.8, you can install it manually if you need it right now
10:31 chupetito what do i need to upgrade too?
10:31 AndreasLutro or possibly use the vsphere provider, but it's deprecated
10:31 chupetito install salt 2015.8 manually?
10:32 fisuk you can either use vsphere (not very useful) or copy the vmware driver from the dev to 2015.5..
10:32 AndreasLutro yeah. git clone https://github.com/saltstack/salt, checkout 2015.8, pip install -e .
10:32 froztbyte joined #salt
10:32 Guest_ joined #salt
10:32 Guest_ hi everyone.
10:32 _sfxandy hi folks
10:33 chupetito ok that makes sense now .... i'll play with the latest version then. last questions, when will 2015.8 be officially out?
10:33 AndreasLutro maybe august
10:33 AndreasLutro probably not though :p
10:33 khebbie joined #salt
10:33 _sfxandy need some help with syntax for a mine.get call...
10:34 chupetito alright then ... thanks for the help Andreas and fisuk
10:34 otter768 joined #salt
10:37 _sfxandy whats the correct mine.get syntax to match pillar data? at the moment i have something that looks like this...
10:37 _sfxandy http://pastebin.com/WtNQYvHm
10:37 _sfxandy but it failes to match on any of the minions where the pillar data is set.... any ideas?
10:40 jaybocc2 joined #salt
10:47 VSpike _sfxandy: works for me --> sudo salt 'aws-dev-p-db-1' mine.get 'roles:free-ngx' network.ip_addrs expr_form='pillar'
10:48 VSpike perhaps it's because you're using multiple levels of pillar
10:49 _sfxandy ok, VSpike, just wondered if my syntax for the pillar data (first parameter) was right.  if you look again at the pastebin extract you can see i've got another level to my structure
10:50 VSpike I just tried this and it works too --> sudo salt 'aws-dev-p-db-1' mine.get 'relay:port:587' network.ip_addrs expr_form='pillar'
10:51 _sfxandy so what does your pillar structure look like in that last example..?
10:51 giantlock joined #salt
10:51 VSpike Could it be something to do with the boolean?
10:51 VSpike Hm, no.. sudo salt 'aws-dev-p-db-1' mine.get 'relay:tls:True' network.ip_addrs expr_form='pillar'
10:52 _sfxandy does that work for you?
10:53 VSpike Yep
10:53 _sfxandy hmmm
10:53 VSpike https://bpaste.net/show/3bd1d80e35b6
10:53 _sfxandy ok ... let me try again
10:54 amcorreia joined #salt
11:01 TyrfingMjolnir joined #salt
11:09 denys joined #salt
11:11 keimlink joined #salt
11:15 jaybocc2 joined #salt
11:16 wnkz joined #salt
11:19 stephanbuys joined #salt
11:31 jaybocc2 joined #salt
11:34 ndrei joined #salt
11:41 ksj joined #salt
11:42 shantanoo joined #salt
11:44 CeBe joined #salt
11:47 ingslovak joined #salt
11:57 simmel_ joined #salt
11:59 nocturn joined #salt
12:02 yomilk joined #salt
12:02 JlRd joined #salt
12:03 jahmed joined #salt
12:12 shorty_mu joined #salt
12:12 denys joined #salt
12:18 julez joined #salt
12:21 shorty_mu left #salt
12:22 viq joined #salt
12:25 IanV0rn2341 joined #salt
12:27 CeBe joined #salt
12:31 hasues joined #salt
12:33 __th0m left #salt
12:35 otter768 joined #salt
12:36 jaybocc2 joined #salt
12:37 julez joined #salt
12:37 zer0def joined #salt
12:38 julez_ joined #salt
12:44 SubOracle joined #salt
12:47 silenth joined #salt
12:48 silenth I was wondering if anyone could help with a problem I am having deploying into an AWS VPC
12:50 silenth I am running version 2014.7.0 and keep getting "string indices must be integers, not str"
12:52 jaybocc2 joined #salt
12:57 linjan joined #salt
12:59 moderation joined #salt
13:00 leszq joined #salt
13:05 leszq joined #salt
13:07 giantlock joined #salt
13:11 murrdoc joined #salt
13:11 subsignal joined #salt
13:13 babilen silenth: You should use a newer version (that bug has been fixed)
13:14 babilen https://github.com/saltstack/salt/issues/21480
13:14 wiqd joined #salt
13:14 OliverMT joined #salt
13:17 babilen Well, one bug has been fixed of which this was a symptom. Apparently the same symptom is being caused by other things too.
13:17 silenth babilen: I just upgraded via homebrew and with version 2015.5.0 I still get the error
13:18 babilen You upgraded both the master and the minion?
13:18 babilen https://github.com/saltstack/salt/pull/24395 didn't make it into .2 (nor .0 which you are running now)
13:19 dkrae joined #salt
13:19 babilen We had this problem in the 2014.7.0 version and it was fixed in 2014.7.4, but there is apparently another bug that causes the same exception, for which the linked PR is the fix, but that one has not made it in any release yet
13:20 silenth babilen: I am just using salt-cloud. Is there any way to use the devel version?
13:20 babilen What is the exact problem you encounter?
13:20 babilen I guess, but I don't use salt-cloud. Might just use the bootstrap script though ...
13:22 kdm__ joined #salt
13:22 silenth babilen: I am trying to launch a instance into a VPC...I could just do it manually but that is a pain...
13:22 OnTheRock joined #salt
13:22 silenth babilen: thanks for your help...I will watch both of those bugs and upgrade when they are fixed / merged
13:24 babilen There might be a way to get this into salt-cloud, but I am simply not familiar enough with it to walk you through it
13:25 silenth babilen: thanks..I am just using Ansible to spin them up for now
13:25 babilen *sob*
13:26 silenth babilen: haha.salt still is the best for spinning up non-vpc instances...it is the only provisioning tool that actually reads ssh_host keys and sticks them in known_hosts
13:26 silenth babilen: (reads them from the ec2 api that is)
13:30 peters-tx joined #salt
13:31 subsignal joined #salt
13:36 leszq joined #salt
13:36 ajw0100 joined #salt
13:38 linjan joined #salt
13:38 apofis joined #salt
13:40 \ask joined #salt
13:41 shantanoo joined #salt
13:52 zer0def joined #salt
13:57 tttttt joined #salt
13:59 operator1 joined #salt
14:00 supersheep joined #salt
14:01 operator1 Good morning, could someone help me with syntax to set a grain only when a package is installed?  I'd need to keep a variable when certain packages require a reboot, then I'll touch a 'reboot_require' file at the end of the highstate.   Thanks!
14:02 monkey66 joined #salt
14:04 dopesong joined #salt
14:05 pic0frame joined #salt
14:05 dopeson__ joined #salt
14:05 toastedpenguin joined #salt
14:07 otter768 joined #salt
14:09 toastedpenguin joined #salt
14:10 ange hi
14:10 ange has archive.extracted been removed in the 2015.* ?
14:11 ange https://docs.saltstack.com/en/latest/ref/states/all/salt.states.archive.html apparently not
14:11 ange 2015.5.2 installed (ubuntu)
14:12 ange "State archive.extracted found in sls consul-template is unavailable"
14:18 linjan joined #salt
14:24 pdayton joined #salt
14:27 catpiggest joined #salt
14:48 quasiben joined #salt
14:49 babilen ange: Do you have the "zipfile" Python module installed?
14:49 leszq joined #salt
14:50 babilen Ah, no ... forget that. You need https://github.com/saltstack/salt/blob/develop/salt/modules/archive.py#L35
14:51 quasiben joined #salt
14:56 ksj how do people deal with maintaining a filesystem hierarchy? I'd rather not have lots of separate file.* calls scattered around, but instead have a single global file that has user/group ownership and chmod info. Then I could run a separate state that ensured all ownership and permissions were correct site wide
15:08 bbhoss joined #salt
15:16 dopesong joined #salt
15:17 babilen ksj: Generate that from pillar data?
15:18 ksj babilen: yeah, that's pretty much what I'm trying to do,
15:18 ksj just confused about the finer points...
15:18 * babilen unconfuses ksj
15:19 babilen You are welcome
15:19 ksj heh, sorry, I actually hit enter too quickly
15:20 ksj I'm not even sure how to fram my question
15:20 ksj s/fram/frame
15:20 ksj pillar data for every directory gets really big and unwieldy, so I'm looking at generating it from a csv
15:21 ksj but to be honest, that's the least of my issues. I just wondered if there were any real world examples/best practices of how to deal with it
15:26 hasues left #salt
15:32 shantanoo joined #salt
15:39 leszq joined #salt
15:47 apofis joined #salt
15:48 sectionme joined #salt
15:50 quasiben joined #salt
15:53 operator1 joined #salt
15:57 JordanRinke joined #salt
15:59 linjan joined #salt
16:03 simonmcc joined #salt
16:03 mapu joined #salt
16:07 TyrfingMjolnir joined #salt
16:09 babilen ksj: All the files I manage are generally part of some "semantic" group (e.g. webserver config) and live in that particular area of the salt configuration
16:10 babilen If you have to manage entire directories then file.recurse might be an option and if you simply want to have the same data on a bunch of minions then use a suitable networked filesystem/shared storage solution
16:22 armguy joined #salt
16:23 iggy and setup the nfs server with salt... boom!
16:26 bfoxwell joined #salt
16:27 amcorreia_ joined #salt
16:32 gazarsgo joined #salt
16:35 linjan joined #salt
16:35 dimeshake joined #salt
16:37 linjan joined #salt
16:47 SubOracle joined #salt
16:48 rhand joined #salt
16:51 leszq joined #salt
16:52 voileux joined #salt
17:04 codekobe joined #salt
17:06 dendazen joined #salt
17:06 giantlock joined #salt
17:10 linjan joined #salt
17:17 linjan joined #salt
17:18 michelangelo joined #salt
17:18 markm joined #salt
17:21 denys joined #salt
17:22 subsignal joined #salt
17:32 GothAck joined #salt
17:33 supersheep joined #salt
17:34 linjan joined #salt
17:37 subsigna_ joined #salt
17:39 patrek joined #salt
17:51 ajw0100 joined #salt
17:54 stoogenmeyer joined #salt
18:02 LyndsySimon joined #salt
18:05 gcfhvjbkn joined #salt
18:08 jahmed joined #salt
18:09 aw110f joined #salt
18:10 retr0h joined #salt
18:15 aw110f_ joined #salt
18:16 hrumph joined #salt
18:16 hrumph hi
18:16 hrumph in a salt runner what is the most appropriate way to log errors?
18:17 leszq joined #salt
18:18 Rockj joined #salt
18:19 hax404 joined #salt
18:19 chiui joined #salt
18:19 iggy same as everything else... use the built-in logging functionality
18:24 LotR joined #salt
18:25 phix joined #salt
18:25 trevorj joined #salt
18:27 quasiben joined #salt
18:27 impi joined #salt
18:28 otter768 joined #salt
18:31 Guest36321 joined #salt
18:34 hrumph iggy ok i'm using logging.error for now...
18:34 hrumph should i be using the salt logs?
18:34 iggy runners run in the master context
18:34 linjan joined #salt
18:35 iggy so the logs will be intermingled with the normal master log
18:35 armguy joined #salt
18:36 hrumph iggy ok well that's how it will be i don't know if this is a good or bad thing
19:02 dimeshake joined #salt
19:02 leszq joined #salt
19:02 JlRd joined #salt
19:08 chiui joined #salt
19:09 hrumph waht version of python does the salt runner use?
19:09 iggy the system version (or the same version that salt would use)
19:09 iggy salt-run --versions
19:10 hrumph 2.7.10 thanks
19:10 hrumph fedora has python3 also installed
19:11 iggy salt doesn't run under python3 yet
19:11 geekatcmu python3 is a lot like perl6: until everybody is on-board, it's hard to use.
19:12 iggy they've made a lot of strides toward py3 compat, but not qute there
19:16 hrumph ok np
19:16 hrumph i am new to python
19:16 hrumph and salt...
19:16 hrumph salt's cool python is meh
19:17 hrumph salt should have used haskell :)
19:17 hrumph that would have been awesom
19:18 iggy no comment
19:25 GothAck joined #salt
19:28 lala joined #salt
19:32 MatthewsFace joined #salt
19:40 cilkay Hello. I'm using SaltStack to configure a Debian VM and in the process, setting the IP address and hostname of the machine based on an external salt config file. I can change both without having to reboot by restarting networking. However, the login console doesn't reflect the new hostname until I hit return/enter. Is there a way to update the login console from salt?
19:51 Ph-x joined #salt
19:52 voileux joined #salt
19:55 giantlock joined #salt
19:58 geekatcmu yes, because building GHC is SO MUCH FUN.
19:59 GothAck joined #salt
20:04 Mate cilkay: at least on ubuntu restarting the tty1 service (or more generally `killall login`) might work
20:05 cilkay Thanks. I used "pkill agetty" and that worked.
20:09 sectionme joined #salt
20:23 otter768 joined #salt
20:29 leszq joined #salt
20:33 MatthewsFace joined #salt
20:44 JDiPierro joined #salt
20:55 dopesong joined #salt
20:56 dimeshake joined #salt
21:03 dopesong_ joined #salt
21:08 clintberry joined #salt
21:11 napsterX joined #salt
21:13 sgargan joined #salt
21:13 leszq joined #salt
21:13 sectionm1 joined #salt
21:16 SubOracle joined #salt
21:16 pcdummy joined #salt
21:16 pcdummy joined #salt
21:29 sgargan joined #salt
21:29 sectionme joined #salt
21:36 JDiPierro joined #salt
21:43 sgargan joined #salt
21:49 dimeshake joined #salt
21:50 cmb joined #salt
22:02 dimeshake joined #salt
22:10 dimeshake joined #salt
22:18 ajw0100 joined #salt
22:20 MatthewsFace joined #salt
22:26 sgargan joined #salt
22:27 desposo joined #salt
22:30 dimeshake joined #salt
22:34 otter768 joined #salt
22:35 leszq joined #salt
22:41 guideX joined #salt
22:43 otter768 joined #salt
22:43 guideX left #salt
22:48 prwilson left #salt
22:48 joeto1 joined #salt
22:55 aparsons joined #salt
23:00 MatthewsFace joined #salt
23:04 subsignal joined #salt
23:05 Nazca__ joined #salt
23:09 amcorreia joined #salt
23:10 cilkay I see "salt '*' service.restart <service name>" in the docs here: <http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.systemd.html#salt.modules.systemd.restart> but I don't know how to structure that in a .sls file. Does anyone have an example they can share?
23:11 JDiPierro joined #salt
23:12 whytewolf cilkay: service.running with a watch for what you want ut to trigger a restart
23:12 supersheep joined #salt
23:12 cilkay hostname change
23:13 whytewolf do you have a sls to change the hostname?
23:13 whytewolf cilkay: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html#module-salt.states.service
23:14 cilkay I have a function in the same .sls, update-hostname, which uses cmd.run hostname {{ grains['hostname'] }}
23:16 cilkay I can have it watch /etc/hostname, since I'm also rewriting that.
23:16 whytewolf that would be best.
23:19 catpiggest joined #salt
23:31 lude joined #salt
23:31 mschiff joined #salt
23:31 mschiff joined #salt
23:32 TOoSmOotH joined #salt
23:46 leszq joined #salt
23:55 JDiPierro joined #salt
23:56 cilkay joined #salt
23:57 cilkay Are the various scripts in top.sls executed sequentially or are they executed asynchronously? Based on what I'm seeing on the console, I think it's the latter.

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