Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-06-15

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

All times shown according to UTC.

Time Nick Message
00:08 NightMonkey joined #salt
00:12 antpa joined #salt
00:14 Lionel_Debroux joined #salt
00:21 Lee- joined #salt
00:22 nmadhok joined #salt
00:24 teryx510 joined #salt
00:34 abednarik joined #salt
00:40 mapu joined #salt
00:44 subsignal joined #salt
00:45 flowstate joined #salt
00:46 paydro joined #salt
00:47 subsigna_ joined #salt
00:47 subsignal joined #salt
01:01 edrocks joined #salt
01:07 iceyao joined #salt
01:11 Nahual joined #salt
01:13 fannet_ joined #salt
01:15 jwang joined #salt
01:26 Lionel_Debroux joined #salt
01:30 mapu joined #salt
01:30 hasues joined #salt
01:30 hasues left #salt
01:32 nmadhok joined #salt
01:37 dfinn joined #salt
01:38 gngsk joined #salt
01:46 flowstate 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.0 | 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:54 haaj joined #salt
01:54 catpiggest joined #salt
01:57 B1nny joined #salt
02:00 PeterO joined #salt
02:06 nmadhok joined #salt
02:07 mapu joined #salt
02:16 rem5 joined #salt
02:16 mapu joined #salt
02:20 eightyeight joined #salt
02:29 eightyeight joined #salt
02:32 JPT joined #salt
02:33 writtenoff joined #salt
02:34 iceyao joined #salt
02:38 evle joined #salt
02:46 flowstate joined #salt
02:54 tuxx joined #salt
02:56 haaj joined #salt
03:02 fannet_ joined #salt
03:05 Vishvendra joined #salt
03:09 ageorgop joined #salt
03:10 antpa joined #salt
03:11 iceyao joined #salt
03:11 Vishvendra joined #salt
03:12 iceyao_ joined #salt
03:12 mohae_ joined #salt
03:18 paydro joined #salt
03:19 paydro joined #salt
03:38 favadi joined #salt
03:45 flowstate joined #salt
03:55 antpa joined #salt
03:57 iceyao joined #salt
03:57 haaj joined #salt
04:04 edrocks joined #salt
04:08 Edgan joined #salt
04:10 rem5 joined #salt
04:16 SpX joined #salt
04:25 kuromagi joined #salt
04:27 macheck joined #salt
04:39 macheck left #salt
04:40 macheck joined #salt
04:41 aharvey joined #salt
04:41 west575 joined #salt
04:46 flowstate joined #salt
04:50 fannet_ joined #salt
04:55 aharvey joined #salt
04:58 calvinh joined #salt
04:58 haaj joined #salt
05:07 jamesp9 joined #salt
05:11 rdas joined #salt
05:13 DarkKnightCZ joined #salt
05:18 FreeSpencer joined #salt
05:18 FreeSpencer joined #salt
05:19 cliluw joined #salt
05:22 impi joined #salt
05:24 mohg joined #salt
05:30 _JZ_ joined #salt
05:33 kshlm joined #salt
05:38 Ayo_ joined #salt
05:40 netcho joined #salt
05:41 mohg joined #salt
05:42 favadi joined #salt
05:44 flowstate joined #salt
05:48 whaity joined #salt
05:48 iceyao_ joined #salt
05:56 kawa2014 joined #salt
05:58 slav0nic joined #salt
06:00 haaj joined #salt
06:02 felskrone joined #salt
06:03 ivanjaros joined #salt
06:07 edrocks joined #salt
06:07 nidr0x joined #salt
06:14 Rumbles joined #salt
06:14 nidr0x joined #salt
06:20 nidr0x joined #salt
06:23 atrav joined #salt
06:25 Miouge joined #salt
06:27 punkoivan joined #salt
06:27 hlub what is the best way to specify a state that only check whether a directory exists (does not attempt to create one)? I'd like to require (or prereq) this from other states.
06:27 blue joined #salt
06:28 punkoivan joined #salt
06:29 punkoivan joined #salt
06:30 jamesp9 hlub, is the state "file.exists" what you are looking for ?
06:33 babilen hlub: What are you trying to achieve with it?
06:34 Ayo__ joined #salt
06:37 kshlm joined #salt
06:37 hlub babilen: I want my SLS to execute backup if and only if the root directory for the backups exists.
06:38 babilen But you don't want to create that directory if it doesn't exists and also not create any backups in that case?
06:38 fannet_ joined #salt
06:41 hlub correct
06:44 favadi joined #salt
06:44 flowstate joined #salt
06:45 KermitTheFragger joined #salt
06:46 babilen Use the aforementioned file.exist with suitable requisites then or "test -d /path/to/the/dir" in "onlyif: ..."
06:47 CeBe joined #salt
06:47 punkoivan left #salt
06:48 fracklen joined #salt
06:53 fracklen joined #salt
06:54 hlub the first option sounds more readable
06:54 manji joined #salt
06:54 favadi joined #salt
06:55 duncanmv joined #salt
07:01 haaj joined #salt
07:05 hlub what if I want to test existence of a package instead? pkg.installed attempts to install the packages. Should I use a state from salt.states.module with a function from salt.modules.pkg?
07:07 k_sze joined #salt
07:07 k_sze A question about upgrading salt-master/salt-minion.
07:08 ivanjaros joined #salt
07:08 k_sze For Debian, the instructions say that I'm supposed to modify the systemd service file.
07:08 favadi joined #salt
07:08 k_sze But if my salt-minion is in a Debian chroot, and it doesn't have a working systemd, what do I do about it?
07:08 k_sze e.g. the Debian chroot in Synology DSM.
07:11 dmaiocchi joined #salt
07:13 iceyao__ joined #salt
07:14 babilen hlub: My impression is that you seem to be working slightly against salt. Salt is based on the idea that you describe what you want and not how to act if certain conditions hold. The latter is, naturally, possible, but a lot of "If the minion has foo installed, also install bar" will make it hard. I'd recommend to just ensure that "foo is installed" if that is what you want or to ensure that "foo is not inst
07:14 babilen alled" if not.
07:16 babilen k_sze: This only affects systemd. The crux is that you want the process that upgrades the salt-minion package to continue running even though the service is restarted during the upgrade. My recommendation would be to not perform the upgrade through salt.
07:18 keimlink joined #salt
07:18 toanju joined #salt
07:18 zhen1 joined #salt
07:19 tercenya joined #salt
07:19 punkoivan joined #salt
07:19 punkoivan left #salt
07:19 nebuchadnezzar joined #salt
07:22 saltuser joined #salt
07:22 saltuser Hi! Is there a way to force salt cache refresh?
07:23 babilen https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.cache.html
07:29 saltuser cache.clear_grains seems to clean stuff up but does not introduce new data
07:30 saltuser saltutil.sync_grains seemed to do the trick
07:30 saltuser Thanks
07:32 dmaiocchi joined #salt
07:34 babilen saltuser: Just out of curiosity: What was that necessary?
07:36 hlub babilen: this kind of checking is quite rare of course. Still, it seems there are some cases where it is necessary, or at least I feel so. I think I'm not alone with this as someone has implemented the file.exists state for instance, or the unless and onlyifs in cmd.run.
07:36 saltuser It seems clearing cache is not necessary at all. sync_grains refreshes data in cache
07:36 babilen hlub: Oh, absolutely.
07:37 babilen saltuser: Err, sorry. I meant: Why was a refresh necessary in the first place?
07:37 saltuser babilen: you can check it yourself. Set your hostname to 127.0.0.1 in hosts file. Then check fqdn_ip4 grain
07:38 babilen Do you do that often?
07:39 saltuser babilen: i've got some stale ipv4 grains and some misconfigured hosts are floating up :)
07:39 babilen Right .. I don't work much with grains for IP addresses, but prefer to use https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.network.html#salt.modules.network.ip_addrs
07:40 babilen Thanks for elaborating though. I was just curious :)
07:41 saltuser babilen: i'm collecting data about minions from cache. Seems more resource friendly than polling directly from minion
07:42 Rumbles joined #salt
07:43 saltuser Now i think regular cache update should be enforced ...
07:46 flowstate joined #salt
07:48 babilen saltuser: My minions report selected data to the salt mine and I get data from there.
07:48 babilen I define a number of mine alias functions for different networks using network.ip_addrs
07:48 saltuser babilen: yeah, that's something for the advance user. I'm not there yet :)
07:48 babilen It would probably be easier
07:49 manji joined #salt
07:49 saltuser babilen: Probably. I'll have to look into that
07:51 babilen https://www.refheap.com/120364
07:52 babilen Just put the former in your pillar, target it everywhere and run mine.update -- You can, naturally, define more fine grained networks using different cidr masks
07:52 manji joined #salt
07:53 babilen saltuser: ^
07:54 fredvd joined #salt
07:55 darvon joined #salt
07:55 saltuser babilen: thanks
08:09 edrocks joined #salt
08:15 kbaikov joined #salt
08:16 deniszh joined #salt
08:24 lero joined #salt
08:26 fannet_ joined #salt
08:32 tpaul joined #salt
08:34 jwang joined #salt
08:37 fannet_ joined #salt
08:41 dkrae joined #salt
08:45 yuhlw joined #salt
08:50 linjan joined #salt
08:51 yuhlw joined #salt
08:51 s_kunk joined #salt
09:04 rrei joined #salt
09:26 dkrae joined #salt
09:32 sjorge joined #salt
09:40 teryx510 joined #salt
09:55 jwang joined #salt
09:58 permalac joined #salt
10:01 Hybrid1 joined #salt
10:11 edrocks joined #salt
10:16 rdas joined #salt
10:19 cyborg-one joined #salt
10:23 mikecmpbll joined #salt
10:26 fannet_ joined #salt
10:27 irctc399 joined #salt
10:27 M-liberdiko joined #salt
10:31 favadi joined #salt
10:48 favadi joined #salt
10:57 teryx510 joined #salt
11:00 om joined #salt
11:01 fannet_ joined #salt
11:02 amcorreia joined #salt
11:02 amcorreia_ joined #salt
11:03 s_kunk joined #salt
11:36 abednarik joined #salt
11:39 evle1 joined #salt
11:40 keimlink joined #salt
11:41 kus joined #salt
11:41 krymzon joined #salt
11:43 jcherndon joined #salt
11:43 jcherndon anyone available to answer some salt-cloud questions?
11:45 DammitJim joined #salt
11:46 felskrone is there an option to only see the failed states on a state.highstate?
11:48 punkoivan joined #salt
11:49 punkoivan joined #salt
11:50 Zerthinmon joined #salt
11:51 punkoivan joined #salt
11:51 Zerthinmon left #salt
11:53 punkoivan joined #salt
11:55 punkoivan joined #salt
11:56 punkoivan joined #salt
11:56 thenut joined #salt
11:57 slav0nic joined #salt
12:01 om joined #salt
12:02 DarkKnightCZ joined #salt
12:08 ivanjaros joined #salt
12:10 Martijn-- joined #salt
12:10 Martijn-- Is there any way to see what sls filepath (virtual and physics on the master) is used when loading a file over the ZeroMQ FS by a minion?
12:10 babilen felskrone: I guess the best is state_output: mixed -- Unfortunately there are still no "summary" functions that list failed states and minions with failures
12:10 babilen Martijn--: See it where?
12:10 Martijn-- salt-master debug logging
12:10 Martijn-- that would be sufficient for me
12:11 babilen All files are relative to file_roots
12:11 DarkKnightCZ joined #salt
12:11 Martijn-- I am trying to figure out what the file structure should be on a svn backend.
12:11 Martijn-- I do have a trunk/ and a branches/base  which hold the same, somehow if i remove either one of them it doesn't seem to work anylonger.
12:12 Martijn-- I can't imagine i need the same file twice in the repo.
12:12 TooLmaN joined #salt
12:12 babilen Doesn't the SVN fs expect those typical SVN directories to be present?
12:12 Martijn-- yes, it does, but even with an empty trunk it doesn't work,
12:13 Martijn-- it also expects the environments to be subfolders of either one of the regular/typical directories.
12:13 Martijn-- so if you have a Base environment, that should exist beneath branches (for example)
12:14 edrocks joined #salt
12:14 Martijn-- I do have this right now, but with an empty trunk it complains it can't find the sls files, even while they are in the branches/base directory
12:15 babilen Conceptionally there shouldn't be a difference between trunk and branches/base, should there?
12:15 Martijn-- true
12:16 babilen In fact your shouldn't need branches/base as that is simply trunk
12:16 Martijn-- I agree on that also
12:16 Martijn-- In fact a branch should only representate a specific revision of the trunk
12:16 babilen But you said that if you remove branches/base that it won't serve the file from trunk (and vice versa) ?
12:16 punkoivan joined #salt
12:16 Martijn-- in fact a specific major revision
12:17 Martijn-- atleast it didn't do that earlier today.
12:17 Martijn-- I switched workingspaces with home to work more in silence and focus on this.
12:17 babilen I'd consider that a bug, but I haven't had to work with SVN for quite a while now. Luckily most projects switched to git and I've managed with git-svn in the interim.
12:18 babilen There might be a perfect reason for that behaviour, but it doesn't feel right
12:18 punkoivan joined #salt
12:19 west575 joined #salt
12:19 Martijn-- I will spend some more time troubleshooting, writing down and reproducing the issue
12:19 babilen Cool, ta
12:20 punkoivan joined #salt
12:21 punkoivan joined #salt
12:23 punkoivan joined #salt
12:24 nethershaw joined #salt
12:30 felskrone babilen: taht halped, state_output mixed at least relaxes my scrolling finger a bit, its a lot so scroll with ~650 states + various accumulators with hundreds of lines of text :-)
12:30 felskrone *that helped, no idea what my fingers were doing there :-)
12:31 babilen I know, it is not perfect and I desperately wait for some summary functions that just tell you at the end on which minions states failed
12:31 babilen So .. just executed this on 1k minions .. lets see if I spot anything red .. scroll .. scroll .. ;)
12:32 Electron^- joined #salt
12:32 punkoivan left #salt
12:33 muep joined #salt
12:33 numkem joined #salt
12:37 mikecmpbll joined #salt
12:37 garphy joined #salt
12:37 nixhed joined #salt
12:41 XenophonF :)
12:44 gh34 joined #salt
12:44 teryx510 joined #salt
12:47 XenophonF i tend to use json output and look for errors using jshon and friends
12:49 teryx510 joined #salt
12:50 fredvd joined #salt
12:53 fredvd joined #salt
12:53 babilen XenophonF: That's a good idea
12:54 babilen But still, salt should make this easier and more approachable
12:54 XenophonF sometimes it makes me wish there was a powershell port to unix
12:55 lorengordon joined #salt
12:56 DarkKnightCZ joined #salt
12:57 teryx510 joined #salt
12:58 teryx510 joined #salt
12:58 tuxx hey guys... i want to use this:
12:58 tuxx https://docs.saltstack.com/en/latest/ref/states/all/salt.states.apache.html
12:59 tuxx but i have two directories so if i do Directory: this: /var/www/html/dynamic, Directory: this: /var/www/html/static i get  Conflicting ID 'Directory'
12:59 tuxx not sure how to solve that?
12:59 babilen Use unique IDs for each state
12:59 tuxx babilen: i know that
13:00 tuxx babilen: how
13:00 tuxx The variable this is special and signifies what should be included with the above word between angle brackets (<>).
13:00 babilen If you were to paste your SLS to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … we might suggest something more specific
13:00 edrocks joined #salt
13:01 babilen Are you sure that the state supports multiple Directory entries?
13:01 tuxx https://www.refheap.com/120371
13:01 tuxx babilen: i hope so.. because i need it.. its a super common usecase for apache configs anyway
13:02 bx2 joined #salt
13:02 west575_ joined #salt
13:03 babilen tuxx: Try using multiple list elements for them
13:04 tuxx what do you mean by that?
13:04 babilen - Directory .. - Directory
13:04 babilen I have no idea what that does, but *maybe* it just does the right thing
13:04 dfinn joined #salt
13:05 saltuser joined #salt
13:05 rem5 joined #salt
13:05 tuxx nope .
13:05 tuxx :(
13:06 tuxx i'll try: Directory bla1:, Directory bla2: ?
13:06 ferbla joined #salt
13:07 babilen tuxx: That would, presumably, generate entries with <Directory bla1>
13:08 babilen You could adjust a template such as https://github.com/saltstack-formulas/apache-formula/blob/master/apache/vhosts/standard.tmpl to your needs
13:08 subsignal joined #salt
13:09 tuxx babilen: well... i think i solved it:
13:09 tuxx Directory docroot: this: ''
13:09 squishypebble1 joined #salt
13:09 tuxx oh no :(
13:09 tuxx crap</Directory /usr/share/django-rest/rest>
13:09 tuxx *sigh*
13:10 tuxx is yaml case sensitive? :)
13:10 XenophonF hah
13:10 XenophonF yes
13:10 tuxx or maybe: Directory : vs Directory:
13:11 subsigna_ joined #salt
13:12 babilen tuxx: I don't think that you will beat that state into submission .. it does some very basic data munging based on dictionary keys (which have to be unique)
13:12 tuxx babilen: how effin.. annoying :)
13:12 babilen I have no idea why they thought that state would be a good idea to be honest
13:13 tuxx babilen: i got it to do what i want with directory: vs DIrectory:
13:13 babilen What a beautiful and idiomatic solution
13:13 babilen ffs
13:13 babilen :)
13:14 sagerdearia joined #salt
13:15 electron- joined #salt
13:16 AndreasLutro hrm, my clients are having a lot of SaltReqTimeoutError: Message timed out
13:17 AndreasLutro and needing to restart the minion to make it reconnect :/
13:20 dyasny joined #salt
13:20 babilen AndreasLutro: Just out of a sudden?
13:21 babilen The times we ran into this it was due to some of the networking people fiddling with the network and messing up the MTU
13:22 Micromus AndreasLutro: Is there anyone in stavanger actually using salt?
13:23 Micromus lol, I read clients as in business clients, not salt minions :P
13:23 garphy joined #salt
13:24 AndreasLutro sorry, poor wording :P
13:24 babilen That's when I decided to terminate most of my clients
13:24 AndreasLutro babilen: haven't kept close track, probably been a while
13:24 AndreasLutro but I thought salt would just retry the connection after a while
13:25 fredvd joined #salt
13:25 babilen The times it happened here I used salt-ssh to restart the minions
13:26 babilen They didn't "heal" even after the MTU issue had been resolved for a while
13:26 noraatepernos joined #salt
13:26 AndreasLutro I'd rather the salt minion just exit after X retries so that systemd can restart it
13:26 AndreasLutro in fact that's what I thought "auth_tries" was for
13:31 permalac Hello guys, is it possible to use salt on windows clients without installing the minion client?
13:35 komputes_ joined #salt
13:36 flowstate joined #salt
13:37 btorch joined #salt
13:39 perfectsine joined #salt
13:42 hasues joined #salt
13:42 SWA hi, i'm writing a custom grain and i need to retrieve the 'id' grain in order to construct an URL, anyone can point me to an example code?
13:43 mapu joined #salt
13:44 babilen SWA: You don't have access to __grains__ in custom grains
13:44 SWA babilen: yeah it seems :) what's the best approach?
13:44 AndreasLutro try __opts__['id'] instead
13:45 SWA ok
13:45 babilen https://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html documents which dunder dicts are available where
13:45 SWA awesome, thx guys
13:46 iceyao joined #salt
13:49 jcherndon How do I ask a question on salt's github?
13:50 babilen Which question?
13:51 jcherndon any question, don't know if it needs to have an issue opened for it yet, want to find out if the question has been asked first
13:51 jenastar joined #salt
13:51 west575 joined #salt
13:52 babilen Issue would be the way, but then there are better places to ask questions (here, mailing list, stackexchange, ...)
13:53 jcherndon ok
13:54 jcherndon does anyone here know about salt-cloud profiles?
13:56 AndreasLutro ask a more specific question
14:02 jcherndon I would like to know if it's possible to set a vm's mac address during the salt-cloud provisioning so it picks up a specific IP address from an DHCP server
14:02 jcherndon I've tried various iterations within the cloud profile, but I don't see the mac address change
14:02 AndreasLutro depends on whether the driver you're using allows it
14:03 jcherndon using salt 2015.5.8
14:03 mpanetta joined #salt
14:03 jcherndon using vmware driver
14:03 mage_ is it possible to apply a state to a set or machines, but only on half of them at once ?
14:04 jcherndon mage_: I've heard of a batch switch in the commands
14:04 mage_ let me check ..
14:04 jcherndon -b
14:04 perfectsine_ joined #salt
14:05 mage_ excellent, thank you
14:08 AndreasLutro jcherndon: doesn't look like it
14:08 Muchoz joined #salt
14:14 Martijn-- I am wondering, when i want to cross reference states in a multi environment, how can i make sure that the requirements are being targetted in the environment where the state file resides?
14:15 Martijn-- i.e. i have a production environment and a base, in my top.sls from prod i include: - base: openssh; In base i have openssh that requires another state but that ain't in prod, so it should load it from base. But instead it gives me an error.
14:16 ajv joined #salt
14:18 AndreasLutro last time I tried environments and ran into this, I concluded that it's not possible
14:18 Martijn-- nevermind
14:18 Martijn-- just made an incomplete update on identifiers in the state file
14:18 Martijn-- the require pointed to an nolonger existing package id
14:19 Martijn-- and that is a valid error worth ofcourse
14:19 flowstate joined #salt
14:21 jcherndon AndreasLutro: so then I should submit a ticket or issue to see if editing the mac address during cloud provisioning can be added?
14:22 AndreasLutro jcherndon: yeah sure
14:23 kaptk2 joined #salt
14:24 mohae joined #salt
14:24 hasues left #salt
14:24 jcherndon thanks.
14:25 Muchoz_ joined #salt
14:26 jcherndon Another question about salt-cloud. I've been trying to place provisioned vms into different folders on the datacenter but can only get down 1 level. How do can I tell it to place vm in a subdirectory?
14:29 arnaud joined #salt
14:29 arnaud Hello! Is that me or the document about master job cache is incomplete? https://docs.saltstack.com/en/latest/topics/jobs/external_cache.html
14:30 arnaud no returner configuration and so on..
14:30 Rumbles I'm trying to understand how to use the iptables state, the documentation seems a bit weird, there's a load of examples at the top, then at the bottom the docs don't refer toa  lot of the variables specified in the examples....
14:31 dfinn joined #salt
14:31 Rumbles I want to create a rule that allows traffic on a range of '10.26.20.31-10.26.20.59'
14:31 AndreasLutro Rumbles: that's because most of them correspond 1:1 to command line arguments to iptables
14:32 skeebump joined #salt
14:32 Rumbles AndreasLutro, most of the examples?
14:33 AndreasLutro most of the arguments
14:34 Rumbles oic
14:35 Rumbles so, can you just use all of the iptables flags?
14:35 Rumbles I want a source range
14:35 Rumbles which is --src-range
14:35 Rumbles but that doesn't appear in the docs
14:37 AndreasLutro looks like that one isn't handled properly... you can use the module function iptables.build_rule to test things usually
14:38 AndreasLutro open an issue for it
14:38 edrocks joined #salt
14:40 noraatepernos joined #salt
14:40 amcorreia joined #salt
14:40 amcorreia_ joined #salt
14:41 Rumbles sorry I was just reading the docs for iptables.build_rule, I'm still not clear what it is for AndreasLutro
14:43 AndreasLutro when you use the iptables.append state, almost all the arguments are passed through to iptables.build_rule to build the command line argument - for example:
14:44 AndreasLutro vagrant@orch:~$ sudo salt-call iptables.build_rule connstate=NEW sport=1234 dport=2345
14:44 AndreasLutro local: -m state --state NEW --dport 2345 --sport 1234
14:45 fleaz joined #salt
14:45 fleaz Hi everyone.
14:47 fleaz Short question: Did the output behaviour change in a recent version? when i run highstate on a fresh machine i get the output not until everything finished. afaik i got the output "live" earlier whiel runnign a state
14:48 hexa- fleaz: local vs. master run maybe?
14:48 fleaz hexa-: nope, everthing run from master
14:48 fleaz maybe it's just a wrong memory in my head ;)
14:49 _JZ_ joined #salt
14:50 sagerdearia joined #salt
14:50 corichar joined #salt
14:51 komputes_ joined #salt
14:51 whitenoise joined #salt
14:51 keltim joined #salt
14:52 Rumbles does anyone know whether you can have an include in your top file?
14:54 Rumbles AndreasLutro, I am having no luck with using matching at all, unless my understand of how this works is wrong (which is likely)
14:54 Rumbles running: sudo salt 'hostname' iptables.build_rule filter INPUT match=state state=NEW
14:54 Rumbles I get     -m state
14:54 Rumbles I would expect: -m state --state NEW
14:55 Rumbles am I doing this wrong?
14:58 arnaud Hello! Is that me or the document about master job cache is incomplete? https://docs.saltstack.com/en/latest/topics/jobs/external_cache.html
15:00 Rumbles .... what's missing?
15:04 arnaud well, no returner configuration?
15:04 arnaud oh I misread steps..
15:04 arnaud nvm
15:05 arnaud So for a master job cache, I have to change something on minions
15:05 Ayo_ joined #salt
15:05 arnaud sound weird to me
15:06 arnaud "add the returner configuration settings to the Salt Minion configuration file for the External Job Cache, or to the Salt Master configuration file for the Master Job Cache"
15:06 arnaud ok ok
15:06 arnaud I need sleep
15:09 illern joined #salt
15:10 debian112 joined #salt
15:16 slimmons If I want to use variables in my states, but I don't know what those variable values will be until run time, is there a way to set the jinja variables then?  Like, maybe pass them in with the salt command, or is setting them as an environment variable at runtime the only way?
15:16 slimmons is there a way I'm not thinking of
15:17 flowstate joined #salt
15:18 noraatepernos joined #salt
15:19 Rumbles could you explain the context a bit more?
15:22 slimmons Yes, let's say I have a UI, and I'm going to define some variables in it, and when I hit a run button, I want to run a salt state, with the variables defined in the UI as values inside of one of my init.sls files
15:23 slimmons I'm still noob level, so there's probably a graceful way to do this, that I'm not aware of
15:23 jcherndon Can I set a network mac address with salt?
15:23 slimmons but I'm using salt to configure and run several services, and I'm wanting to add a frontend
15:24 slimmons jcherndon: which OS?
15:24 ageorgop joined #salt
15:25 Rumbles possibly save the info from the ui to a pillar, and reference the pillar in your state files slimmons  ?
15:25 slimmons jcherndon: I'm not the definitive resource on this, but I'd say yes, for sure
15:25 jcherndon centos7
15:25 jcherndon ok, how then?
15:26 slimmons well, off the top of my head, you could just run the command to change the mac address using cmd.run
15:26 slimmons not sure exactly what you're doing, so hard to say
15:26 slimmons or
15:26 slimmons if you do it in your config file
15:26 slimmons you could use file.managed to move that config file
15:27 slimmons the second method is better probably.  https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html
15:27 slimmons that way you can change anything you want with the network later as well
15:27 slimmons Rumbles: Thanks, I'll look into that.  I can't think of why that wouldn't work
15:28 Rumbles gl :)
15:29 hasues joined #salt
15:29 JohnnyRun joined #salt
15:29 jcherndon thanks. I was also wondering if it were possible to do so during salt-cloud provisioning
15:29 garphy joined #salt
15:30 edrocks joined #salt
15:32 rem5 joined #salt
15:34 PeterO joined #salt
15:35 perfectsine joined #salt
15:35 eriko_ joined #salt
15:44 hasues left #salt
15:52 CeBe joined #salt
15:54 komputes_ joined #salt
16:04 druonysus joined #salt
16:10 bltmiller joined #salt
16:11 iggy running salt at the start of a UI sounds like a terrible waste of time
16:13 iggy !salt states.network
16:13 saltstackbot https://docs.saltstack.com/en/latest/ref/states/all/salt.states.network.html
16:13 iggy jcherndon: ^
16:16 Rumbles I don't see any mention of hardware addressing in there iggy
16:17 Rumbles I was going to suggest that page but I checked it and didn't see mention of mac addresses
16:19 aharvey joined #salt
16:21 woodtablet joined #salt
16:22 gngsk joined #salt
16:24 iggy indeed, but the rh_ip module that it calls does have support for setting hwaddr
16:24 iggy and since the state just passes through kwargs (virtually) unchanged
16:24 iggy ...
16:25 iggy anyways, it's worth a try
16:27 gngsk joined #salt
16:28 pzipoy joined #salt
16:31 edrocks joined #salt
16:31 slimmons iggy: I have a pre-existing system, and they were using another software to manage the states of the servers, and it sucks.  They also have all these random scripts running around doing things, and I figured since I was rewriting some stuff in salt, might as well replace their scripts too.  It's definitely not the best way to do it, but it'll definitely help me get to know salt better
16:32 murrdoc joined #salt
16:34 lero joined #salt
16:35 west575_ joined #salt
16:35 iggy it just seems like adding a couple of seconds to the startup of a UI is bound to piss some people off
16:38 keltim joined #salt
16:39 fer_bla joined #salt
16:39 slimmons oh, it doesn't run at startup, it would only execute the states on a "run states" button push
16:40 slimmons but yeah, adding time to any ui drives people crazy
16:40 subsignal joined #salt
16:40 slimmons but I also work IT, so frustrating these people is also kind of my job
16:40 slimmons I may just add a sleep timer at startup
16:41 Edgan joined #salt
16:43 pzipoy joined #salt
16:51 toastedpenguin joined #salt
16:51 writtenoff joined #salt
16:52 jwang joined #salt
16:57 dfinn joined #salt
16:59 squishypebble joined #salt
17:00 west575 joined #salt
17:01 faeroe_ joined #salt
17:01 mikecmpbll joined #salt
17:03 ageorgop joined #salt
17:03 linjan joined #salt
17:05 djgerm left #salt
17:05 amcorreia joined #salt
17:05 _JZ_ joined #salt
17:05 amcorreia_ joined #salt
17:09 faeroe_ joined #salt
17:13 abednarik joined #salt
17:15 PeterO joined #salt
17:18 TyrfingMjolnir joined #salt
17:18 Electron^- joined #salt
17:19 bltmiller joined #salt
17:20 west575_ joined #salt
17:23 slimmons I have this happen fairly frequently when I'm testing new stuff.  I have a master, with a single minion, and after a day or two, when I run something like salt 'minion1' test.ping, the minion returns 2 or more times.  Like right now, no matter what command I run, the minion returns 4 times.
17:23 jwang joined #salt
17:23 slimmons if i stop the salt-minion, it returns 3 times instead of 4 lol
17:24 slimmons i think rebooting it has fixed it every time.
17:24 jfindlay slimmons: you have multiple minion daemons running on your system
17:25 slimmons What could I be doing incorrectly?
17:25 jfindlay I'm not sure, but having multiple minions will cause problems
17:27 slimmons yeah, it looks like they were probably spun up around the same time I was running salt-minion -l debug
17:27 slimmons I'm probably using debug incorrectly, gonna have to look into that
17:28 davidhoude joined #salt
17:33 lero joined #salt
17:34 gngsk you probably want salt-call -l debug
17:35 gngsk afaik salt-minion -l debug is for debugging the actual minion, not the state
17:36 mikecmpbll joined #salt
17:36 slimmons thx
17:39 felskrone joined #salt
17:39 jfindlay salt-call does everything salt-minion will do, but will exit when it's work is done
17:40 jwang joined #salt
17:47 wendall911 joined #salt
17:47 west575 joined #salt
17:47 nate_c joined #salt
17:48 jenastar joined #salt
17:51 west575_ joined #salt
17:52 slimmons yep, that's where my mistake was for sure, thanks!
17:57 jfindlay nice
17:57 jfindlay glad you got it figured out
17:58 fracklen joined #salt
17:59 cyborg-one joined #salt
18:00 DanyC joined #salt
18:01 flowstate joined #salt
18:01 nidr0x joined #salt
18:02 ageorgop joined #salt
18:07 mpanetta joined #salt
18:07 aharvey joined #salt
18:07 ahammond @jfindlay any news on .1? I have management breathing down my neck and we're at the point of running production off git, which does not look good.
18:08 DanyC anyone here who used http.query module ? i have a json file which is formatted and which works when i'm posting via curl but using http.query module it fails. i found out that if i do set decode_type=json s'thing is changed as per https://github.com/saltstack/salt/blob/develop/salt/utils/http.py#L604
18:08 DanyC why is there a need to convert to string the json file which is already pre-formatted? note w/o defining the decode_type it doesn't work either
18:09 jfindlay ahammond: should be going live now
18:09 murrdoc joined #salt
18:10 ahammond jfindlay awesome! Thanks so much! virtual beer for the whole team!
18:10 ahammond DanyC I use it in one of my execution modules, let me take a look
18:12 DanyC ahammond: looking fwd as i've followed exactly the same example https://github.com/saltstack/salt/issues/31122 but as said my app fails to validate the request body due to the fact that the json is conveter to str
18:12 saltstackbot [#31122]title: data_file (and maybe headers_file) in http.query not rendering  | I'm on : ...
18:14 abednarik joined #salt
18:16 ahammond DanyC https://gist.github.com/ahammond/8eb0bf677b22689af59a64d848c901e9
18:16 DanyC joined #salt
18:17 ahammond DanyC that's code that's currently working in production
18:17 DanyC ahammond: the one in the issue i posted ?
18:22 Joe630 Hi all, I asked on the mailing list a question about SSL and winrm - anyone lend a hand?  https://groups.google.com/forum/#!topic/salt-users/w-pr9II4YBM
18:29 west575 joined #salt
18:32 deus_ex joined #salt
18:36 Dejan joined #salt
18:37 Guest53204 Hello. I am setting up Salt enviroment and are trying to do setup SaltPad
18:37 Guest53204 What shold I use, cherry or tornado?
18:38 Rumbles joined #salt
18:39 subsignal joined #salt
18:40 aharvey joined #salt
18:40 subsign__ joined #salt
18:43 mikecmpbll joined #salt
18:45 jwang joined #salt
18:46 sagerdearia joined #salt
18:58 jenastar joined #salt
18:58 murrdoc raek
18:59 dmaiocchi joined #salt
19:01 _________ joined #salt
19:02 Rumbles joined #salt
19:03 bltmiller joined #salt
19:05 s________ joined #salt
19:10 west575_ joined #salt
19:15 whaity joined #salt
19:18 manji joined #salt
19:18 abednarik joined #salt
19:25 ivanjaros joined #salt
19:27 peters-tx joined #salt
19:28 markizano joined #salt
19:29 markizano nobody's ever made a gtksourceview XML configuration for SLS files ?
19:29 markizano so gedit/pluma can enjoy colors in SLS files
19:30 deniszh joined #salt
19:32 Miouge joined #salt
19:35 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
19:38 felskrone joined #salt
19:40 _________ joined #salt
19:43 aharvey joined #salt
19:44 Electron^- joined #salt
19:45 nmadhok joined #salt
19:46 aasirc joined #salt
19:48 manji joined #salt
19:51 jmesquita joined #salt
19:51 jmesquita left #salt
19:51 jmesquita joined #salt
19:53 flowstate joined #salt
19:57 lorengordon joined #salt
20:06 Muchoz joined #salt
20:07 flowstate joined #salt
20:08 bltmiller joined #salt
20:13 felskrone joined #salt
20:17 nidr0x joined #salt
20:18 PeterO joined #salt
20:18 MindDrive So this is a bit of a challenge to find the right discussion for it, but here goes... I'm looking to make a large upgrade of Salt in my company's infrastructure from 2015.5.0 to 2016.3.x (have 0 right now, may just bump up to 1).  The catch is we currently use Salt only for remote execution; we have a very large Puppet infrastructure in place for configuration management.
20:19 MindDrive I'm trying to find a way to update the puppet-salt module (so we have support for the latest configs) without destabilizing any of our environments while trying to make things work on a smaller scale (since standalone server plus a few upgraded clients for testing), and wondering if anyone's done this sort of thing before.
20:22 felskrone joined #salt
20:24 ahammond MindDrive, absolutely what ever you do, don't go with .0
20:24 ahammond MindDrive we're having all kinds of performance and stability issues with it. .1 seems to resolve some of these.
20:24 nidr0x joined #salt
20:26 MindDrive ahammond: Thanks for the heads up.  We're having the same issues with the 2015.5.0 (foolish me for going with the initial release, but our previous release was even behaving worse); I would just bump to 2015.5.10 for now, but I would like to not lag too far behind, either.
20:29 Shirkdog joined #salt
20:30 babilen MindDrive: 2015.8.10 is pretty solid -- We are holding off upgrading to 2016.3.* for the time being
20:31 MindDrive bablien: I tried to upgrade to 2015.8.x several months ago and hit the same exact issue I'm hitting now; significant configuration changes and our Puppet configuration being very tied into our current version caused the upgrade in our development environment to break very badly.
20:32 MindDrive I need to find a way to isolate the changes (within Puppet) to a small subset of systems so I can test more thoroughly, but given the way Puppet modules work, it is making it challenging.
20:33 babilen Presumably that still holds true for 2016.* though, doesn't it?
20:35 MindDrive Correct.  Anything beyond 2015.5 is going to require some fancy footwork.
20:37 nidr0x joined #salt
20:38 bltmiller speaking of 2015 -> 2016 upgrades, I ran into this one and am able to reproduce https://github.com/saltstack/salt/issues/33709
20:38 saltstackbot [#33709]title: Any/All Salt-SSH invocations in 2016.3.0 Fails with AttributeError: 'module' object has no attribute 'BASE_THORIUM_ROOTS_DIR' | CC @basepi as this is a total road block with salt-ssh on 2016.3.0. We cannot run anything....
20:40 ahammond MindDrive 2015.8.8.2 was awesome for us. 2015.8.10 is also very good.
20:40 felskrone joined #salt
20:44 PeterO_ joined #salt
20:46 flowstate joined #salt
20:47 punkoivan joined #salt
20:47 fredvd joined #salt
20:51 flowstat_ joined #salt
20:54 MindDrive ahammond: I guess I'll back off to 2015.8, then.  Still need to figure out how to make Puppet work, but oh well.  Thanks for the info, folks, much apprecated.
20:54 MindDrive er, appreciated
20:54 djgerm joined #salt
20:55 djgerm is there a way to run a salt state command and expand jinja  on the commandline?
20:57 davidhoude I have a state failing due to a service requirement not being met it seems, but the service and watch file are running/present. Any help is appreciated. http://pastebin.com/hN9fNnUN
20:58 robawt djgerm: not what you're asking, but you can see rendered jinja templates when you run salt-call with debugging:  salt-call -l debug
21:00 djgerm like for example: salt 'test*' cmd.run template=jinja "salt-call network.mod_hostname {{http://grains.id/}}"
21:01 robawt grain isn't going to get called from that, but you can see available grains and search them with the grains object
21:01 mward Partially related, I use this all the time when testing/debugging, from my minions to see what they're actually receiving:
21:01 mward salt-call cp.get_template salt://openssh/auth.sls /dev/stdout jinja dev
21:02 djgerm yeah. and I dont want to run salt-call
21:02 djgerm :)
21:02 djgerm uh… not sure how my grains.id expanded to http://, but you're all smart
21:05 punkoivan joined #salt
21:06 punkoivan joined #salt
21:08 babilen davidhoude: Do you have states for flannel-bootstrap and /etc/sysconfig/docker ?
21:08 babilen (and please use one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … pastebin.com is so horrible)
21:09 onlyanegg joined #salt
21:10 deniszh joined #salt
21:15 abednarik joined #salt
21:19 Rumbles joined #salt
21:21 s_kunk joined #salt
21:22 jwang joined #salt
21:27 s________ joined #salt
21:31 Muchoz joined #salt
21:33 PeterO joined #salt
21:43 cellofellow joined #salt
21:44 cellofellow Is there a way to put a file into an S3 bucket with a state?
21:44 flowstate joined #salt
21:44 shalkie joined #salt
21:50 west575 joined #salt
21:52 andrew_v joined #salt
22:01 jwang joined #salt
22:05 druonysus joined #salt
22:13 punkoivan joined #salt
22:15 iggy yes
22:17 murrdoc si
22:19 djgerm left #salt
22:23 adelcast joined #salt
22:28 mikecmpbll joined #salt
22:29 woodtablet I have a question, i see in some of the formula, this statement: "Salt can't merge pillars". However in various formulas, the jinja maps do do pillar merges of some sort: template-formula/template/map.jinja:  , merge=salt['pillar.get']('template:lookup'))
22:30 danielcb joined #salt
22:34 ahammond woodtablet that's using jinja to merge a pillar into jinja variable
22:37 woodtablet ahh
22:37 woodtablet thanks ahammond
22:40 abednarik joined #salt
22:40 jwang joined #salt
22:41 LeProvokateur joined #salt
22:44 flowstate joined #salt
22:48 iggy and that's not exactly true anymore anyway... salt does support some limited merging of pillar data
22:51 teryx510 joined #salt
22:59 jwang joined #salt
23:02 LeProvokateur joined #salt
23:03 mackripe_ joined #salt
23:04 dh__ joined #salt
23:06 murrdoc that it do
23:06 murrdoc also there is reclass
23:06 TaiSHi_ joined #salt
23:06 murrdoc its the good stuff
23:06 demonkeeper joined #salt
23:07 iamtew_ joined #salt
23:07 patrek_ joined #salt
23:07 iggy__ joined #salt
23:07 tooth_ joined #salt
23:07 oon__ joined #salt
23:07 norii_ joined #salt
23:07 Barbaros1a joined #salt
23:07 khorben_ joined #salt
23:07 Hazelesque_ joined #salt
23:07 kevc_ joined #salt
23:07 douardda_ joined #salt
23:07 jcastle_ joined #salt
23:07 canci_ joined #salt
23:07 ventris_ joined #salt
23:07 hamstah__ joined #salt
23:07 [dee]_ joined #salt
23:07 Ahlee_ joined #salt
23:08 davroman1ak joined #salt
23:08 MikaT_ joined #salt
23:08 chesty_ joined #salt
23:08 mortis_ joined #salt
23:08 the_lale1u joined #salt
23:08 rnts_ joined #salt
23:08 lynxman_ joined #salt
23:08 Joe630 someone (not me I swear) created a key/minion with brackets in the name like myhost[333]
23:08 blue joined #salt
23:08 Joe630 i can't delete it with salt-key!
23:08 dreese_ joined #salt
23:08 mirko_ joined #salt
23:08 MajObvio1sman joined #salt
23:08 _i90rr joined #salt
23:08 jgelens_ joined #salt
23:08 eichiro_ joined #salt
23:08 Joe630 any way to get salt-key to not glob?
23:10 stupidni` joined #salt
23:11 toabi_ joined #salt
23:11 Karunamon|2 joined #salt
23:11 unusedPh- joined #salt
23:11 smkelly_ joined #salt
23:11 JPau1 joined #salt
23:11 s0undt3ch_ joined #salt
23:11 UForgotten_ joined #salt
23:11 dober- joined #salt
23:11 intr1nsic_ joined #salt
23:11 rome_390_ joined #salt
23:11 g3cko_ joined #salt
23:11 ahammond_ joined #salt
23:11 MrPPS joined #salt
23:11 emid_ joined #salt
23:11 dave_leigh joined #salt
23:11 cb_ joined #salt
23:11 garthk_ joined #salt
23:11 MrPPS joined #salt
23:11 invalidexceptio- joined #salt
23:13 sjohnsen joined #salt
23:13 ekkelett joined #salt
23:18 Joe630 salt-key -d myhost?333? worked
23:18 egil_ joined #salt
23:18 SWA joined #salt
23:19 drags joined #salt
23:19 izibi joined #salt
23:19 dimeshake joined #salt
23:19 ecdhe joined #salt
23:19 Ssquidly joined #salt
23:19 asyncsrc1 joined #salt
23:19 scooby2 joined #salt
23:19 mavhq joined #salt
23:19 stopbyte joined #salt
23:19 MaZ- joined #salt
23:20 pcn joined #salt
23:20 jfindlay joined #salt
23:20 rhand joined #salt
23:20 chitown joined #salt
23:20 Veers joined #salt
23:20 marie1972 left #salt
23:25 iggy__ Joe630: for future reference... rm /etc/salt/pki/master/minion/...somewhere
23:27 Joe630 is that all salt-key does?
23:29 teryx510 joined #salt
23:29 abednarik joined #salt
23:30 iggy__ Joe630: afaik
23:31 iggy__ it _may_ do something with cleaning up cached minion data (grains/pillar/etc) used to do targetting
23:42 flowstate joined #salt
23:46 LeProvokateur joined #salt
23:55 yidhra joined #salt
23:57 LeProvokateur joined #salt

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