Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-03-08

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

All times shown according to UTC.

Time Nick Message
00:04 ZiLi0n hal58th thanks, that is what I have, it is service.running with a -sig
00:04 ZiLi0n hal58th_ but it is not blocking for me
00:05 dmaiocchi joined #salt
00:07 drawsmcgraw1 joined #salt
00:08 neevor joined #salt
00:09 edrocks_ joined #salt
00:23 wryfi joined #salt
00:23 wryfi i think i may have run into a bug with salt's handling of apt repo keys
00:24 wryfi i added a pkgrepo.managed for the node v0.12 packages from nodesource
00:24 wryfi the gpg key they use to sign their repo is
00:24 wryfi 68576280
00:24 wryfi which is actually hexadcimal (it just happens not to have any letters in it)
00:25 wryfi but when salt runs, it apparently thinks it's an integer
00:25 wryfi and converts it to hex before calling gpg to get the key from the keyserver
00:25 wryfi "gpg: "0x4166418" not a key ID: skipping"
00:26 wryfi (hex 0x4166418 == 68576280 in decimal)
00:26 dendazen joined #salt
00:27 tweakism interesting.  does it work properly if you wrap it in quotes in the YAML?
00:28 tweakism (YAML would interpret bareword 2345BEEF as a string, but 23456789 as an int)
00:28 wryfi haven't tried that yet, let me see
00:29 wryfi ah tweakism, that does seem to fix it
00:29 wryfi thanks for the tip!
00:30 tweakism you could also prefix it with 0x I think.
00:32 flowstate joined #salt
00:33 abednarik joined #salt
00:34 baweaver joined #salt
00:34 conan_the_destro joined #salt
00:35 akhter joined #salt
00:38 Nazca__ joined #salt
00:41 my50c joined #salt
00:42 zmalone joined #salt
00:43 my50c quick question: if someone can give me some guidance .... in state with jinja templates : is it better to call/set your pillar values in the state or in the template? thanks!
00:43 ajw0100 joined #salt
00:45 hemebond my50c: You don't set pillar values in states.
00:45 my50c i am leaning towards to set the secrets values in the template by calling salt['pillar.get'] and the none scret in a set bla { bla= salt['pillar.get'])
00:45 my50c @hemebond : so i should call them in the template :)
00:45 cliluw joined #salt
00:46 hemebond my50c: I'm not sure what you mean. The only way to fetch a pillar value is via a Jinja template.
00:46 my50c im learing as I go (so far about 2000 lines of salt: s i moving away from puppet) :-)
00:46 highbury joined #salt
00:47 my50c example : tomcat
00:47 hemebond Okay. Yes, you set the value in your pillar files, and then access them using {{ salt['pillar.get']('myval') }} in your state.
00:47 hemebond (or similar)
00:48 my50c that is what i have
00:48 my50c example :  - context:
00:48 my50c tomcat_env: '{{ tomcat_config.tomcat_env }}'
00:48 my50c but  - source: salt://tomcat/{{ config_file }}
00:48 my50c - template: jinja
00:49 my50c wait let me di a better cut and past:-)
00:49 my50c {% from "apps/tomcat/config.jinja" import tomcat_config with context %}
00:49 my50c then
00:49 iggy use gist.github.com
00:49 my50c - context:
00:49 my50c tomcat_env: '{{ tomcat_config.tomcat_env }}'
00:49 my50c tomcat_logdir: '{{ tomcat_config.tomcat_logdir }}'
00:50 my50c i can either do the import in the state file : of cam salt-pillat in the template file : make sense ?
00:50 my50c im looking to make certain things as secur ea possible
00:51 my50c iggy yes i checked github : and see a mix of both ways
00:51 hemebond my50c: iggy meant you should paste your code/example to gist.
00:51 my50c so asking what everyone does :)
00:51 my50c ha sec
00:52 iggy there's not a correct way
00:52 bhosmer_ joined #salt
00:52 iggy do whatever makes sense to you
00:53 iggy I personally hate the obfuscation of doing lookups in one file and passing tons of data around
00:56 my50c https://gist.github.com/anonymous/7f9d67223da2c0aa004a
00:56 my50c if yoo do not mind to take a quick look
00:57 my50c and yes iggy : agree!
00:57 t0m0 joined #salt
00:57 tpaul joined #salt
00:57 my50c hence the question: i just started to use pillar/state/grains about 5 months ago : spo i have a long way to learn :)
00:58 hemebond my50c: If you're going to do pillar lookups like that I don't really see the point of a separate jinja file unless you are setting fallbacks.
00:58 my50c i took this from example I could find : i never made sense...
00:59 my50c so i was thinking wht not call the pillar starigth from the template ?
00:59 hemebond Normally the separate .jinja file is to allow configurations for different contexts, e.g., operating systems.
00:59 my50c no need to do the whole import thing :
00:59 my50c HA!!
00:59 my50c thank you SO much!
01:00 my50c the hardest thing about salt is docs and good example :)
01:00 ZiLi0n joined #salt
01:00 my50c back redoing my states file ;-)
01:00 hemebond I've heard that, though I find the docs to be really good.
01:00 my50c again thank you !
01:00 hemebond np :-)
01:01 jimklo_ joined #salt
01:01 my50c eafter i been working with salt (wrote a bounch grains) i was sold and never want to do puppet :-)
01:01 hemebond my50c: Also my experience :-)
01:02 my50c once Im done i plane to share my grains : all for aww
01:02 hemebond Though I still have to use Puppet daily.
01:02 my50c :-(
01:02 conan_the_destro joined #salt
01:03 my50c the last company salt was use for deployment : so i got use to run.cmd ant salt.cp : never knew about state/pillars
01:03 test joined #salt
01:04 whyteaway my50c: sounds like the last company i left. I fought tooth and nail to try to get the team responsable for salt to actualy use anything but cmd.run and to start using pillars. they were just starting to use states when i finally left them. and were just figureing out pillars.
01:04 ZiLi0n joined #salt
01:08 ZiLi0n hal58th_ does mod_watch blocks until a service is running? and then continues executing the states?
01:08 ajw0100 joined #salt
01:10 my50c whyteaway : yeah : i hear you ...
01:11 jimklo joined #salt
01:11 my50c I can tell you : i know a company that *was* puppet grazy ... the someone introduce salt : saltmaster less : a test with 400 servers (they have > 8000 servers!) and rhey were sold!
01:13 whytewolf I actually don't introduce salt directly in where i work cause of some very stupid rules. I like being able to spend time on it and contrib with out possable patent issues
01:13 my50c my friend that *still* work there : told me that the project was so well received (read sucess) that the whole devops team got a big bonus! *15k!*
01:15 my50c when I joined a company i made sure that they approved that anything I wrote will be freebsd licensed and open sources (unless they too scret) : otherwise I do not want to workj for them...
01:16 whytewolf my50c: yeah. I wish i had that kind of pull. but working for a large bank does have it's advatages
01:16 ZiLi0n when I run highstate from the minion.. is there a way to get a report from the master or how highstate went?
01:16 amcorreia joined #salt
01:16 ZiLi0n I see cache_jobs parameter, but wondering if that is whay I need...
01:18 whytewolf ZiLi0n: not really. there is a dissconnect salt-call is local and works outside of the minion daemon.
01:18 edrocks__ joined #salt
01:19 whytewolf ZiLi0n: that being said you might be able to check the job cache on the master
01:19 baweaver joined #salt
01:19 whytewolf IIRC if you use salt-call the returner is switched to local
01:20 conan_the_destro joined #salt
01:21 my50c whytewolf : i have a friend that works for back : and they doing a proof of concept : puppet (now) nv chef vs salt : so far salt look good he said  : the only things they are still working on it to get sensitive data encrypted in the pillar
01:22 t0m0 joined #salt
01:22 ZiLi0n whytewolf thank you. how do I check the job cache on the master? I have tried salt-run job.active and list the jobs, but don't know how to get a report
01:28 zmalone joined #salt
01:30 flowstate joined #salt
01:31 k_sze[work] joined #salt
01:31 quasiben joined #salt
01:40 cpowell_ joined #salt
01:42 kawa2014 joined #salt
01:43 toastedpenguin joined #salt
01:47 cpowell joined #salt
01:49 dfinn joined #salt
01:53 cpowell joined #salt
01:54 cpowell_ joined #salt
01:55 hemebond ZiLi0n: lookup_jid
01:56 dfinn1 joined #salt
01:57 quasiben joined #salt
01:57 dfinn1 joined #salt
01:57 quasiben1 joined #salt
01:59 dfinn2 joined #salt
02:01 polyidus joined #salt
02:03 racooper joined #salt
02:08 iceyao_ joined #salt
02:08 ZiLi0n hemebond thank you, I have look at it but i think it does not give much info
02:11 hemebond ZiLi0n: What info does it not have?
02:11 hemebond Does your normal output contain all the info you need?
02:12 mdasilva joined #salt
02:18 snc joined #salt
02:19 ZiLi0n_ joined #salt
02:21 ZiLi0n_ Hello, service.running -sig: uses ps -evH correct? don't know why it is not blocking until it find the sig string hehe
02:23 ZiLi0n_ ps -efH
02:24 donmichelangelo joined #salt
02:24 quasiben joined #salt
02:26 baweaver joined #salt
02:27 ageorgop joined #salt
02:27 quasiben joined #salt
02:28 catpigger joined #salt
02:30 flowstate joined #salt
02:30 beardedeagle When provisioning windows servers with salt-cloud, can one assume the connection timeouts are the same as linux?
02:33 bhosmer_ joined #salt
02:33 dfinn joined #salt
02:33 auzty joined #salt
02:33 dfinn1 joined #salt
02:34 dfinn1 joined #salt
02:41 bhosmer_ joined #salt
02:47 t0m0 joined #salt
02:50 justanotheruser joined #salt
02:52 subsignal joined #salt
02:59 akhter joined #salt
03:00 ZiLi0n_ hello, how can I fix in my states the warning: name is an invalid keyword argument.... Your approach will work until Salt Carbon in out.... where is it getting that name keyword? there is no such an argument in my module
03:03 hemebond ZiLi0n_: Are you using a formula?
03:12 neilf__ joined #salt
03:13 malinoff joined #salt
03:15 ZiLi0n_ hemebond, mmm it is a custom module I made
03:16 ZiLi0n_ the module returns a json : name, changes, result and comment
03:20 justanotheruser joined #salt
03:21 hasues joined #salt
03:21 hasues left #salt
03:21 hemebond I would need to see the full error message and the state.
03:21 iceyao joined #salt
03:21 catpigger joined #salt
03:22 tweakism is it because when you do
03:23 tweakism '/etc/password':
03:23 tweakism file.managed:
03:23 tweakism it auto-translates it to
03:23 tweakism file.managed:
03:23 tweakism name: '/etc/passwd'
03:23 hemebond Well, name is a valid parameter there.
03:25 tweakism I was thinking he made his custom state code w/o accounting for it though
03:25 ZiLi0n_ hemebond tweakism yes, that is right! thanks!
03:25 ZiLi0n_ yes, so name it is passed by default, and I didn't have a name parameter in my states script
03:27 ZiLi0n_ cool, I guess that now I can call the states with same name, and do different behavior depending on the name parameter
03:27 ZiLi0n_ thanks!
03:28 overyander joined #salt
03:28 mdasilva joined #salt
03:31 flowstate joined #salt
03:36 jeffspeff joined #salt
03:43 hasues joined #salt
03:45 jeffspeff joined #salt
03:46 ageorgop joined #salt
03:48 dyasny joined #salt
03:48 hasues left #salt
03:49 sarlalian joined #salt
03:52 favadi joined #salt
03:52 stoicOne joined #salt
04:00 tkharju joined #salt
04:01 jeffspeff joined #salt
04:04 akhter joined #salt
04:05 t0m0 joined #salt
04:30 polyidus joined #salt
04:30 bhosmer joined #salt
04:31 flowstate joined #salt
04:36 rdas joined #salt
04:39 sarlalian joined #salt
04:42 sarlalian joined #salt
04:52 ajw0100 joined #salt
04:52 mdasilva joined #salt
04:54 favadi joined #salt
05:02 catpiggest joined #salt
05:02 sauvin joined #salt
05:04 ITChap joined #salt
05:17 euidzero joined #salt
05:21 t0m0 joined #salt
05:22 mdasilva joined #salt
05:29 iceyao joined #salt
05:29 c4rc4s joined #salt
05:31 flowstate joined #salt
05:33 euidzero joined #salt
05:33 iceyao_ joined #salt
05:39 iceyao joined #salt
05:40 cpowell joined #salt
05:46 rdas joined #salt
05:50 sauvin joined #salt
05:50 quasiben joined #salt
05:54 euidzero joined #salt
05:57 darvon joined #salt
06:06 sarlalian joined #salt
06:13 sarlalian joined #salt
06:15 anmol joined #salt
06:16 brianfeister joined #salt
06:19 bhosmer joined #salt
06:20 cyborg-one joined #salt
06:21 iceyao_ joined #salt
06:21 euidzero_ joined #salt
06:25 favadi joined #salt
06:30 flowstate joined #salt
06:40 malinoff joined #salt
06:45 brianfeister joined #salt
06:49 jimklo joined #salt
06:53 jeffspeff joined #salt
07:21 evle joined #salt
07:22 felskrone joined #salt
07:30 felskrone1 joined #salt
07:31 flowstate joined #salt
07:45 jimklo joined #salt
07:52 Glasswalker joined #salt
07:55 freeaks joined #salt
07:56 fracklen joined #salt
07:57 fracklen_ joined #salt
08:07 bhosmer joined #salt
08:13 golauty joined #salt
08:14 golauty hi all
08:15 permalac joined #salt
08:16 golauty i am using the state file.rename in a state file, and when i exectuing the state multiple times, i get "file.xyz has already been moved out of place"
08:16 golauty how can i enforce that it will be done everytime
08:17 golauty ?
08:19 Rumbles joined #salt
08:23 fracklen joined #salt
08:24 fracklen joined #salt
08:27 fooma joined #salt
08:28 akhter joined #salt
08:31 flowstate joined #salt
08:33 cztanu joined #salt
08:33 jhauser joined #salt
08:34 vpm joined #salt
08:46 josuebrunel joined #salt
08:56 geomacy joined #salt
08:58 favadi joined #salt
09:05 atmosx joined #salt
09:10 hemebond iggy: Do you manage the logstash formula or just use it?
09:11 GreatSnoopy joined #salt
09:12 dgutu joined #salt
09:13 kim0 joined #salt
09:17 sarlalia1 joined #salt
09:27 fredvd joined #salt
09:28 denys joined #salt
09:30 flowstate joined #salt
09:34 malinoff joined #salt
09:35 antpa joined #salt
09:40 ronnix joined #salt
09:41 dunz0r Can I do a multiline jinja-expression? This list of packages is becoming a bit long
09:41 dunz0r Like {% set avpkgs = [ "amavis-new", "clamav-daemon", "spamassasin", "libnet-dns-perl", "pyzor", "razor" ] %}, Could I break that in to multiple lines?
09:41 sathya joined #salt
09:41 sathya Hi all
09:41 hemebond dunz0r: http://stackoverflow.com/questions/15168831/how-to-write-a-multiline-jinja-statement
09:42 dunz0r hemebond: Now I feel silly. Probably first google-hit right?
09:42 hemebond dunz0r: Yip :-)
09:42 sathya I am unable to run commands based on minions IP address
09:42 hemebond sathya: Do they have multiple interfaces?
09:43 sathya_ joined #salt
09:44 sathya_ salt -S <ip address> test.ping is retruning an error as no minion match
09:44 sathya_ but if i try to do test.ping based on the hostname, i get the responds
09:44 sathya_ My salt-master version salt 2015.8.3 (Beryllium)
09:44 hemebond sathya_: Do they have multiple interfaces?
09:44 sathya_ nope
09:44 dunz0r sathya_: How are you matching the IP?
09:44 sathya_ single interface with the private Ip and one loopback
09:45 sathya_ single IP address
09:45 sathya_ with /32 segment
09:45 brianfeister joined #salt
09:45 sathya_ example : salt -S 10.0.0.1/32 test.ping
09:46 lempa joined #salt
09:46 hemebond Fails for me too. I've never been able to use IP targetting.
09:46 hemebond Oh wait, it just worked.
09:47 hemebond On the minion with one interface.
09:47 sathya_ For me still it says "No minions matched the target. No command was sent, no jid was assigned."
09:48 hemebond For some reason it only works for one of my minions.
09:49 sathya_ @hemebond: - is your salt-master and minion on same version ?
09:49 hemebond The only different is the working minion only has one non-loopback IP (thought it has two interfaces)
09:50 hemebond sathya_: Not entirely sure, actually. Master says "salt 2015.8.0rc4 (Beryllium)"
09:50 hemebond Working minion: 2015.8.3, semi-working minion: 2015.8.7
09:50 keimlink joined #salt
09:50 s_kunk joined #salt
09:50 s_kunk joined #salt
09:51 ronnix joined #salt
09:51 sathya_ Need to make this thing working
09:51 sathya_ I am doing a automation tool using salt and i need to pass the IP address of a machine as a variable in my script
09:52 sathya_ but for some reason -S option is not responding.... Is there a way to have this checked ?
09:52 hemebond "need to pass the IP address of a machine" what does that have to do with targetting?
09:53 traph joined #salt
09:53 M-MadsRC joined #salt
09:54 hemebond I mean, you can get the minion IP without having to use subnet targeting.
09:54 sathya_ users will input the IP address of a minion ( since they are not sure about the hostname), the user input strinng is captured and passed on to the script to run salt commands
09:54 linjan_ joined #salt
09:55 hemebond Ah I see.
09:55 sathya_ so i need to ensure that, master is able to run the commands based on the minions IP
09:56 sathya_ In the previous version of salt, these command where working fine.....
09:56 sathya_ Not sure why its not working in this version
09:56 sathya_ Is there a way to debug this ?
09:56 hemebond What version are you using?
09:56 bhosmer joined #salt
09:56 sathya_ My salt-master version salt 2015.8.3 (Beryllium)
09:56 sathya_ minions are also the same
09:58 guanophobic joined #salt
10:01 tweakism the code in develop appears to use the ipv6 and ipv4 grains
10:01 tweakism what do you get for:  salt '*' grains.get ipv4
10:01 sathya_ i get all the IPv4 address of the minions
10:02 sathya_ including the loopback
10:08 Nazzy joined #salt
10:09 MadHatter42 joined #salt
10:10 tweakism ok, I'm on 2015.8.5 and it does seem broken
10:10 tweakism https://gist.github.com/pprince/25de5daed54fc98f3f9c
10:10 M-liberdiko joined #salt
10:13 sathya_ ok then are you saying that, i need to upgrade my version
10:13 sathya_ ?
10:13 sathya_ I see the latest as 2015.8.7-1.el6
10:13 tweakism no, it's also broken on my version
10:14 tweakism I dunno about the newest version.
10:15 dgutu joined #salt
10:16 bapometh joined #salt
10:17 sathya_ i did upgraded my salt-master and minion to the latest pack on my test env, still the same
10:18 hemebond It's been broken for quite a while.
10:18 sathya_ Can some one tell us as to why this option is not working or what mistakes are we making
10:18 hemebond I'm reading the code now to see if I can identify any problems (don't hold your breath).
10:21 geomacy joined #salt
10:21 hemebond Ah, okay.
10:23 bapometh left #salt
10:25 hemebond FYI, if you want to match on a subnet, it has to be valid, i.e., end with .0
10:25 SunPowered joined #salt
10:25 hemebond *e.g.,
10:25 hemebond '192.168.56.2/24' does not appear to be an IPv4 or IPv6 address
10:25 hemebond Oh, nevermind.
10:25 hemebond Ignore me.
10:26 hemebond I understood the code then forgot.
10:28 dmaiocchi joined #salt
10:29 sathya_ :)
10:29 hemebond The code looks fine, though it has changed since my master version.
10:30 hemebond I'm still trying to figure out how it gets the grains.
10:31 flowstate joined #salt
10:32 MadHatter42 joined #salt
10:33 hemebond Anyone else running salt-master on Ubuntu?
10:33 tweakism there is an issue for it, jsyk  https://github.com/saltstack/salt/issues/30175
10:33 saltstackbot [#30175]title: Targeting by subnet is not working | Targeting by subnet is not working....
10:34 tweakism nothing useful there though to help
10:34 tweakism hemebond: I'm on debian jessie.
10:35 hemebond tweakism: I suspect this is an Ubuntu build thing. The package shows version 2015.8.7+ds-1 but "salt-master --version" shows salt-master 2015.8.0rc4 (Beryllium)
10:35 tweakism and a bunch of closed duplicates, also.
10:40 tweakism hemebond: interesting.  jsyk if it helps, I do not see the same on jessie, pkg ver = 2015.8.7+ds-1 (newest from saltstack repo), salt-master --version = 2015.8.7
10:42 freeaks joined #salt
10:47 sathya_ @tweakism : i did update the master to the latest version
10:47 sathya_ still the same issue
10:48 tweakism it looks like there has been quite a bit of work touching that recently.
10:49 tweakism it may be fixed when when 2015.8.8 comes out; I can't be sure of that, though.
10:49 tweakism your best bet may be to avoid/work-around using this kind of match
10:49 sathya_ :(
10:50 tweakism perhaps you can set your minion_id's based on IP addr
10:50 sathya_ Thats going to be a problem, users are much comfortable when it comes to IP address rather then hostname
10:50 tweakism or have the users input minion_id's instead of ip addrs (I use FQDN for minion_id)
10:53 hemebond Could your script do an address lookup?
10:53 freeaks joined #salt
10:54 sathya_ nope, thats because of DNS query problem of non-routable domain inside the organistation
10:54 sathya_ so, the linux server need manual DNS entry on the server in order to do the lookup
10:54 hojgaard joined #salt
10:55 tweakism can your app include a map of ipaddrs to minion_id's? :)
10:55 tweakism I suppose it's off-topic, but you should consider making forward/reverse DNS lookups work for your servers.  it's such a nice convenience.
10:55 sathya_ yeh, i know
10:55 sathya_ working on that as well
10:56 sathya_ so, the conclusion is that Targeting Minions based on the IP address will not work until, we get a fix .............................
10:57 tweakism it may be fixed in git, I dunno.  but definitely broke in released versions, yes.
11:02 AonoIwa joined #salt
11:02 AonoIwa hi
11:02 AonoIwa i have a question regarding to pillar files
11:03 AonoIwa i have following pillar file:
11:03 hemebond AonoIwa: Use a gist
11:03 hemebond Don't paste it in here.
11:04 AonoIwa https://gist.github.com/golauty/5d4b6f08ce57d15d2837
11:05 hemebond Looks like a syntax error.
11:05 AonoIwa now i want to reference the filestorage.dir.shared variable
11:05 hemebond You have four spaces of indentation on the second line.
11:06 AonoIwa how many should i have?
11:07 hemebond Two spaces per indentation.
11:07 AonoIwa ok the path seperator is not a problem?
11:07 hemebond Uh, not sure about that.
11:07 hemebond I would probably have quotes around a key name like that.
11:08 AonoIwa i used this
11:08 AonoIwa salt['pillar.get']('serverP360x01:configFiles:server\\configuration\\test\\server.properties:db.default.dir.data')
11:09 hemebond is "serverP360x01" in your actual pillar file?
11:09 AonoIwa yes
11:09 hemebond It's not in the Gist.
11:09 AonoIwa it is a long one :D
11:09 hemebond And your pillar fetch doesn't work?
11:10 AonoIwa empty string
11:10 AonoIwa just nothing
11:10 AonoIwa no error
11:10 hemebond And your actual pillar has the correct key name at the end? Your example line doesn't match your Gist.
11:11 AonoIwa ok i will create another gist
11:12 AonoIwa https://gist.github.com/golauty/ef2b111c07e36effdcc3
11:13 hemebond {{ salt['pillar.get']('test:test\\\\path\\\\foo') }}
11:13 hemebond ^ that works, need to escape your backslashes
11:14 AonoIwa ok i will try
11:16 AonoIwa great that worked than you very much
11:18 rmnuvg joined #salt
11:33 abednarik joined #salt
11:34 brianfeister joined #salt
11:38 iceyao joined #salt
11:38 hemebond tweakism: Turns out I somehow had two versions of salt-master installed. One in /usr/lib... and one in /usr/local/lib...
11:38 AndreasLutro o_o
11:39 tweakism hemebond: I had a feeling that might turn out to be it.
11:39 hemebond I don't even know how that happens unless I tried to install a dev version using setup.py or something.
11:45 bhosmer joined #salt
11:51 amcorreia joined #salt
11:54 Fiber^ joined #salt
11:57 brianfeister joined #salt
11:59 teryx510 joined #salt
12:03 favadi joined #salt
12:03 yogoth joined #salt
12:06 zerthimon joined #salt
12:09 cztanu joined #salt
12:11 Ori0n joined #salt
12:11 Ori0n hi
12:12 fracklen joined #salt
12:14 mavhq joined #salt
12:18 misconfig joined #salt
12:19 akhter joined #salt
12:21 Ori0n joined #salt
12:42 geomacy joined #salt
12:43 harkx joined #salt
12:45 favadi joined #salt
12:48 _Cyclone_ joined #salt
12:51 MadHatter42 joined #salt
12:51 fracklen joined #salt
13:02 dgutu joined #salt
13:06 ingslovak joined #salt
13:08 dendazen joined #salt
13:09 ggoZ joined #salt
13:10 rubenb joined #salt
13:20 flowstate joined #salt
13:21 jtylers joined #salt
13:25 rubenb joined #salt
13:28 west575 joined #salt
13:34 bhosmer joined #salt
13:38 ronnix joined #salt
13:41 akhter joined #salt
13:43 numkem joined #salt
13:43 anmol joined #salt
13:47 froztbyte mmmmm
13:47 froztbyte any reason the http://debian.saltstack.com/debian/ repo is tracking so far behind?
13:49 euidzero joined #salt
13:53 JohnnyRun joined #salt
13:54 AndreasLutro froztbyte: because of repo.saltstack.com
13:55 akhter joined #salt
13:55 hasues joined #salt
13:55 hasues left #salt
13:58 froztbyte mmmm
13:58 froztbyte that's something that I completely missed
13:58 froztbyte ah, there's a typo too; is the page managed in git, or do I just mail someone?
13:59 froztbyte (and there appear to be no wheezy builds?)
14:02 DammitJim joined #salt
14:05 DammitJim is there a way to use salt with Cisco equipment?
14:05 akhter joined #salt
14:06 subsignal joined #salt
14:07 denys joined #salt
14:07 aanriot joined #salt
14:10 honestly_ Do you see IOS in the list of targets supported by salt? :P
14:10 misconfig joined #salt
14:10 aqua^c joined #salt
14:11 tweakism DammitJim: There is a (fairly new, I think) subsystem for that kind of situation.
14:11 aanriot left #salt
14:11 _JZ_ joined #salt
14:11 tweakism where a proxy minion can be used to configure something that that host can connect to via e.g. USB or SSH.
14:12 tweakism https://docs.saltstack.com/en/latest/topics/proxyminion/index.html
14:14 tweakism trying to actually use it would probably be frustrating, but if you do you should def. blog about it.
14:16 CustosLimen joined #salt
14:16 drawsmcgraw joined #salt
14:19 fracklen joined #salt
14:19 fracklen_ joined #salt
14:22 fredvd joined #salt
14:24 impi joined #salt
14:26 racooper joined #salt
14:26 mavhq joined #salt
14:28 mavhq joined #salt
14:29 akhter joined #salt
14:30 perfectsine joined #salt
14:31 scoates joined #salt
14:34 subsignal joined #salt
14:38 akhter joined #salt
14:39 mdasilva joined #salt
14:40 spiette joined #salt
14:42 spiette_ joined #salt
14:44 mavhq joined #salt
14:45 babilen I think ansible is used a lot more in that context
14:47 Tanta joined #salt
14:47 tweakism that's true.
14:48 zmalone joined #salt
14:48 babilen Because agentless :)
14:50 teryx510 joined #salt
14:51 teryx5101 joined #salt
14:52 flowstate joined #salt
14:55 impi joined #salt
14:56 mavhq joined #salt
15:05 drico joined #salt
15:05 drico Hi
15:05 drico I'm trying to get a file from a minion to another minion, without success
15:05 Morty_ joined #salt
15:06 drico I have a cp.push from the first one that goes into the master cache_dir
15:06 drico then when I try to cp.get_file with salt://{{ mon }}/files{{ myfile}} as a path
15:07 drico it doesn't seems to find the file
15:07 drico anyone as a working configuration of a cp.push / cp.get_file combination?
15:09 marie1972 left #salt
15:10 akhter joined #salt
15:10 JohnnyRun joined #salt
15:10 flowstate joined #salt
15:13 fracklen joined #salt
15:19 quasiben joined #salt
15:20 6A4AADDK9 joined #salt
15:22 Miouge joined #salt
15:22 fracklen joined #salt
15:22 bhosmer joined #salt
15:24 truescot joined #salt
15:25 fracklen joined #salt
15:29 truescot Hi, can anyone tell me if it is possible to use a variable in an sls file in a piller.get statement, for example i am trying to do the following
15:29 truescot {% set testenv  = 'test5' %}
15:29 truescot C:\My_Minion_application_Directory:
15:29 truescot file.recurse:
15:29 truescot - source: salt://My_Data_Directory/{{ salt['pillar.get']('Data_revision:{{ testenv }}') }}/data/
15:30 VR-Jack joined #salt
15:32 conan_the_destro joined #salt
15:33 truescot * i am using both master and minion 2015.8.3
15:34 babilen truescot: You don't have to/can't nest {{ ... }} -- make that 'Date_revision:' ~ testenv ...
15:35 ingslovak joined #salt
15:35 DammitJim joined #salt
15:36 Brew1 joined #salt
15:37 truescot you my man, are a scholalr and a gentleman
15:37 truescot thanks so much, i have been banging my head against that for hours
15:41 JohnnyRun joined #salt
15:43 flowstate joined #salt
15:44 euidzero joined #salt
15:45 amcorreia joined #salt
15:46 permalac joined #salt
15:47 CheKoLyN joined #salt
15:50 quasiben joined #salt
15:55 akhter joined #salt
15:56 permalac_ joined #salt
15:56 dfinn joined #salt
16:00 brianvdawson joined #salt
16:01 flowstate joined #salt
16:02 brianvdawson left #salt
16:03 kawa2014 joined #salt
16:06 DammitJim joined #salt
16:07 babilen truescot: :)
16:11 fracklen joined #salt
16:20 shaggy_surfer joined #salt
16:20 malinoff joined #salt
16:20 malinoff joined #salt
16:24 abednarik joined #salt
16:27 rm_jorge joined #salt
16:27 PeterO joined #salt
16:28 Kelsar joined #salt
16:30 flowstate joined #salt
16:30 mdasilva joined #salt
16:34 jimklo joined #salt
16:35 jimklo joined #salt
16:36 DammitJim joined #salt
16:40 writtenoff joined #salt
16:46 evle1 joined #salt
16:49 pgoetz_ joined #salt
16:52 kaptk2 joined #salt
16:54 kahiru joined #salt
16:55 onlyanegg joined #salt
16:58 jhauser_ joined #salt
16:58 DammitJim joined #salt
16:59 akhter joined #salt
16:59 tpaul For the winrepo-ng, the install path can be controlled with, %ProgramFiles% we want to base the install path on a grain or pillar, to do this we've had to fork winrepo-ng.
16:59 tpaul Is there a better way? Perhaps some property that can be passed into the sls file?
17:00 flowstate joined #salt
17:02 abednarik joined #salt
17:03 impi joined #salt
17:08 akhter_1 joined #salt
17:10 brianfeister joined #salt
17:11 bhosmer joined #salt
17:11 flowstate joined #salt
17:14 teryx510 joined #salt
17:15 fyb3r joined #salt
17:16 FreeSpencer joined #salt
17:16 FreeSpencer joined #salt
17:16 nobrak joined #salt
17:16 nobrak joined #salt
17:20 flowstate joined #salt
17:20 atmosx joined #salt
17:25 josuebrunel joined #salt
17:27 eculver joined #salt
17:29 dlam joined #salt
17:30 eculver left #salt
17:35 beardedeagle joined #salt
17:43 JoeJulian joined #salt
17:44 malinoff joined #salt
17:47 _Cyclone_ joined #salt
17:49 gnwyeh joined #salt
17:49 amcorreia joined #salt
17:50 gnwyeh Does anyone have a quick answer to launching a GUI application on a minion, onto the minion's display?
17:56 nahamu gnwyeh: what OS is the minion running?
18:02 fyb3r1 joined #salt
18:02 abednarik joined #salt
18:02 toastedpenguin joined #salt
18:03 ageorgop joined #salt
18:05 iggy hemebond: neither... the saltstack-formulas team maintains it (along with all the other formulas)
18:06 andrew_v joined #salt
18:06 onlyanegg joined #salt
18:16 akhter joined #salt
18:16 ZiLi0n joined #salt
18:18 ZiLi0n Hello everyone. I have a state that is running a cmd.run which executes a while loop. The intent was to block the minion running ps command until an output is expected, then move to next states. However it is not blocking as far as I can see, it just moves to the next state right away
18:18 gnwyeh joined #salt
18:19 gnwyeh Does anyone have a quick answer to launching a GUI application on a minion, onto the minion's display?
18:20 KWhat_Work joined #salt
18:20 KWhat_Work Hi I am trying to add a pkgrepo.managed item, however the item I am trying to add is an RPM and not a repo list... see https://webtatic.com/projects/yum-repository/
18:21 fracklen joined #salt
18:26 quix joined #salt
18:29 Eugene KWhat_Work - I use a file.managed to create /etc/yum.repos.d/myrepo.repo definition.
18:29 Eugene you can do it with file.present, which the foo-release would then overwrite(or replace with the same contents)
18:31 DammitJim joined #salt
18:31 dfinn1 joined #salt
18:33 dfinn1 joined #salt
18:34 tpaul KWhat_Work: You can extract the key and repo file from the RPM, or something like http://pastebin.com/sYV3udER
18:35 tpaul KWhat_Work: actually you don't need the file.managed part if you use the web address, I copy pasta'd that from an existing formula
18:36 KWhat_Work thanks tpaul, i think that will do it
18:37 ZiLi0n Hi it looks like cmd.run does not block the minion, I guess it spawns a new thread... I am just looking for a way to wamke sure a service is running, I have tried sig param of service.running, but no luck it does not work for me... Now I tried cmd.run, I thought it will work, but nop hehe. Is anyone starting a service and not moving to the next states until the service is up and running (for example, listening on an IP address)
18:39 Trauma joined #salt
18:40 dfinn joined #salt
18:40 quasiben joined #salt
18:40 KWhat_Work how dO I require a cmd.run ?
18:40 CheKoLyN joined #salt
18:42 flowstate joined #salt
18:42 dfinn1 joined #salt
18:43 akhter joined #salt
18:44 DammitJim require?
18:45 snc joined #salt
18:47 hal58th_ KWhat_Work: Try it first and then ask for help.
18:48 hal58th_ ZiLi0n: Have you tried the init_delay option? I have used that in the past with no luck.
18:49 terratoma joined #salt
18:50 hal58th_ ZiLi0n: https://github.com/saltstack/salt/issues/19084
18:50 saltstackbot [#19084]title: Wait for a service to really start in service.running | If I have a dependency on a running service, it is not necessary that it is completely ready when another service starts running. For example, service could create virtual interfaces, or prepare files, make database ready, etc. So there should be some way to tell salt state that the service should be really ready, not just running. Or at least to specify some delay time. So that I could
18:50 ZiLi0n hal58th_, yes that works but only when salt is starting the service, if systeminit is the one that starts the service, when salt tries, and the service is already started then it does not honor delay_init
18:51 ZiLi0n hal58th_ thanks, yes I am trying to workaround it using what that thread says
18:52 ZiLi0n but I think the state in that thread, fails all the time unitl docker is up. In my case, the cmd run does not fail, and i guess that is why it is completing
18:52 ZiLi0n not sure
18:52 flowstate joined #salt
18:52 quasiben joined #salt
18:53 ZiLi0n sig parameter does not work for me either
18:53 ZiLi0n not sure why...
18:54 ZiLi0n Or I am having the same problem as KWhat_Work, and there is no way to require a cmd.run to complete first before continuing
18:57 tpaul ZiLi0n: I think you should rely on your init system to handle service start up dependencies
19:00 bhosmer_ joined #salt
19:00 _beardedeagle joined #salt
19:02 denys joined #salt
19:03 ZiLi0n tpaul thanks, so the start should not return any result until all dependencies are up? is that what you mean?
19:05 tpaul ZiLi0n: I'm just saying that if you're trying to synchronize service startup and dependencies, you may be better off having salt install sysvinit/systemd/smf configurations before you try starting the services
19:06 _Cyclone_ joined #salt
19:10 fyb3r1 left #salt
19:13 ZiLi0n tpaul thanks, I will take a look, but what how differently is the sysvinit suppose to behave? What will make it work?
19:13 fredvd joined #salt
19:14 tpaul What OS are you using?
19:14 josue joined #salt
19:15 ZiLi0n tpaul Fedora
19:16 fracklen joined #salt
19:16 forrest joined #salt
19:16 tpaul ZiLi0n: Take a look at this, see if that makes sense: https://fedoramagazine.org/systemd-unit-dependencies-and-order/
19:19 ZiLi0n tpaul Oh I see, thank you. So would the idea be to run my service and then the salt-minion? so that I make sure whatever the minion does to the service, it is done when my service is up and running?
19:20 gnwyeh joined #salt
19:20 gnwyeh Does anyone have a quick answer to launching a GUI application on a minion, onto the minion's display?
19:20 dmaiocchi joined #salt
19:21 tpaul gnwyeh: someone asked you what OS, but I didn't catch it
19:21 gnwyeh My client keeps timing out, it's an Ubuntu minion
19:22 tpaul Do you have the DISPLAY environment variable set? You probably also want to run the GUI in the background with a something like "mygui &"? Just ideas
19:23 gnwyeh Hmm
19:24 forrest Probably times out because you run the scripto r whatever but it never exits since it's an app. Write a service script for the gui app and have salt manage that service
19:24 tpaul ZiLi0n: Its hard to say, I'm not sure what your exact use case is, I'm not sure if I have the bandwidth to help you out too much today sorry.
19:25 gnwyeh Thanks, you've given me some leads
19:26 fracklen joined #salt
19:27 grumm_servire joined #salt
19:28 AndreasLutro joined #salt
19:31 zmalone joined #salt
19:32 akhter joined #salt
19:32 dfinn1 joined #salt
19:33 KWhat_Work Data failed to compile: super helpful error message
19:34 dfinn1 joined #salt
19:35 dfinn joined #salt
19:36 mdasilva joined #salt
19:38 XenophonF joined #salt
19:39 dfinn1 joined #salt
19:42 flowstate joined #salt
19:43 lorengordon joined #salt
19:43 fracklen_ joined #salt
19:47 CheKoLyN joined #salt
19:48 dfinn joined #salt
19:49 dfinn joined #salt
19:52 grumm_servire joined #salt
19:53 viq joined #salt
19:54 GreatSnoopy joined #salt
19:55 dfinn1 joined #salt
19:56 fracklen joined #salt
19:56 Brew1 joined #salt
19:59 tpaul Is there a way to add a grain to a minion from the master? Aside from templating the minion's grains file? Just curious if I'm "doing it right?"
20:01 babilen tpaul: You can write custom grains, place them in _grains and execute them on the minion. You can manually run grains.{append,set} or use the grains.present state. Some of the usecase you have in mind might be better done in pillars.
20:02 tpaul I have pillars, and custom _grains I didn't know about grains.present state that might be good for this case.
20:03 babilen https://docs.saltstack.com/en/latest/ref/states/all/salt.states.grains.html → append/present
20:03 tpaul Thanks
20:04 akhter joined #salt
20:04 jmedinar joined #salt
20:06 jmedinar Is it possible to have a "reactor" to send an email as action from the master? or execute a script on the master?
20:06 jmedinar #run_notify:
20:06 jmedinar #  runner.cmd.run:
20:06 jmedinar #    - arg:
20:06 jmedinar #      - 'sh /sysadm/bin/notify.sh'
20:06 lemur joined #salt
20:06 jmedinar something like that is possible?
20:07 baweaver_ joined #salt
20:08 babilen jmedinar: You can install a minion on the master and call whatever execution function you want - https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.smtp.html#salt.modules.smtp.send_msg
20:08 sjmh joined #salt
20:11 jmedinar reactor:
20:11 jmedinar - salt/monitor/alert/disk_low:
20:11 jmedinar - /srv/reactor/disk_low.sls
20:12 fracklen_ joined #salt
20:14 akhter joined #salt
20:17 brianfeister joined #salt
20:17 flowstate joined #salt
20:18 Rumbles joined #salt
20:22 akhter joined #salt
20:27 akhter joined #salt
20:29 tpaul Anyone have suggestions on how to execute salt from another system?
20:29 tpaul For example I'd like to write a git hook that execs something like "salt \* state.highstate saltenv=$branch" on my master. My git repo is hosted on another server
20:30 tpaul I can cobble something together but thought I'd ask before I did so
20:30 fracklen joined #salt
20:31 Icefoz tpaul: Make that system a salt master controlling your salt server as a minion?  :3
20:32 Icefoz (Probably not actually a good idea.)
20:32 tpaul Icefoz: no can do, the git is hosted on a windows machine running a bunch of Atlasssian services I don't want to untangle
20:32 tpaul Also don't want to run my githooks as root :)
20:33 tpaul Icefoz: thanks for the suggestion though!
20:33 ZiLi0n tpaul thank you very much tpaul. No worries, I will keep trying to workaround it. If you happen to have some time, please ping me I will the channel
20:34 tpaul ZiLi0n: you're welcome and good luck I might be a little more free'd up tomorrow, if so I will ping ya.
20:35 whatapain joined #salt
20:35 iggy tpaul: salt-api or put a minion on the git server and have it fire a custom event to the reactor
20:35 whatapain how can i run salt-cloud as a non-root user without needing access to /etc/salt?
20:35 tpaul iggy: Those sound like promising directions, thanks.
20:36 iggy whatapain: kind of the same way as anything else (which is documented)
20:36 whatapain iggy: that's helpful :) salt-cloud -c /my/salt/directory errors out saying i need root
20:36 whatapain but there's no error telling me why it needs root, it's trying to read /etc/salt which is not what i want it to do
20:37 whatapain i want it to read from /my/salt/directory
20:37 fracklen joined #salt
20:39 kahiru joined #salt
20:39 iggy then I have no idea, sorry I wasted your time
20:39 hemebond iggy: Ah. I saw you comment on a formula pull-request so I thought you had something to do with maintaining it.
20:41 fracklen joined #salt
20:42 iggy hemebond: I mean I do, but I'm not the only one
20:42 whatapain iggy: looks like i figured it out. i thought i could just copy the salt/cloud.* files including /salt/cloud into another directory and just go with it but it looks like salt-cloud also reads /salt/master.  i copied that file into /my/salt/directory but it was still complaining about salt being configured to run as root so i looked at master config and changed user: to my username and then set root_dir: to /my/salt/directory
20:43 whatapain seems to be working
20:44 kim0 joined #salt
20:45 whatapain iggy: and what's documented seems to be just for salt, not salt-cloud.
20:45 kim0 left #salt
20:45 beardedeagle joined #salt
20:45 Muchoz joined #salt
20:46 truescot joined #salt
20:46 quasiben joined #salt
20:49 bhosmer_ joined #salt
20:51 andrew_v joined #salt
20:56 fracklen_ joined #salt
21:01 akhter joined #salt
21:02 fracklen joined #salt
21:07 ajw0100 joined #salt
21:15 akhter joined #salt
21:19 sjmh joined #salt
21:23 hal58th_ ZiLi0n: Maybe you can use some bash magic and a while loop to look at netstat listening ip address to see if the service is running
21:23 ALLmightySPIFF joined #salt
21:24 Icefoz left #salt
21:26 kahiru_ joined #salt
21:26 ZiLi0n hal58th_ thank you. Yes, so I have tried that, if I run that command on the CLI it does not return until the ip address is listening. However from Salt, doing cmd.run it seems like the salt-minion executes the cmd.run and immediately return and continues....
21:27 hal58th_ ah. yeah it's a big problem. Wish I could help more
21:32 linjan_ joined #salt
21:37 ekristen joined #salt
21:42 jimklo joined #salt
21:43 jmedinar joined #salt
21:43 akhter joined #salt
21:44 jmedinar Is it possible to pass a parameter to a reactor? like the minion name
21:45 conan_the_destro joined #salt
21:47 jtylers joined #salt
21:47 jmedinar maybe with the data parameter from the event.send ?
21:48 jmedinar but then how is received in the reactor?
21:50 grumm_servire joined #salt
21:51 lungaro can salt configure lxc images using lxd images?
21:53 perfectsine joined #salt
21:57 Patch joined #salt
21:58 whytewolf jmedinar: the kawgs for event.send are key/value pairs for the added data on the other end. but iirc event.send already sends the minion id which is setup as data['id']
21:58 whytewolf jmedinar: look at the event bus for more info on the structure of data
21:59 whytewolf salt-run state.event pretty=True
21:59 jmedinar thanks whytewolf
21:59 drawsmcgraw joined #salt
22:01 KWhat_Work so I have http://dpaste.com/0VW5NFJ and I cant seem to make that run prior to pkg.installed: block
22:02 hal58th_ KWhat_Work: http://dpaste.com/15BKHFB
22:03 hal58th_ while block is the name of the state
22:06 brianfeister joined #salt
22:07 ajw0100 joined #salt
22:09 KWhat_Work thanks hal58th_
22:09 KWhat_Work that wurkd
22:10 fracklen joined #salt
22:12 TheLoeki joined #salt
22:16 KWhat_Work wonder if centos 6.6 package is compatible with centos 6.5
22:17 onlyanegg joined #salt
22:24 hal58th_ welcome
22:29 brianfeister joined #salt
22:32 hal58th joined #salt
22:33 jimklo joined #salt
22:33 TyrfingMjolnir joined #salt
22:35 akhter joined #salt
22:37 bhosmer_ joined #salt
22:38 flowstate joined #salt
22:42 fracklen joined #salt
22:43 zenlot joined #salt
22:43 jfindlay should be
22:57 berserk joined #salt
22:58 fracklen joined #salt
23:03 ajw0100 joined #salt
23:18 onlyanegg joined #salt
23:19 fracklen joined #salt
23:22 edrocks joined #salt
23:29 fracklen joined #salt
23:31 flowstate joined #salt
23:36 akhter joined #salt
23:42 fracklen_ joined #salt
23:44 ajw0100 joined #salt
23:47 patrickbrown joined #salt
23:48 Rumbles joined #salt
23:49 patrickbrown Hi, I'm using cmd.run to start a process which needs a high open file limit and using the user: option to set the user to run it as. However it is not picking up the open file limits I set, and can see set when I actually log into that user. I'm on CentOS 7, any ideas? Thanks
23:54 aboe joined #salt
23:57 fracklen joined #salt

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