Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-03-14

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

All times shown according to UTC.

Time Nick Message
00:01 digitalhero joined #salt
00:02 mavhq joined #salt
00:03 mavhq joined #salt
00:05 mavhq joined #salt
00:07 mavhq joined #salt
00:09 scoates joined #salt
00:11 mavhq joined #salt
00:16 mavhq joined #salt
00:18 evidence joined #salt
00:20 mavhq joined #salt
00:20 brianfeister joined #salt
00:25 mavhq joined #salt
00:30 kliquori joined #salt
00:35 ninkotech joined #salt
00:39 rem5 joined #salt
00:48 bhosmer joined #salt
00:50 hamsham joined #salt
00:50 mavhq joined #salt
00:55 mavhq joined #salt
00:55 iceyao joined #salt
00:59 paoc joined #salt
01:00 mavhq joined #salt
01:04 catpigger joined #salt
01:12 mavhq joined #salt
01:12 RobertChen117 joined #salt
01:12 k_sze[work] joined #salt
01:16 hamsham joined #salt
01:19 shoemonkey joined #salt
01:19 mavhq joined #salt
01:19 kliquori joined #salt
01:24 mavhq joined #salt
01:25 edrocks joined #salt
01:27 mdasilva_ joined #salt
01:35 quasiben joined #salt
01:36 mavhq joined #salt
01:38 justanotheruser joined #salt
01:38 quasiben joined #salt
01:38 sbogg joined #salt
01:39 mavhq joined #salt
01:39 auzty joined #salt
01:43 bhosmer joined #salt
01:43 mavhq joined #salt
01:55 amcorreia joined #salt
01:58 mdasilva joined #salt
01:58 RobertChen117 joined #salt
02:01 catpiggest joined #salt
02:02 mavhq joined #salt
02:07 mavhq joined #salt
02:08 saltstackbot joined #salt
02:09 mavhq joined #salt
02:10 saltstackbot joined #salt
02:10 saltstackbot joined #salt
02:11 mavhq joined #salt
02:11 saltstackbot joined #salt
02:12 saltstackbot joined #salt
02:13 saltstackbot joined #salt
02:13 brianfeister joined #salt
02:15 DammitJim joined #salt
02:18 donmichelangelo joined #salt
02:19 digitalhero joined #salt
02:19 akhter joined #salt
02:21 digitalhero joined #salt
02:27 quasiben joined #salt
02:28 mavhq joined #salt
02:29 favadi joined #salt
02:35 mavhq joined #salt
02:36 zahna joined #salt
02:36 hoonetorg joined #salt
02:37 bhosmer joined #salt
02:37 mavhq joined #salt
02:38 hasues left #salt
02:39 RobertChen117 joined #salt
02:42 nZac joined #salt
02:46 bhosmer joined #salt
02:47 ilbot3 joined #salt
02:47 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.7 | Register for SaltConf16: http://saltconf.com/register/ | Paid support available for open source Salt! https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | Ask with patience as we are volunteers and may not have immediate answers
02:59 catpigger joined #salt
03:06 mavhq joined #salt
03:07 akhter joined #salt
03:07 hoonetorg joined #salt
03:15 antpa joined #salt
03:19 anthpa joined #salt
03:20 antpa_ joined #salt
03:21 kliquori joined #salt
03:21 digitalhero joined #salt
03:22 mavhq joined #salt
03:27 hoonetorg joined #salt
03:30 edrocks_ joined #salt
03:31 nidr0x joined #salt
03:31 mavhq joined #salt
03:35 cliffstah joined #salt
03:36 mavhq joined #salt
03:38 CeBe joined #salt
03:38 cliffstah joined #salt
03:41 malinoff joined #salt
03:47 hoonetorg joined #salt
03:50 fracklen joined #salt
03:51 kumar joined #salt
03:52 Guest22288 Can you please suggest how to orchestrate saltstack with Azure ARM model to provision VMs
03:53 Guest22288 Also Another question : In classic model : VM gets provisioned but not able to login throws error "Permission denied public key"
03:54 ramteid joined #salt
03:56 Guest22288 [DEBUG   ] Child Forked! PID: 46871  STDOUT_FD: 7  STDERR_FD: 11 [DEBUG   ] Terminal Command: /bin/sh -c ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -p 22 azure-user@centos10mar.cloudapp.net date [DEBUG   ] Warning: Permanently added 'centos10mar.cloudapp.net,191.237.44.35' (RSA) to the list of known hosts. Permission denied (publickey). [DEBUG   ] Using password authentication [DEBUG   ] Attemp
03:56 hamsham joined #salt
03:56 Guest22288 Request your help pls stuck
03:56 Guest22288 on this issue
03:59 digitalhero joined #salt
03:59 edrocks joined #salt
04:02 brianfeister joined #salt
04:04 akhter joined #salt
04:08 kliquori joined #salt
04:14 k_sze[work] joined #salt
04:15 digitalhero joined #salt
04:17 hoonetorg joined #salt
04:24 digitalh_ joined #salt
04:25 brianfeister joined #salt
04:25 krymzon joined #salt
04:31 kshlm joined #salt
04:33 antpa joined #salt
04:33 nZac joined #salt
04:34 beardedeagle joined #salt
04:41 beardedeagle has anyone ever tried salt-ssh with webhooks?
04:43 overyander joined #salt
04:43 bhosmer joined #salt
04:47 RobertChen117 joined #salt
04:53 digitalhero joined #salt
04:57 dendazen joined #salt
04:58 kumar joined #salt
04:59 Guest25301 can you guys pls confirm saltstack supports Azure ARM model to provision vm
05:00 Guest25301 I know classic model is supported
05:00 Guest25301 request pointers pls
05:00 Guest25301 In a classic model I get the following errors:Child Forked! PID: 46871  STDOUT_FD: 7  STDERR_FD: 11 [DEBUG   ] Terminal Command: /bin/sh -c ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -p 22 azure-user@centos10mar.cloudapp.net date [DEBUG   ] Warning: Permanently added 'centos10mar.cloudapp.net,191.237.44.35' (RSA) to the list of known hosts. Permission denied (publickey). [DEBUG   ] Using passwo
05:00 Guest25301 Request your help pls
05:06 Zachary_DuBois joined #salt
05:08 iceyao_ joined #salt
05:08 RobertChen117 joined #salt
05:08 fracklen joined #salt
05:13 digitalh_ joined #salt
05:21 digitalhero joined #salt
05:21 i90rr joined #salt
05:24 digitalhero joined #salt
05:26 rdas joined #salt
05:33 hvn joined #salt
05:33 hvn joined #salt
05:36 fracklen joined #salt
05:37 bhosmer joined #salt
05:39 shoemonkey joined #salt
05:56 subsignal joined #salt
05:57 anmol joined #salt
06:02 jinkyu joined #salt
06:03 RobertChen117 joined #salt
06:10 kliquori joined #salt
06:28 krymzon joined #salt
06:31 bhosmer joined #salt
06:35 nZac joined #salt
06:37 bhosmer joined #salt
06:43 rem5 joined #salt
06:48 felskrone joined #salt
06:50 iceyao joined #salt
06:52 mavhq joined #salt
06:53 josuebrunel joined #salt
06:57 kliquori joined #salt
06:57 RobertChen117 joined #salt
07:05 vilitux_ joined #salt
07:05 ajolo_ joined #salt
07:05 Vye_ joined #salt
07:05 Heartsbane_ joined #salt
07:05 themacproguy joined #salt
07:05 keekz_ joined #salt
07:06 lahwran joined #salt
07:08 subsignal joined #salt
07:09 georgemarshall_ joined #salt
07:09 dober- joined #salt
07:10 toabi_ joined #salt
07:10 vpm_ joined #salt
07:10 graffic_ joined #salt
07:10 khorben_ joined #salt
07:10 yidhra joined #salt
07:11 TyrfingMjolnir joined #salt
07:11 ecerulm joined #salt
07:12 iceyao_ joined #salt
07:14 Sketch_ joined #salt
07:14 quarcu_ joined #salt
07:14 cornfeedhobo_ joined #salt
07:15 atoponce joined #salt
07:16 cswang joined #salt
07:16 rmc3 joined #salt
07:16 jnials joined #salt
07:16 iamtew joined #salt
07:16 penguin_dan joined #salt
07:16 jwinters joined #salt
07:16 Pixionus joined #salt
07:16 thraxil joined #salt
07:16 rory joined #salt
07:16 dork joined #salt
07:16 xMopxShell joined #salt
07:16 alxchk joined #salt
07:16 adrienr joined #salt
07:16 edulix_ joined #salt
07:16 colinstgeorge_ joined #salt
07:16 Cidan joined #salt
07:16 dandelo joined #salt
07:16 philiaagape joined #salt
07:16 Ch3LL_ joined #salt
07:16 jvv joined #salt
07:16 rofl____ joined #salt
07:16 Edur joined #salt
07:16 LeProvokateur joined #salt
07:16 hypnosb joined #salt
07:16 dabb joined #salt
07:16 peters-tx joined #salt
07:16 sauvin joined #salt
07:16 Ph-x joined #salt
07:16 chitown joined #salt
07:16 davisj joined #salt
07:17 hax404 joined #salt
07:17 sauvin joined #salt
07:17 LostSoul_ XenophonF: Thanks man
07:18 SVQTQ joined #salt
07:20 roock joined #salt
07:20 upb joined #salt
07:20 darix joined #salt
07:23 LostSoul_ Hi there anyone around?
07:23 hemebond .
07:24 LostSoul_ Great
07:24 LostSoul_ I will probably have question :)
07:24 LostSoul_ As 2 people answered my question but I guess non of it is working or more likely I'm doing something wrong
07:25 digitalhero joined #salt
07:25 digitalhero joined #salt
07:25 iceyao joined #salt
07:26 fooma joined #salt
07:26 favadi joined #salt
07:28 felskrone joined #salt
07:29 LostSoul_ hemebond: http://paste.debian.net/hidden/73fb9f66/
07:29 LostSoul_ What I'm doing wrong to escape #?
07:29 hemebond Um.
07:29 LostSoul_ When I don't escape I got nothing, but error, when I'm going with \#
07:30 LostSoul_ I got no error but then I have in file ... \#option=value ...
07:30 AndreasLutro you're doing nothing wrong in that paste, you don't need the \
07:30 AndreasLutro whatever problem you're having, it's somewhere else
07:31 LostSoul_ I see
07:31 LostSoul_ I will paste results maybe?
07:32 LostSoul_ Should it be '.*VCS="darcs".*' or '.*VCS=\"darcs\".*' ?
07:32 hemebond You can use http://yaml-online-parser.appspot.com/ to check your YAML.
07:32 AndreasLutro the former
07:32 AndreasLutro you don't need to escape " if it's inside '
07:33 mavhq joined #salt
07:33 LostSoul_ Thanks hemebond and AndreasLutro :)
07:36 krymzon joined #salt
07:39 shoemonkey joined #salt
07:40 LondonAppDev joined #salt
07:43 Miouge joined #salt
07:43 LostSoul_ So I posted it witout any "\"
07:43 LostSoul_ And got error:
07:44 digitalhero joined #salt
07:44 fooma joined #salt
07:44 LostSoul_ http://paste.debian.net/hidden/3d7f5c89/
07:45 hemebond Would need to see the state I think.
07:46 LostSoul_ Ok
07:46 RobertChen117 joined #salt
07:53 LostSoul_ http://paste.debian.net/hidden/3d7f5c89/
07:53 LostSoul_ Sorry
07:53 LostSoul_ Not this
07:53 digitalhero joined #salt
07:53 LostSoul_ http://paste.debian.net/hidden/32de9f60/
07:55 impi joined #salt
07:56 fracklen joined #salt
07:57 KermitTheFragger joined #salt
07:57 digitalhero joined #salt
08:00 digitalhero joined #salt
08:02 pwalsh joined #salt
08:03 digitalhero joined #salt
08:05 digitalhero joined #salt
08:08 LostSoul_ Any ideas?
08:08 digitalhero joined #salt
08:08 av_ joined #salt
08:12 ronnix joined #salt
08:12 subsignal joined #salt
08:12 digitalhero joined #salt
08:12 hemebond The line numbers in the error don't like up with the copy of the source I have. I'll have to try and replicate. Will do that now.
08:13 hemebond If you've got a snippet of the file you're trying to edit that'd be useful.
08:14 remyd1 joined #salt
08:16 kbaikov joined #salt
08:16 fracklen joined #salt
08:16 LostSoul_ I will paste you "basic" etckeeper config file
08:17 LostSoul_ http://paste.debian.net/hidden/4142dfa0/
08:18 LostSoul_ All lines that doesn't suppose to be changed with "#" are fine
08:18 LostSoul_ I mean, when I erased all # it went just great
08:18 LostSoul_ I'm kinda lost in it
08:19 hemebond So you want to uncomment the lines?
08:19 hemebond Oh, you're trying to comment them out.
08:19 hemebond Wait... what are you trying to do?
08:21 josuebrunel joined #salt
08:23 LostSoul_ I want to make sure 3 are commented out and 1 is not commented
08:23 LostSoul_ I guess I could just erase those 4 line and .. and just one
08:24 LostSoul_ But still, I guess it's bad that you can't just do it salt to regexp with '#'
08:24 jhauser joined #salt
08:24 digitalhero joined #salt
08:26 krymzon joined #salt
08:27 lero joined #salt
08:27 digitalhero joined #salt
08:27 onorua joined #salt
08:28 LostSoul_ I want to be able to comment out and erase comment on lines I want
08:29 hemebond Like https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.comment ?
08:29 catpig joined #salt
08:29 digitalhero joined #salt
08:29 onorua Hi guys, how do you do the testing? I've been following intruction on how to install testing environment, but still have problem of missing __salt__
08:30 dmaiocchi joined #salt
08:30 hemebond LostSoul_: It is the hash (#) causing a problem.
08:32 LostSoul_ Yeah, I told it already hemebond :P
08:32 LostSoul_ I mean, I was thinking it was the only reason
08:32 hemebond Now it's confirmed :-)
08:32 slav0nic joined #salt
08:32 LostSoul_ Any tips? Workarounds?
08:32 LostSoul_ Or I'm lost?
08:33 digitalhero joined #salt
08:33 LostSoul_ I could just erase those lines, but it's just bad as there might be file that I will need "#" inside
08:34 hemebond You could use the module I linked to a moment ago.
08:34 catpigger joined #salt
08:34 dgutu joined #salt
08:35 babilen LostSoul_: Sorry, late to the party and it is a bit tricky to figure out what you are trying to do. Could you summarise it?
08:35 hemebond babilen: Trying to put a hash (#) at the start of some lines in a file.
08:35 bdrung_work joined #salt
08:35 babilen onorua: Testing of what? In which context are you trying to use __salt__ ? Why do you think that it is missing?
08:36 digitalhero joined #salt
08:36 babilen hemebond: Sounds as if you are indeed looking for the state linked by hemebond earlier
08:37 onorua babilen: I'm developing executing module, and trying to create automated test for it to keep good quality of code
08:37 bhosmer joined #salt
08:38 babilen onorua: __salt__ is being monkey patched into execution modules later - Initialise it to some placeholder value (such as None) and just use it in the functions.
08:38 LostSoul_ babilen: I've got etckeeper congif file:
08:38 LostSoul_ http://paste.debian.net/hidden/4142dfa0/
08:39 LostSoul_ And I want to comment out all lines but 3rd
08:39 LostSoul_ Also I don't want just erase them
08:39 fracklen joined #salt
08:39 babilen LostSoul_: Don't you *really* want the content of that file to be 'VCS="git"' ?
08:39 digitalhero joined #salt
08:39 onorua babilen: just to make sure that I've installed everything right, should I see `test` directory inside the salt installtion?
08:39 hemebond LostSoul_: Your Pillar contains a reference to the third line so it would be commented out.
08:40 hemebond Oh, nevermind. I mis-counted.
08:40 hemebond Wait, no, git would still be comment out, it's in the pillar too.
08:40 babilen pillar?
08:40 remyd1 Hi. Still no idea about that: https://groups.google.com/forum/#!topic/salt-users/v2JaTn05zwI  ?
08:40 hemebond babilen: http://paste.debian.net/hidden/73fb9f66/
08:40 droo joined #salt
08:42 harkx is there not going to be a salt-minion 2015.8.7 for debian wheezy? (latest is 2015.5.3)
08:43 babilen remyd1: I would strongly recommend against using ip4_interfaces and recommend usage of https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.network.html#salt.modules.network.ip_addrs
08:43 digitalhero joined #salt
08:44 babilen remyd1: Furthermore: grains for roles are, well, suboptimal in some cases as: 1. You have to manage them too which typically brings you back to square one 2. They aren't trustworthy in that minions can lie about them 3. There is no need to save them in a distributed manner.
08:44 babilen Note that none of these points might be a problem for your usecase and infrastructure
08:45 babilen With network.ip_addrs you simply specify the CIDR of the network the minion belongs to and you get the correct address
08:45 7GHAAIWVO joined #salt
08:46 babilen hemebond: That paste seems to be gone by now
08:47 hemebond It's a list of dicts, with match and repl values for the line.replace
08:47 evle joined #salt
08:47 hemebond For each dict in the list it renders a file.line to match a string and replace it with a version starting with a hash (#).
08:47 digitalhero joined #salt
08:48 hemebond The list contains a dict for bzr, hg, git and darcs
08:48 babilen Why?
08:48 babilen I mean .. isn't the goal to set VCS to git in the end?
08:48 hemebond To comment out VCS="blah" lines
08:48 hemebond It's to toggle the lines I believe.
08:48 LostSoul_ Yes
08:48 hemebond Which is why I linked to the module for commenting out lines.
08:49 babilen That could be done with a simple file.managed with contents: 'VCS="git"', couldn't it?
08:49 hemebond Yes.
08:49 babilen So .. why not be explicit?
08:49 LostSoul_ I realised I could just erase other lines but still why # is not working ;)
08:49 hemebond Unless the file itself is much larger of course.
08:49 hemebond Still investigating the hash issue.
08:49 babilen Ah .. so this isn't about solving the problem, but about figuring out why the other way isn't working?
08:49 remyd1 babilen: "2. They aren't trustworthy in that minions can lie about them" ????? What ? Why ?
08:50 hemebond remyd1: https://docs.saltstack.com/en/latest/topics/targeting/grains.html#grains-in-the-minion-config
08:50 permalac joined #salt
08:50 babilen remyd1: Minions can claim to have whatever grains they want. There is no way for the master to check if their claim is in line with what you consider to be the truth
08:51 remyd1 Huh ? Ok
08:51 babilen So .. if you make sensitive decisions based on grains and if you can't trust your minions you have a problem
08:51 LostSoul_ babilen: I guess
08:51 LostSoul_ I want to find out why
08:52 babilen That is why a more centralised approach to managing roles (e.g. in a pillar, database or other datasource available via external pillars) is advocated in situations like that.
08:52 babilen remyd1: The only data you can trust is the minion id. Some people also adopt a suitable naming scheme and target based on that.
08:53 babilen remyd1: This might not be a problem for you, but it is something that you should be aware of
08:53 LostSoul_ How can I make sure there will be just one line with file.managed?
08:54 geomacy joined #salt
08:54 babilen LostSoul_: You simply have a single line in the template or pass the aforementioned "- contents: - 'VCS="git"'"
08:57 LostSoul_ What you mean by this second way?
08:58 kliquori joined #salt
08:59 digitalhero joined #salt
08:59 JohnnyRun joined #salt
09:01 elsmo joined #salt
09:02 digitalhero joined #salt
09:04 babilen LostSoul_: Look up the file.managed documentation on "contents:"
09:04 freeaks joined #salt
09:04 colttt joined #salt
09:05 digitalhero joined #salt
09:06 RobertChen117 joined #salt
09:07 digitalhero joined #salt
09:08 hemebond wtf, pillar, give me the item
09:08 LostSoul_ Thanks man
09:09 LostSoul_ Btw, should I report this as bug to salt devs?
09:09 LostSoul_ Or you can do it :P
09:09 LostSoul_ As I don't know how
09:09 Rumbles joined #salt
09:10 mavhq joined #salt
09:10 LondonAppDev joined #salt
09:10 digitalhero joined #salt
09:10 hemebond Man that pillar_refresh stuff is annoying as heck.
09:12 digitalhero joined #salt
09:12 LostSoul_ Now I'm lost
09:13 digitalhero joined #salt
09:14 mavhq joined #salt
09:15 toabi joined #salt
09:15 catpigger joined #salt
09:16 remyd1 babilen: So for my problem, I should write a custom module to call a state ? Because I need to retrieve the good interface which belong to a particular cidr
09:16 remyd1 I tried to access to the module network directly from the state but that did not seem to work
09:17 Jarus joined #salt
09:17 babilen remyd1: Is it drinking gin & tonic again?
09:17 babilen IOW: What did you try and what was the outcome of that?
09:18 remyd1 https://groups.google.com/forum/#!topic/salt-users/v2JaTn05zwI
09:18 digitalhero joined #salt
09:18 remyd1 I am just trying to change the "mcast_if" parameter in a conf file
09:18 babilen I don't see ip_addrs mentioned in there at all
09:19 babilen In fact that post didn't change ever since you posted it (well, no surprise there)
09:19 remyd1 It was before you point me to the network module
09:19 remyd1 Well, I am working on it...
09:19 babilen "I tried to access to the module network directly from the state but that did not seem to work" -- I was referring to that :)
09:20 remyd1 Yep; Is it possible to access a module function from a state file ?
09:20 digitalhero joined #salt
09:21 remyd1 Ok
09:21 remyd1 I found
09:21 remyd1 :)
09:21 remyd1 https://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html
09:21 catpiggest joined #salt
09:21 bastiandg joined #salt
09:24 hajhatten joined #salt
09:24 digitalhero joined #salt
09:24 babilen remyd1: You can just do {{ salt['network.ip_addrs'](cidr=....., ..., ..., ..) }}
09:25 babilen https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html#calling-salt-functions
09:25 digitalhero joined #salt
09:26 hemebond Aha
09:27 hemebond LostSoul_: When the SLS gets to the minion, there are no quotes around the content property value.
09:27 hemebond Which means it's a value starting with a hash and so it thinks it's a comment.
09:27 digitalhero joined #salt
09:28 quix joined #salt
09:28 remyd1 network.ip_addrs does not  return the interface, but only the IP
09:28 malinoff joined #salt
09:29 hemebond LostSoul_: repl: "'#VCS=\"bzr\"'" works
09:30 digitalhero joined #salt
09:30 s_kunk joined #salt
09:30 catpiggest joined #salt
09:31 ronnix joined #salt
09:32 bhosmer joined #salt
09:32 digitalhero joined #salt
09:32 babilen remyd1: Ah .. you require the interface?
09:33 GreatSnoopy joined #salt
09:33 ronnix joined #salt
09:34 remyd1 Yes babilen
09:35 babilen remyd1: Ah, well .. sure? Can't you tell it to use whatever interface has some specific IP ? I dislike hardcoding interface names in my infrastructure.
09:35 remyd1 I tried this http://pastebin.com/ximXyAjY
09:36 remyd1 Well I do not know the IP address, neither the interface name
09:36 remyd1 All I know, is the cidr
09:37 remyd1 Now I have this issue 'TypeError: 'function' object is not iterable'
09:37 remyd1 if only ip_addrs could return the interface nam
09:37 remyd1 name
09:40 shoemonkey joined #salt
09:41 remyd1 should I write a module function ? It would be easier, no ?
09:44 antpa joined #salt
09:44 RobertChen117 how can I submit a bug fix to saltstack ?
09:45 kliquori joined #salt
09:45 hemebond RobertChen117: https://github.com/saltstack/salt
09:45 hemebond Or more specifically: https://github.com/saltstack/salt/issues
09:46 RobertChen117 I open an issue and submit a fix there ?
09:47 hemebond Have a read of https://docs.saltstack.com/en/latest/topics/development/contributing.html
09:47 hemebond If you have a fix you need to submit a pull request.
09:55 Eureka70_ joined #salt
09:58 hax404 joined #salt
10:00 LostSoul_ hemebond: Thanks man!
10:00 LostSoul_ I will use it then :)
10:01 LostSoul_ You are the man hemebond :P
10:01 LostSoul_ I will spam you more often :)
10:01 hemebond Still learning, like you :-)
10:02 hemebond That'll be fine :-D
10:02 malinoff joined #salt
10:02 LostSoul_ Then I guess I don't need "'" ?
10:02 LostSoul_ I mean I can go with :
10:03 LostSoul_ "#VCS=\"bzr\"" ?
10:03 hemebond No, you need another set of quotes.
10:03 keimlink joined #salt
10:03 hemebond The first set of outer quotes get stripped on the minion.
10:03 LostSoul_ Ou, why so?
10:03 LostSoul_ Aaaa, I see ;)
10:04 LostSoul_ No I don't :P
10:04 LostSoul_ I mean, I'm lost why I need " and '
10:05 hemebond The pillar has "'test'". The minion gets 'test'
10:05 hemebond Normally it'd be fine. We'd have "testing" and end up with testing. It's a string. No problem.
10:06 nidr0x joined #salt
10:06 hemebond But your strings start with # which is a comment character.
10:06 hemebond So "#testing" becomes #testing which is a comment
10:06 hemebond So we use an additional set of quotes to make sure it's a string the whole way through.
10:07 LostSoul_ I see, so why when there is no "#" there is no need for double quoting?
10:07 hemebond "'#testing'" becomes '#testing'
10:07 hemebond Because # says "this is a comment"
10:07 LostSoul_ Isn't it going to add single quote like 'xxxx' to each line?
10:07 hemebond No, we're still in the YAML. YAML then removes any surrounding quotes.
10:08 LostSoul_ Ou man :P
10:08 hemebond http://paste.debian.net/415060/
10:08 LostSoul_ I'm a bit lot but I guess I need to re-read it again in home :)
10:09 hemebond That is the debugging into in the minion log.
10:09 hemebond *info
10:09 hemebond You can see it has the ' quotes around it still.
10:09 LostSoul_ Yeah
10:09 hemebond Without those it would be content: #blah
10:09 hemebond Which gets interpreted as "content has no value, it's empty, there's just a comment there"
10:14 subsignal joined #salt
10:14 LostSoul_ Thanks hemebond, now it's clear :)
10:14 LostSoul_ Good to know how it works
10:14 hemebond :thumbsup:
10:14 LostSoul_ What can I say, I'm still on my learning path :P
10:21 hajhatten joined #salt
10:23 babilen LostSoul_: I'd still be explicit about the content on that file (rather than relying on lines being in there that you can uncomment/comment and so on)
10:23 hemebond ^
10:25 kawa2014 joined #salt
10:26 antpa joined #salt
10:27 iceyao_ joined #salt
10:28 fooda joined #salt
10:35 digitalhero joined #salt
10:36 LostSoul_ Hmm, so you suggest to use template?
10:36 LostSoul_ Or just one line, yeah?
10:43 amcorreia joined #salt
10:44 drawsmcgraw1 joined #salt
10:47 RobertChen117 joined #salt
10:47 JohnnyRun hi all. I'm using salt-cloud with vmware provider. I need to assign fixed ip to some machines that have the same profile. At the moment I'm doing one profile per machine but I really don't like it. I would like to setup ip in the map or something like that
10:48 JohnnyRun where is the right place to do that?
10:50 joe__ joined #salt
10:52 ronnix joined #salt
10:52 remyd1 babilen: http://pastebin.com/L7fKSYeJ
10:53 denys joined #salt
10:57 babilen remyd1: My approach would be to get the exact IP address with network.ip_addrs for that cidr and then to check which interface has that IP
10:57 babilen (rather than relying on string comparisons that aren't really matching CIDR)
10:58 cyborg-one joined #salt
10:59 remyd1 within a module file (inside a function) too ?
10:59 babilen yeah
11:00 remyd1 ok
11:00 babilen It's a bit more robust that way
11:04 ggoZ joined #salt
11:09 s_kunk joined #salt
11:16 digitalhero joined #salt
11:16 babilen LostSoul_: As mentioned earlier: I'd use contents: - 'VCS="git"'
11:19 remyd1 Is there a way to retrieve some env values from a state ?
11:19 babilen env?
11:19 stbenjam joined #salt
11:19 remyd1 I would like to set a function within a loop with hostname
11:19 remyd1 or minion id
11:20 remyd1 otherwise I would have many function with the same name
11:20 babilen You can use {{ grains['id'] }} for the latter (host, fqdn, ... )
11:21 remyd1 ok, thanks again :)
11:21 babilen np
11:21 colttt joined #salt
11:24 favadi joined #salt
11:26 impi joined #salt
11:29 hemebond LostSoul_: Should the file only have one line?
11:29 DanyC joined #salt
11:30 hemebond LostSoul_: http://paste.debian.net/415073/
11:31 babilen Make that a list
11:31 remyd1 It works :D
11:31 babilen (or just set it directly in the state)
11:31 remyd1 Thanks babilen
11:31 babilen remyd1: \o/
11:32 remyd1 :)
11:32 babilen Do not think about the changes you want to make, but about the final state you want to achieve :)
11:32 babilen (and let salt figure out the changes that are necessary for that)
11:33 remyd1 Yes, the final state works perfectly :)
11:33 remyd1 ganglia formula
11:38 bhosmer joined #salt
11:39 anmol joined #salt
11:41 shoemonkey joined #salt
11:42 mavhq joined #salt
11:46 kliquori joined #salt
11:48 ronnix_ joined #salt
11:53 LostSoul_ hemebond: It might have
11:54 LostSoul_ As config has active only one repository type
11:54 LostSoul_ babilen: Will it remove other lines?
11:54 LostSoul_ Sorry not babilen but hemebond
11:55 quasiben joined #salt
11:55 yidhra_ joined #salt
11:55 hemebond Yes, it sets the contents of the file.
11:56 hemebond http://paste.debian.net/415074/
11:56 hemebond Whatever is in the pillar will be put into the file.
11:57 LostSoul_ Will it erase all other lines?
11:57 Miouge joined #salt
11:57 hemebond Yes, it sets the contents of the file.
11:58 mavhq joined #salt
11:59 babilen (it is, essentially, equivalent to what I suggested with the difference that it allows you to set the contents in pillars)
12:00 impi joined #salt
12:00 babilen Which you might or might not need
12:01 LostSoul_ So I could do the same as I did but I need to set up other lines with such pillar was I did here, right?
12:01 babilen ... I think so
12:01 LostSoul_ Your way might be even better
12:01 LostSoul_ But tell me why didn't advice me to go regexp way?
12:03 fredvd joined #salt
12:03 babilen It really depends on your needs and your approaches so far. If you have *all other* settings in the pillar then it makes perfect sense to keep this in there too .. In fact I would be even more explicit and use a "etckeeper:backend" pillar and set that to "git" and the "- contents: - {{ "VCS='%s'"|format(salt['pillar.get']('etckeeper:backend', 'git') }}
12:05 babilen I find the regexpression way to be 1. Brittle and prone to fail (if the underlying file doesn't contain what you expect it to contain your state fails) 2. Overly complicated in that it requires quite some mental and technological overhead for a very simple task (which is "ensure a single line with ... is in the file")
12:06 SunPowered joined #salt
12:09 mavhq joined #salt
12:11 fracklen joined #salt
12:13 LostSoul_ I see your point
12:13 LostSoul_ I guess I like complex solution
12:14 LostSoul_ And I've learned a lot doing stuff "my way" :)
12:14 akhter joined #salt
12:19 akhter joined #salt
12:19 envintus joined #salt
12:20 envintus ?
12:20 envintus ?
12:20 writtenoff joined #salt
12:23 hsatterwhite joined #salt
12:23 iceyao joined #salt
12:25 ronnix joined #salt
12:26 renaissancedev joined #salt
12:27 mavhq joined #salt
12:31 cliffstah joined #salt
12:32 akhter joined #salt
12:32 bhosmer joined #salt
12:33 mavhq joined #salt
12:34 kliquori joined #salt
12:39 hsatterwhite joined #salt
12:46 mavhq joined #salt
12:49 numkem joined #salt
12:50 hsatterwhite joined #salt
12:58 sarlalian joined #salt
12:59 _JZ_ joined #salt
12:59 toastedpenguin joined #salt
13:01 kliquori joined #salt
13:02 ecerulm joined #salt
13:04 sroegner joined #salt
13:06 hasues joined #salt
13:07 toastedpenguin joined #salt
13:07 hasues left #salt
13:08 josuebrunel hey guys, how can know why a "source: salt//somedir/anotheridr/targ_dir" in a file.recurse doesn't find my target_dir ?
13:08 josuebrunel is it mandatory to have an environment to be able to manipulate files ?
13:09 josuebrunel because my /srv looks like
13:09 josuebrunel /srv
13:09 josuebrunel - state/
13:09 josuebrunel - files/
13:09 josuebrunel - pillar/
13:09 josuebrunel my state and pillars are found
13:09 josuebrunel but when i point to a file or a dir in files, salt doesn't find it
13:09 metalseargolid joined #salt
13:09 josuebrunel rights are checked and ok
13:10 hoonetorg https://github.com/saltstack/salt/pull/31859 seems still a long way to go
13:10 hoonetorg how can i fix the lint errors to hv some success feeling ? :)
13:11 subsignal joined #salt
13:11 drawsmcgraw joined #salt
13:12 shoemonkey joined #salt
13:13 shoemonkey joined #salt
13:15 nZac joined #salt
13:15 teryx510 joined #salt
13:16 babilen josuebrunel: Did you adjust file_roots to that scheme?
13:17 josuebrunel babilen: yes i did
13:17 subsigna_ joined #salt
13:17 babilen josuebrunel: Could you show me your configuration, the actual state and the error on one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … ?
13:18 josuebrunel babilen: you might be right
13:18 josuebrunel my file_root is :
13:18 josuebrunel - /srv/salt/state
13:19 josuebrunel i guess that's why he can't find the files
13:19 babilen That would be the reason, yeah .. any particular reason why you dislike /srv/salt ?
13:20 josuebrunel babilen: i just wanted to have in /srv/salt/{pillar,state,files}
13:20 envintus babilen: Could be from an older Salt install?
13:20 josuebrunel with files at the same level
13:20 gh34 joined #salt
13:21 babilen josuebrunel: Well, but you have it in /srv/{states,files,pillar} now
13:21 writtenoff joined #salt
13:22 josuebrunel babilen: like this, states can't find files i guess
13:22 josuebrunel and i really want my states to be in states
13:22 josuebrunel i think what i have to do, is to keep the state folder, add an init in it
13:23 josuebrunel and in the init.sls include other states folders
13:23 babilen Yes, but you still have to have them in the right place. If you have them in /srv/states and /srv/files you have to have that in your file_roots config. You can *not* configure file_roots to have /srv/salt/states and /srv/salt/files
13:26 akhter joined #salt
13:27 favadi joined #salt
13:28 evle1 joined #salt
13:29 _Cyclone_ joined #salt
13:31 akhter joined #salt
13:33 dmaiocchi joined #salt
13:37 yuhlw hi, I'm trying to configure the master and the minino to use ipv6.
13:38 subsignal joined #salt
13:38 edrocks joined #salt
13:38 digitalhero joined #salt
13:38 akhter joined #salt
13:38 yuhlw I've set up ipv6: True on both of them, and provided to the minion the hostname of the server. I'm still being unable to connect both of them. Not even able to do a register: salt-key does not show the new minion
13:40 akhter_1 joined #salt
13:40 yuhlw I tried to debug it with a : telnet -6 fd69:620:...bd2 4505. I've got a "telnet: Unable to connect to remote host: Connection refused"
13:41 shoemonkey joined #salt
13:42 yuhlw On the master: "netstat -apn6 | grep python | grep LISTEN" show me to python listenening on 4505 4506
13:42 akhter joined #salt
13:42 yuhlw Any idea ?
13:42 akhter joined #salt
13:43 tkharju joined #salt
13:46 yuhlw oh, and I forgot to say, the ping6 does work
13:46 mavhq joined #salt
13:47 remyd1 I enjoy writing my own modules :)))
13:48 remyd1 http://pastebin.com/NEwrPMrK
13:48 babilen ... http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … !
13:48 babilen Make the web a better place and do not use pastebin.com!
13:49 mdasilva joined #salt
13:50 perfectsine joined #salt
13:50 remyd1 paste debian does not allow me to paste that kind of peace of code
13:50 euidzero joined #salt
13:50 remyd1 will crite to gist ;)
13:51 babilen remyd1: Why not?
13:51 remyd1 I do not know it told me some special chars...
13:51 babilen http://paste.debian.net/415122/
13:52 remyd1 Humm... Think it was in the name
13:55 mapu joined #salt
13:58 dgutu joined #salt
13:58 racooper joined #salt
14:04 spiette joined #salt
14:06 josuebrunel babilen: is there a way to include state dir though ?
14:06 zmalone joined #salt
14:09 perfectsine_ joined #salt
14:14 ronnix joined #salt
14:16 Score_Under is there a shell quoting function somewhere in the salt source?
14:16 s_kunk joined #salt
14:17 mdasilva joined #salt
14:18 Talkless joined #salt
14:18 Talkless Hello, how to get default list from pillars? {% set logfiles = salt['pillar.get']('logcheck:logfiles', default=[]) %} gives NoneType
14:19 honestly remove the default=
14:19 Talkless http://pastebin.com/zdyMgdvk
14:19 Talkless I get error  {% for logfile in logfiles %}    <======================
14:19 babilen josuebrunel: Sure, just configure them *all* with the correct path in file_roots
14:20 babilen Talkless: {% set logfiles = salt['pillar.get']('logcheck:logfiles', []) %}
14:20 bhosmer joined #salt
14:21 Talkless honestly: babilen tried that, i still get: http://pastebin.com/rZkVgJ3K
14:22 writtenoff joined #salt
14:23 babilen http://paste.debian.net/415132/ ← repasted
14:23 josuebrunel babilen: thanks i figure it out
14:24 babilen Talkless: Could you paste the output of "salt 'yourminion' pillar.get logcheck" to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … ?
14:24 honestly Talkless: does it work if you put the pillar.get call directly into the for head?
14:24 kawa2014 joined #salt
14:24 babilen (and also include the *entire* state you use there)
14:25 Talkless honestly: it returns nothing, because I have commented-out logcheck pillar for.. testing.
14:26 honestly that doesn't answer my question
14:26 Talkless P.S. one should not use pastebin.com?
14:26 Talkless oh sorry honestly , I thougt if I do "salt id pillar.get..." , sorry.
14:27 kliquori joined #salt
14:27 debian112 joined #salt
14:28 Score_Under Talkless: the standard message on #archlinux when asked about pastebin.com is "Please don't use pastebin.com because it is blocked for some users, among other reasons. See !paste for a list of better ones" (and !paste gives "Some good, sane pastebins are: https://ptpb.pw/f (https://ptpb.pw) https://gist.github.com https://bpaste.net")
14:28 Talkless honestly: ... = pillar.get('logcheck:logfieles') givese NoneType error
14:28 babilen I dislike pastebin.com because it is ugly, overladen, requires captchas every now and then, is full of ads and social media integration nobody needs and mangled whitespace in the past
14:29 Talkless Score_Under: thanks.
14:29 honestly Talkless: use the call babilen suggested - salt['pillar.get']('logcheck:logfiles', [])
14:30 babilen I thought that failed with the same error ? (but then I haven't seen the actual state yet)
14:32 Talkless failed
14:32 Talkless I don't get it
14:33 Score_Under Talkless: are you actually missing that key in your pillar or is it set to None?
14:34 Talkless Score_Under: missing, there is not logcheck: at all in pillars
14:34 rojem joined #salt
14:34 relidy joined #salt
14:35 Talkless babilen: entire state without include: https://paste.debian.net/415143/
14:35 Talkless Hm, it works if salt vdebian2.somedomain state.highstate test=True pillar="{ 'logcheck': { 'logfiles': [ ] } }"
14:35 Score_Under Talkless: if you remove everything from line 3 to 11, does it work?
14:36 Score_Under (I'm worried you might be using line 1 and line 4 simultaneously)
14:36 honestly Talkless: have you tried it like this? https://paste.debian.net/415145/
14:36 Talkless Score_Under: remvoed, the same (I added them later)
14:38 babilen Talkless: I am not surprised .. you override a sensible default (i.e. [] from line 1) with None in line 4
14:38 Talkless honestly: still error {% for logfile in salt['pillar.get']('logcheck:logfiles', []) %}    <======================
14:38 Talkless babilen: these lines where commented out..?
14:38 Talkless {# ... #}
14:38 nZac joined #salt
14:38 dkrae joined #salt
14:39 babilen Aye, sure
14:39 babilen And well, you get the same issue even without that.
14:39 honestly at this point I'm ready to blame jinja
14:40 Talkless lates version: https://paste.debian.net/415146/
14:40 Talkless latest*
14:41 brianfeister joined #salt
14:42 Talkless Maybe I should post an issue to saltstack/salt?
14:43 andrew_v joined #salt
14:45 XenophonF Talkless: what does `salt ... pillar.get logcheck:logfiles` return for that minion?
14:45 rem5 joined #salt
14:46 XenophonF replace the ... with the minion id of course
14:46 XenophonF my guess is that you have logcheck:logfiles set wrong
14:46 XenophonF maybe it's set to a string or a dictionary
14:47 XenophonF so that when Jinja goes to iterate over it, it isn't a list
14:47 honestly NoneType is definitely not a list
14:47 XenophonF well, yes, hence the error
14:48 honestly if there's a default passed it shouldn't return None.
14:48 XenophonF if i had to guess, it's that logcheck:logfiles is set to an empty string or mapping
14:48 akhter joined #salt
14:49 antpa joined #salt
14:49 honestly that would result in getting back None, I suppose
14:50 babilen Didn't Talkless paste that earlier when I asked for it?
14:50 Brew1 joined #salt
14:50 tpaul Talkless: Maybe as a workaround you can use "contents_pillar"?
14:50 babilen 15:24:33         babilen > Talkless: Could you paste the output of "salt 'yourminion' pillar.get logcheck" .. was probably overlooked
14:51 boogibugs joined #salt
14:51 Talkless babilen: I tried salt.. pillaer.get, recived minion_id: and that's it. I deliberetely deleted pillar 'logcheck' data .
14:52 Talkless tpaul: walkaraound is {% if not logfiles %} {% set logfiles = [] %} {% endif %}, but it's ugly...
14:53 honestly Talkless: You should either remove the while 'logcheck' pillar, or set it to an empty list in the pillar itself.
14:53 Hetman joined #salt
14:54 honestly I suspect that as you have it now, you have the 'logcheck:' key still in the pillar file, so it exists but its value is None
14:54 Talkless hm
14:54 Talkless honestly: let me se..
14:54 Miouge joined #salt
14:54 Hetman Hello. I've got a problem that in my formula I'm installing java using RPM from sun. Then I've installing system daemon that requires java and it cannot be installed at first time because it says JAVA not in path- it's because SALT does not refreshing environment, is there is any way to force salt to refresh env during salt-call ?
14:54 honestly you can make an empty list in Yaml just by puttin []
14:55 XenophonF honestly: I checked the definition of salt.utils.traverse_dict_and_list(), used by salt.modules.pillar.get(), and it only returns the default value upon a KeyError exception
14:55 honestly XenophonF: yeah, that's what I suspected
14:55 XenophonF so if i'm reading the source correctly, a Pillar key value could be a NoneType object, which would get returned back up the stack
14:56 XenophonF hence, Talkless, we need to see the value of this logcheck:logfiles Pillar key
14:56 XenophonF because in all honesty, you've probably set the wrong value in Pillar
14:56 Talkless GOTDAMMIT, sorry guys, that whas hudge mistake... I commented out lines in pillar/logcheck.sls, but DID NOT saved it (maybe miss-pressed ctr+s). logckec:logfiles waas actually None, not undefined...
14:57 Talkless there was
14:57 Talkless logcheck:
14:57 Talkless logfikes:
14:57 Talkless None
14:57 Talkless XenophonF: yea I just checke and in fact there was logheck: logfiles: , a None...
14:59 Talkless {% set logfiles = salt['pillar.get']('logcheck:logfiles', default=[]) %} works now, both , [] and , default = [].
14:59 Talkless Thank you for all your help! I'm going home...
14:59 XenophonF Talkless: want to make that even more concise?
15:00 XenophonF you can use the join and yaml filters
15:00 Talkless I though I removed pilalr data
15:00 geomacy joined #salt
15:00 ronnix joined #salt
15:00 Talkless I commented out loghecl: logfiles: in pillars/logheck.sls, but failed to save file
15:00 XenophonF something like salt['pillar.get']("logcheck:logfiles", [])|join("\n")|yaml_encode
15:00 patarr joined #salt
15:00 Talkless so ther _was_ actually None pillar data, defaut=[] was not taken
15:01 Rumbles joined #salt
15:01 XenophonF which will pass a properly encoded YAML string to the contents argument
15:01 XenophonF none of this for loop business
15:01 Talkless XenophonF: nice, thanks.
15:01 XenophonF right the default value only gets return when the key doesn't exist
15:02 XenophonF there's a difference between a key not existing in a dictionary and a key existing in the dictionary with a (Python) value of None
15:02 Talkless yeah I wantet to check how it handles thene there is no key, but there was, because I failed to save changed file...
15:02 XenophonF it's kind of the same difference between not defining a variable and setting a variable to Null
15:02 TOoSmOotH joined #salt
15:03 XenophonF er NULL I mean, in a C sense
15:03 XenophonF anyway, i'd prefer the one-liner myself, since it makes what you're after more explicit, plus it handles serialization properly
15:03 Talkless Yeah I'll simplify it , thansk.
15:04 Talkless Bye everyone. That was hard monday...
15:04 XenophonF cheers
15:04 metalseargolid joined #salt
15:05 amcorreia joined #salt
15:06 envintus joined #salt
15:06 rem5 joined #salt
15:08 quix_ joined #salt
15:12 fracklen_ joined #salt
15:13 antpa joined #salt
15:14 euidzero joined #salt
15:15 denys joined #salt
15:15 Ahlee joined #salt
15:16 rem5 joined #salt
15:23 JohnnyRun joined #salt
15:23 writtenoff joined #salt
15:23 dfinn joined #salt
15:26 cliffsta_ joined #salt
15:28 debian112 joined #salt
15:30 viq joined #salt
15:33 honestly I am using salt-ssh 2015.5.3, on Python 2.7.6, is that expected to handle utf-8 input?
15:33 tapoxi joined #salt
15:34 Garo_ joined #salt
15:35 akhter joined #salt
15:36 beardedeagle joined #salt
15:36 babilen honestly: Every application in use today is expected to handle utf-8
15:36 babilen (that doesn't mean that they all do)
15:36 honestly well yeah.
15:36 honestly I went and made an issue. https://github.com/saltstack/salt/issues/31869
15:38 honestly hmmm, weeeird
15:39 honestly doesn't happen if the umlaut is just on the fullname
15:40 honestly it does in my actual state but not in the repro...
15:42 honestly ah it only happens if the user exists.
15:42 honestly so that it tries to put the user's full name into the result comment.
15:43 debian112 joined #salt
15:44 babilen honestly: fwiw, I would advise against umlauts in usernames
15:45 honestly I expect salt to look into the loaded barrel and do something useful anyway :P
15:46 babilen "Tell me that I'm bad" ;)
15:46 digitalhero joined #salt
15:49 akhter joined #salt
15:51 shoemonkey joined #salt
15:51 pwalsh joined #salt
15:54 DammitJim joined #salt
15:56 akhter joined #salt
15:56 drawsmcgraw left #salt
15:56 grumm_servire joined #salt
15:56 beardedeagle Is their anything special that needs to be done, that isn't in the doc's, to enable the /ws endpoint for salt-api other than installing ws4py? Keep getting 500 errors
15:58 rem5 joined #salt
16:00 DammitJim weird... I don't know why I am having issues with this one server
16:00 josuebrunel hi guys, how can i make salt-ssh find my pillars ?
16:01 DammitJim salt can't perform the ssh_auth.present saying that: Failed to add the ssh key. Is the home directory available, and/or
16:01 DammitJim does the key file exist?
16:01 DammitJim this same state works on another minion
16:02 mpanetta joined #salt
16:03 mpanetta joined #salt
16:04 akhter joined #salt
16:07 beardedeagle error I am getting on the master for the /ws issue: https://gist.github.com/beardedeagle/0039907b77663b55a781
16:08 goudale joined #salt
16:08 bhosmer joined #salt
16:10 goudale hi all
16:10 goudale let's suppose I have two states, that both write data to logfiles
16:11 goudale let's call them /var/log/state1.log and /var/log/state2.log
16:11 Hetman Gents is that correct syntax for list in yaml ? http://pastebin.com/EhKAWML2
16:11 goudale now suppose I have a third states, which is supposed to collect those logs
16:11 goudale is there a mecanism to declare the log path in the state1.sls and state2.sls file
16:12 goudale then pull them in the third logcollector file ?
16:12 DammitJim weird... I just had to restart the minion and it worked.... didn't think something like this would be an issue
16:12 akhter joined #salt
16:12 josuebrunel hi, how come salt-ssh can't find my pillars ? thus raise a TypeError when i try to use {%for stuff in pillar.get[stuff]%} ?
16:13 goudale josuebrunel: don't you need a space between % and for ?
16:14 josuebrunel goudale: nope, jinja does understand it
16:14 josuebrunel the thing is that, it doesn't find my pillars. Which is just weird since it worked when i was using salt/salt-call
16:15 akhter joined #salt
16:15 josuebrunel are formula mandatory when using salt-ssh ?
16:16 gtmanfred josuebrunel: pillar.get(stuff)
16:16 gtmanfred or pillar[stuff]
16:16 gtmanfred get is a function, not a dictionary
16:17 rem5 joined #salt
16:18 malinoff joined #salt
16:19 beardedeagle looks like I have the recommended version of cherrypy installed for use with ws4py
16:20 josuebrunel joined #salt
16:21 drawsmcgraw joined #salt
16:22 mavhq joined #salt
16:22 goudale should i set up grains in my state1/state2, then retrieve them in the logcollector state ?
16:22 beardedeagle based on the error though this has to be an issue with salt-api/cherrypy itself
16:30 mavhq joined #salt
16:33 armyriad joined #salt
16:34 josuebrunel how can i render pillar when using salt-ssh ?
16:34 josuebrunel do i have to manually copy those pillar onto the targeted minion ?
16:35 malinoff joined #salt
16:36 josuebrunel salt/salt-call is able to render pillar and apply config onto targeted minion, but when using salt-ssh, i don't have my pillars ?
16:36 goudale josuebrunel: grain.get(stuff)
16:36 goudale (has said gtmanfred before you timedout)
16:36 josuebrunel goudale: also tried pillar.item '<my_pillar>'
16:37 josuebrunel salt-ssh 'my_minion' pillar.items 'pillar_data_name' and it can't find it
16:37 gtmanfred do a pillar.get
16:37 goudale i meant pillar.get() actually
16:37 gtmanfred salt-ssh 'my_minion' pillar.items
16:37 gtmanfred don't pass an extra argument
16:38 gtmanfred items just returns all items
16:38 gtmanfred if you want to get one
16:38 beardedeagle updated gist with code from my method and server response in case anyone cares to take a look: https://gist.github.com/beardedeagle/0039907b77663b55a781
16:38 gtmanfred then do `salt-ssh 'my_minion' pillar.get 'pillar_data_name'`
16:38 josuebrunel goudale: still not found
16:38 digitalhero joined #salt
16:38 josuebrunel gtmanfred: how to pass my pillar to my minion ?
16:38 gtmanfred josuebrunel: what do you get back from `salt-ssh 'my_minion' pillar.items` ? is it in that list?
16:39 gtmanfred did you specify the pillar to be applied to that minion glob in your pillar top.sls file?
16:39 josuebrunel gtmanfred: list of all pillars except mine
16:39 akhter joined #salt
16:39 josuebrunel i have tried :
16:40 gtmanfred how are you specifying your extra pillar data?
16:40 josuebrunel in my /etc/salt/master
16:40 josuebrunel gtmanfred: with extra_filerefs ?
16:40 josuebrunel in /etc/salt/master ?
16:40 gtmanfred I have never used that :/
16:41 edrocks joined #salt
16:41 gtmanfred i see an old bug about that https://github.com/saltstack/salt/issues/18353
16:41 gtmanfred but looks fixed
16:41 gtmanfred what version of salt are you on?
16:41 akhter joined #salt
16:42 RedundancyD joined #salt
16:42 hightekvagabond joined #salt
16:44 pfallenop joined #salt
16:44 GreatSnoopy joined #salt
16:44 digitalh_ joined #salt
16:45 Aleks3Y joined #salt
16:45 josuebrunel salt-ssh 2015.8.7 (Beryllium)
16:45 josuebrunel gtmanfred:
16:47 gtmanfred it seems like it should work if your salt-call works correctly
16:47 cornfeedhobo left #salt
16:48 josuebrunel gtmanfred: it works with salt-call indeed
16:48 josuebrunel but doesn't with salt-ssh
16:48 writtenoff joined #salt
16:50 khaije1 joined #salt
16:51 khaije1 could anyone point me to a write up and/or walkthrough of how to bootstrap a salt-master using the salt-formula ?
16:52 akhter joined #salt
16:52 khaije1 As I learn about it, it clear this is what I should be using but uncertain how best to get started using it.
16:53 gtmanfred khaije1: here is a doc for using formulas https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
16:54 gtmanfred then here is the configuration
16:54 gtmanfred https://github.com/saltstack-formulas/salt-formula#configuration
16:54 gtmanfred once you have it setup, you should be able to use salt-call --local state.sls salt.master, to deploy the master formula on that box
16:55 gtmanfred josuebrunel: unfortunately i haven't used salt-ssh hardly at all, so i have no idea
16:55 josuebrunel gtmanfred: thanks though
16:55 gtmanfred josuebrunel: it is worth noting, that salt-ssh should just be calling a salt-call from the minion, using the shim
16:56 gtmanfred josuebrunel: i recommend trying this https://docs.saltstack.com/en/latest/topics/ssh/#debugging-salt-ssh
16:57 envintus joined #salt
16:57 khaije1 gtmanfred: pillars will use default values for anything that isn't explicitly set, correct?
16:57 gtmanfred khaije1: it will use what is in the map.jinja file yeah
16:58 gtmanfred https://github.com/saltstack-formulas/salt-formula/blob/master/salt/map.jinja
16:59 mavhq joined #salt
17:00 hightekvagabond joined #salt
17:00 akhter joined #salt
17:01 envintus joined #salt
17:02 Garo_ joined #salt
17:02 mdasilva_ joined #salt
17:02 akhter joined #salt
17:03 akhter joined #salt
17:05 Garo_ joined #salt
17:05 onlyanegg joined #salt
17:05 Garo_ left #salt
17:11 keisetsu joined #salt
17:11 SunPowered joined #salt
17:13 XenophonF khaije1: regarding bootstrapping a master with salt-formula, let me make sure the script i wrote for work doesn't leak anything important
17:13 pfallenop joined #salt
17:13 pfallenop joined #salt
17:13 khaije1 XenophonF: that'd be grand! I think I have everything in place but still getting weird errors
17:14 * khaije1 afk brb
17:14 keisetsu I'm trying to set up a server using saltify. Everything seems to work, I get a "deployed: true", salt-key shows the minion's key as accepted and when I ssh into the server, salt-minion is indeed installed and running. But when I run salt '*' test.ping I get no response
17:16 baweaver joined #salt
17:16 baweaver joined #salt
17:17 mavhq joined #salt
17:17 AndreasLutro keisetsu: check the master and minion logs
17:17 keisetsu have a SaltReqTimeoutError
17:18 AndreasLutro possibly a network error then, check that ports are open etc
17:18 keisetsu Oops, that was supposed to be a longer message, but anyway, that's the summary.
17:19 keisetsu Ok, will look into it.
17:19 Eugene Has anybody played-around with running a salt-minion on pfSense? There's not a package for it in the GUI, but `pkg install py27-salt` seems to work fine from the console
17:20 Eugene Assuming I don't try to manage anything that would conflict with the GUI, I can't see any obvious failures, but I'd love some thoughts
17:20 XenophonF i'm surprised that worked
17:20 XenophonF neat
17:20 XenophonF i'll have to give it a try msyelf
17:23 Eugene Aha, it didn't! pfSense is missing some of the FreeBSD rc stuff
17:23 XenophonF yeah they replaced /etc/rc with something that's php-driven, i think
17:24 XenophonF something like that
17:24 Eugene Yeah. I'm not sure thats a rabbit hole I want to dive down
17:24 XenophonF it's been a while since i dug under the covers
17:24 XenophonF there might be an rc.local somewhere
17:24 AndreasLutro php-driven init system?!!?
17:24 Eugene `service salt_minion start` fails, but the suggested `service salt_minion onestart` does work
17:24 XenophonF AndreasLutro: don't quote me on that
17:25 AndreasLutro I almost want it to be true
17:25 guest11 joined #salt
17:25 stupidnic XenophonF: PFSense is based off of m0n0wall which did have a PHP based init system
17:25 guest11 Hi,
17:25 stupidnic I haven't used PFSense in a long time so I don't know if it was replaced or not
17:25 guest11 Does salt works with katello?
17:26 Eugene /etc/rc.bootup starts with a php header
17:26 XenophonF yeah, they replaced /etc/rc with a shell script that eventually calls php
17:26 guest11 If it doesn't. which tool you can recommend for provisioning?
17:26 XenophonF and the rest of pfsense is written in php (mostly)
17:27 XenophonF Eugene: /etc/rc.initial will run /etc/rc.local if it exists
17:27 Eugene That's what I was just digging into
17:27 guest11 How many modules there are in Salt?
17:28 XenophonF /etc/rc.subr is there so i bet that salt-minion's init script will work
17:28 XenophonF of course then the question is, how would you interface with pfSense?
17:28 guest11 If it doesn't. which tool you can recommend for provisioning?
17:29 Eugene I really just need to manage users/pubkeys
17:29 XenophonF oh well that should be quite a bit simpler then :)
17:29 stupidnic From what it sounds like... not much has changed from m0n0wall... so there is a configuration file that is stored in a RAM disk that is mounted on boot
17:30 XenophonF i think that's right
17:30 stupidnic that's how you persist data between reboots
17:30 XenophonF iirc it's an xml file
17:30 Eugene Indeed, just a few simple states
17:31 Eugene I'm fairly certain that / is persistant across reboots, if you've installed-to-disk(which all of my pfsenses are)
17:31 XenophonF khaije1: here's my salt-master-bootstrap.sh, with sensitive stuff elided - https://gist.github.com/xenophonf/d8da7f47ea29d9ad46e7
17:31 Eugene This is my first foray under the covers; we haven't had a need to do it yet
17:31 XenophonF khaije1: i haven't updated it in a while, e.g., there are references to the SaltStack COPRs, which aren't used any more IIRC
17:31 ronnix joined #salt
17:31 stupidnic Eugene: yeah I am not familiar with that mode. I used Compact Flash modules with IDE interfaces
17:32 stupidnic great for low power installs
17:32 Eugene We've been deploying the official pfSense-branded hardware, it's very shiny
17:33 ageorgop joined #salt
17:36 rihannon joined #salt
17:38 baweaver joined #salt
17:40 guest11 Anyone? :(
17:40 guest11 How many total modules there is in Salt?
17:40 edrocks joined #salt
17:41 brianfeister joined #salt
17:41 stupidnic guest11: https://docs.saltstack.com/en/latest/ref/modules/all/index.html
17:41 rm_jorge joined #salt
17:41 XenophonF guest11: don't know offhand but you can do something like `(cd /usr/local/lib/python2.7/site-lib/salt/modules && ls -l | wc -l)` to get the answer for yourself
17:43 impi joined #salt
17:44 guest11 Thank you XenophonF but I don't have this directory
17:45 mdasilva joined #salt
17:46 guest11 How can I find the lib directory of all modules?
17:46 guest11 in my env
17:46 sergeyt joined #salt
17:46 guest11 salt 2015.8.5 (Beryllium)
17:47 jfindlay execution modules?
17:47 jfindlay /usr/lib/python2.7/site-packages/salt/modules
17:47 XenophonF oh right site-packages
17:47 XenophonF duh
17:48 XenophonF guest11: i'm on freebsd so python gets installed to /usr/local
17:48 guest11 amm
17:48 guest11 I have an empty lib
17:49 XenophonF oh speaking of how the whole world doesn't run linux, is anyone actively working on packaging salt for use with openindiana?
17:49 whytewolf guest11: how was salt installed [cause it might not be in /usr/local
17:49 XenophonF because if not, i might tackle it
17:49 guest11 I install from the steps from salt
17:49 XenophonF guest11: which operating system?
17:49 guest11 apt-get install -y salt-master
17:50 guest11 ubuntu
17:50 josuebrunel hi guys, anyone knows how to pass master pillars to a minion when using salt-ssh ? ( salt agentless )
17:51 jfindlay XenophonF: there are enterprise packages for solaris
17:51 whytewolf guest11: /usr/lib/python2.7/dist-packages/salt/modules/
17:51 jfindlay and community packages for smartos
17:51 XenophonF ls
17:51 XenophonF whoops sorry
17:51 * XenophonF needs to set the mouse to 'focus follows eyes'
17:51 drawsmcgraw joined #salt
17:52 whytewolf focus follow mental projection of what i want
17:52 jfindlay guest11: if you only installed the salt-master package, you may not have execution modules installed since they're minion-side code
17:52 jfindlay but I'm not sure of that
17:52 jfindlay depends on the contents of salt-commin
17:53 jfindlay salt-common
17:53 ajw0100 joined #salt
17:53 guest11 thank you
17:53 guest11 I see 442
17:54 zmalone joined #salt
17:55 guest11 thank you XenophonF and jfindlay
17:56 Miouge_ joined #salt
17:56 bhosmer_ joined #salt
17:56 guest11 I need a good excuse to choose salt and not puppet
17:57 guest11 puppet have 4000 and salt 441
17:57 grumm_servire joined #salt
17:57 jalbretsen joined #salt
17:57 khaije1 I was able to get it to work, woohoo!
17:57 sfz- joined #salt
17:57 envintus guest11: Salt is deterministic whereas Puppet is not. Also, Salt has a much lower barrier of entry.
17:57 guest11 I love salt, but my managers here want justification
17:57 Bucciarati joined #salt
17:58 envintus Also, take in to consideration that Python is the now-defacto Pearl with Salt being developed in Python.
17:58 khaije1 I found that I had to add a gitfs_base: master ,, and remove the gitfs_mountpoint: salt://formula/salt and gitfs_root: salt  configs (unfortunately)
17:59 guest11 I need big excuse becase I realy like salt
17:59 guest11 I need a good justification
17:59 khaije1 basically because of internal path'ing in the formula ... I hope to find a work-around to get these formulas namespaced as I'm hoping
17:59 ekkelett joined #salt
18:00 AndreasLutro if you go by the number of modules to judge which configuration management tool to use, maybe you're not fit to make that decision
18:03 guest11 I don't  judge by it
18:03 guest11 I judged by some other paramers like support, debug , etc
18:03 akhter joined #salt
18:03 guest11 But this is me. My managers are differents
18:03 babilen guest11: I'd implement a reasonably complicated solution in both systems and then compare them
18:04 guest11 I need a good justification... althought I realy love salt. I installed it in half and hour and work with it
18:04 guest11 and what is you conclutions?
18:04 guest11 How did you compare them?
18:05 babilen As a Python developer my allegiances were clear ;)
18:06 whytewolf me personally I use salt over puppet cause i didn't want yet another language to support and i have lots of python based tools. so going with a ruby based tool was almost a non starter for me.
18:06 babilen I did that with ansible though and found salt to be much more to my liking as turned out to be fairly easy to implement various parts of it in Python and integrate that into the system right away
18:06 khaije1 guest11: I've pushed adoption of salt by explaining that it's better to have one solution with infinite capability instead of multiple systems that all claim to be config mgmt system
18:07 khaije1 iow, having multiple config mgmt systems in use over the same resources leads to bad things
18:07 khaije1 chef, puppet et all dont actually solve the whole problem, they address only state adherence without speaking to orchestration or managed state change
18:08 khaije1 they also lack imperative change and audit capabilities that are incredibly useful
18:08 Azid joined #salt
18:08 khaije1 salt is all this and more
18:08 khaije1 it's design makes it possible for it to add huge swathes of new functionality in a rapid but stable way
18:09 khaije1 it goes on from there, but these are some good points to hit.
18:10 RalfJ joined #salt
18:11 baweaver joined #salt
18:11 guest11 can you use mcollective with salt?
18:11 RalfJ Hey there. I have a question concerning pillars. We'd like pillars to distribute some sensitive data to minions, like private keys. however, these keys are stored in files and deployed as "file.managed", whereas it seems that pillars can only provide a dict that is available via {{ pillar }}. is there a way to add files in the pillar that can be referenced in e.g. a file.managed?
18:11 guest11 thank you <khaije1> guest11: I've pushed adoption of salt by explaining that it's better to have one solution with infinite capability instead of multiple systems that all claim to be config mgmt system [20:07] <khaije1> chef, puppet et all dont actually solve the whole problem, they address only state adherence without speaking to orchestration or managed state change [20:08] <khaije1> they also lack imperative change and audit capab
18:11 mpanetta RalfJ: contents_pillar is the thing you are looking for I believe
18:12 mpanetta RalfJ: it is in the file.managed docs
18:12 guest11 sorry I want to write you thank you khaije1
18:13 guest11 Then the big advantages as you say that Salt is make a solution to all sides in Configuration managment tool right?
18:13 guest11 like orchestration , state change and etc
18:13 guest11 khaije1??
18:14 RalfJ mpanetta: I see, so I still have to put the private key into a YAML file, but at least I can make file.managed reference it? sounds like it should solve the problem
18:14 RalfJ thanks!
18:14 khaije1 guest11: right. The understanding of what config mgmt _means_ has evolved over time. Salt is the first complete tool imo.
18:14 captain_magnus joined #salt
18:14 guest11 :)
18:14 guest11 good point
18:14 mpanetta RalfJ: yep, no problem :)  And you can use gpg pillar to protect the data at rest on your master if you want.
18:14 khaije1 Other tools may have bigger communities but they represent momentum behind an incomplete idea.
18:14 digitalhero joined #salt
18:15 amcorreia joined #salt
18:15 guest11 thank you
18:15 honestly joined #salt
18:15 guest11 If I have 150 vm hosts and so
18:15 RalfJ mpanetta: going to look into that gpg stuff :)
18:15 guest11 and I want to check the process in all of them
18:15 guest11 It will be fast?
18:16 foundatron Ralfj, we use locked down s3 pillars for sensitive data
18:16 guest11 how is the debug mode in salt? If I encounter a problem
18:16 guest11 Can I search it fast?
18:17 RalfJ mpanetta: you mean this one for gpg pillars? <https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.gpg.html>
18:17 RalfJ foundatron: "s3" as in "amazon s3"?
18:17 mpanetta RalfJ: Nah, the gpg renderer, as found here: https://docs.saltstack.com/en/latest/ref/renderers/
18:18 RalfJ mpanetta: oh, did not hear about "renderers" before. sounds intriguing.
18:22 guest11 anyone know?
18:23 Gareth joined #salt
18:23 ronp_usa joined #salt
18:24 johnkeates joined #salt
18:25 foundatron yeah
18:25 johnkeates joined #salt
18:26 guest11 Is anyone debug scripts via salt?
18:26 guest11 How was you experience?
18:26 guest11 your
18:26 beardedeagle @guest11: it is *fast* from salts standpoint, but overall speed depends on several factors outside of salt as well. and if you want debug you just -l debug on the command
18:27 envintus Has anyone ever loaded a YAML file in to making their pillar data more "DRY" as described in the following Github issue? https://github.com/saltstack/salt/issues/6955
18:27 envintus Any pros/cons?
18:27 beardedeagle this is in saltstacks documentation by the way. Have you checked out the docs?
18:27 envintus beardedeagle: me or guest11?
18:27 beardedeagle not you @envintus
18:27 guest11 I read that the debug in puppet very complicated
18:28 XenophonF guest11: i'm not a professional software engineer, but i have found extending salt to be very straightforward
18:28 guest11 yes I read it
18:28 beardedeagle there are sections on debugging and troubleshooting
18:28 guest11 yes I read
18:29 whytewolf guest11: at some point if you want to make a fair comparison you are going to need to setup enviroments of both and given them simalar tasks
18:29 XenophonF guest11: for example, i've begun writing my own state and execution modules for Active Directory Federation Services - https://github.com/irtnog/active-directory-formula/blob/master/_modules/identityserver_sts.py and https://github.com/irtnog/active-directory-formula/blob/master/_states/identityserver_sts.py
18:29 guest11 I want this be a good justification
18:29 XenophonF some time soon i plan to tackle SharePoint
18:29 whytewolf guest11: a good justifcation is a subject matter that only you and you managers can decide
18:30 guest11 Yes, you are right
18:30 guest11 but, my managers want the all picture
18:30 whytewolf we can spew endless facts. but in the end you have to do some elbow greese
18:30 beardedeagle right, and you will be hard pressed not to find the answers to your questions in the docs, barring that the code
18:31 guest11 I take in account support, debug, security
18:31 guest11 I heard that was a problem with security in salt
18:31 guest11 right?
18:31 beardedeagle in what way
18:31 beardedeagle do you have an example
18:31 guest11 Do you speak with me?
18:32 whytewolf example? it doens't stop you from doing insecure things. such as targeting on items that are under the minions control.
18:32 antpa joined #salt
18:32 XenophonF iirc there was some criticism of the security mechanisms protecting salt's IPC layer that are supposed to be addressed by raet
18:32 beardedeagle yes that was intended for you @guest11
18:32 XenophonF i don't confess to understanding those criticisms, though
18:32 whytewolf iirc those same issues were addressed by tornado
18:33 guest11 I read some issues about the security in the past in salt
18:33 guest11 but I think this was fix
18:33 guest11 correct me if I wrong?
18:34 whytewolf security issues have happened in every piece of software at some point. with out examples can't address the question
18:34 beardedeagle @guest11: that is entirely to vague
18:35 guest11 yes you are right of course
18:35 guest11 How is the performance?
18:35 guest11 I read it is very good
18:35 zmalone I've found that Salt can be flakey about handling file permissions, and some modules / formulas that are out there offer no built in permission handling, so you need to be very careful about auditing your files after a run, and figure out where you need to add in a file.managed after the fact
18:35 whytewolf performence is great.
18:36 beardedeagle there is also a section on things you can do to improve performance further if you are trying to squeeze as much out as possible.
18:36 zmalone The group behind Salt has made some truly awful encryption mistakes in the past, which is why a lot of people are wary of the off the beaten path salt + DJB elliptic curve encryption that they now use
18:37 zmalone ex. http://www.cryptofails.com/post/70059600123/saltstack-rsa-e-d-1
18:37 guest11 oh I see
18:37 guest11 I need to go
18:37 guest11 Thank you very much for all helpers
18:37 guest11 I will connect tomorrow
18:37 fyb3r joined #salt
18:37 guest11 And we will discuss if you will be here
18:37 guest11 bye
18:38 XenophonF wow that's pretty awful
18:38 beardedeagle did not know about that
18:38 denys joined #salt
18:39 beardedeagle 3 years ago, I would *hope* that has been corrected
18:39 forrest joined #salt
18:39 whytewolf well IIRC m2Crypto is no longer used. not sure which crypto package they do use now though. but yeah this was fixed
18:42 XenophonF they use py2crypto now
18:43 zmalone Yes, things are now completely different, but as I mentioned, stuff like that is why the reputation is a little shaky
18:43 zmalone "CVE-2016-1866: Improper handling of clear messages on the minion, which could result in executing commands not sent by the master." was scary sounding too, although tricky to pull off in the real world
18:44 XenophonF beardedeagle: if you look at the commit to which cryptofails links, you'll see that it fixes the issue mentioned
18:44 ryan12 joined #salt
18:45 zmalone CVE-2015-8034 effected me too
18:45 __number5__ joined #salt
18:45 zmalone and was far easier to exploit, if someone had local access
18:45 fyb3r all exploits are though
18:46 elektrix joined #salt
18:46 fyb3r thus why wifi is such a big deal if you use weak passwords / old encryptions
18:46 fyb3r if i have local access to your network, ill do anything i want lol
18:46 mdasilva joined #salt
18:48 beardedeagle created issue: https://github.com/saltstack/salt/issues/31873
18:50 whytewolf beardedeagle: is that even touching salt? those errors look like they never leave the cherrypy and websocket layers
18:52 beardedeagle doesn't look like it makes it past the netapi.rest_cherrypy.app to me
18:53 ancients ok. Dumb question. I am trying to export a pillar variable to a config file in json. But it keeps using an array of key-value objects instead of a single object with key-value pairs. Any ideas how to adjust this?
18:54 ryan12 Aside from the GUI, ServiceNow integration, and included support, how dows SaltStack Enterprise differ from the community version?
18:55 akhter joined #salt
18:58 akhter joined #salt
18:59 digitalh_ joined #salt
19:02 fredvd joined #salt
19:04 uictamale joined #salt
19:04 ancients dumb question solved. I just don't know YAML well.
19:05 uictamale Sup salty peeps.  I'm trying to get salt-api/saltpad running on my centos box, so far I got the master installed and running without any obvious errors, but after installing salt-api (with yum) and starting it, I'm getting AttributeError: 'module' object has no attribute '_create_loader' in the /var/log/salt/master log
19:05 uictamale any ideas?
19:06 forrest uictamale, https://github.com/saltstack/salt/issues/24654
19:06 cyborg-one joined #salt
19:06 uictamale thanks, I just found that and was reading
19:07 forrest np
19:07 uictamale is there a meta package I should be installing for centos?
19:07 forrest ?
19:08 Netwizard joined #salt
19:08 forrest You installed salt already right? the api should be on there.
19:08 uictamale I installed the package "salt-master"
19:08 uictamale I can't run 'salt-api' on its own after just installing that package.
19:08 uictamale -bash: /usr/bin/salt-api: No such file or directory
19:08 beardedeagle you have to install salt-api
19:08 beardedeagle it's dumb
19:09 uictamale ok...?
19:09 beardedeagle yum install salt-master salt-api
19:09 uictamale and then I'm back where I started :)
19:09 forrest Yeah it depends on the distro, beardedeagle uictamale already installed salt-api
19:09 forrest uictamale, What version of salt-api did you install?
19:10 uictamale then I should be able to 'start' salt-api right?
19:10 beardedeagle ah, didn't read. my bad
19:10 beardedeagle yes
19:10 uictamale Right, that's when I get that error
19:10 beardedeagle it runs as it's own service when you install that package
19:11 lungaro does anyone know if I can disable the management of resolv.conf ?
19:11 uictamale There's nothing in /var/log/salt/master until I try to start start-api. That's when AttributeError: 'module' object has no attribute '_create_loader' shows up
19:11 beardedeagle can you gist the entire error?
19:12 uictamale sure
19:13 johnkeates left #salt
19:14 uictamale OK, actually now after starting over from scratch I have no errors in my logs but salt-api isn't starting
19:14 uictamale Does it have any logs on its own?  If so I can't find them easily
19:15 beardedeagle salt-api will log to /var/log/salt/master
19:15 uictamale ok thanks - yah that's blank
19:15 uictamale ps -ef | grep salt only shows master processes running
19:15 digitalhero joined #salt
19:16 noraatepernos joined #salt
19:17 tapoxi joined #salt
19:18 noraatepernos I’m confused about something basic.  Where do grains live?  On the minion or the master?  Like, I need to use ec2 grains to extract Tag values from an instance that are used in ec2 deployments.  Can this ec2 grain data be referenced in my sls with template {} tags?
19:19 AndreasLutro noraatepernos: grains live on the minion. yes, grains can be referenced in sls files
19:22 baweaver joined #salt
19:22 uictamale beardedeagle: figured it out by running: "sudo salt-api -l all"   - I just needed to have tornado installed
19:23 uictamale wonder if that could somehow be included?
19:23 beardedeagle it should have been
19:23 beardedeagle did you use salt's repo?
19:26 digitalh_ joined #salt
19:27 beardedeagle @whytewolf: I figured out what the issue is with the websockets endpoint
19:27 fracklen joined #salt
19:28 uictamale Actually I think this pulled from the EPEL repo
19:28 beardedeagle I personally just use salts repo for setup
19:29 digitalhero joined #salt
19:29 beardedeagle Not sure how epel pulls, tbh but tornado should have been installed as a part of the salt-master package
19:29 uictamale ok
19:29 uictamale well, good to know - I think I'm good for a little while longer now - thanks!
19:30 brianfeister joined #salt
19:35 mavhq joined #salt
19:35 digitalhero joined #salt
19:36 dmaiocchi joined #salt
19:39 uictamale Anyone in here familiar with saltpad?  https://github.com/Lothiraldan/saltpad/
19:40 akhter joined #salt
19:42 __number5__ joined #salt
19:42 forrest I know of it but have not set it up.
19:42 beardedeagle a bit
19:44 bhosmer_ joined #salt
19:44 uictamale I think it might be smarter if I just ask in here - I'm starting a lot of 'green field' stuff in GCE and soon EC2
19:45 XenophonF uictamale: i was playing with it a little, https://github.com/irtnog/salt-states/tree/development/saltpad
19:45 uictamale And I'm hoping to leverage salt
19:45 babilen Maybe there is something specific uictamale wants to know about saltpad?
19:45 XenophonF uictamale: i did the same using salt and EC2 over the last 1.5 years
19:45 babilen (or are you really interested in the number of non-idling people in #salt who are familiar with it?)
19:45 uictamale Would you guys recommend using salt (with a tool like saltpad as well) to not only configure but also provision instances?
19:45 uictamale haha yah sorry about that, babilen
19:46 XenophonF uictamale: i would absolutely recommend salt-cloud to you
19:46 babilen ^
19:46 forrest Yeah salt-cloud would be your best bet.
19:47 XenophonF while i'm at it, i'll point you toward gitfs and salt-formula
19:47 uictamale excellent, thank you.  And is that instead of  or in addition to a web tool like saltpad?  It's important for parts of the infrastructure to be 'self service' to other teams
19:47 forrest A lot of us having been using Salt since there was no web tool, what is your goal with the self service?
19:47 XenophonF i haven't looked at saltpad in a while, but last i did, it was far from feature-complete
19:47 forrest Salt cloud + the reactor can handle autoscaling for incidents and such
19:47 babilen I haven't used saltpad so I can't comment on it and Saltstack never got back to us concerning Saltstack Enterprise (guess they don't want to sell it)
19:47 XenophonF you might want to have a chat with SaltStack actual about their enterprise product offerings
19:48 uictamale For instance, team A wants a spark cluster - they should be able to select GCE or AWS and spawn a new set of servers on demand (using images our team prepares for them)
19:48 babilen If you manage to hear from them ..
19:48 forrest XenophonF, If there is interested in a paid thing yeah.
19:48 forrest *interest
19:49 uictamale they "paid" by hiring me and the rest of the people on our team, hehe
19:49 uictamale salt's just one tool I'm looking at  - I'm also testing out terraform, and packer
19:49 uictamale and ansible
19:50 forrest You're probably going to get a lot of uhh varied opinions when it comes to providing devs with the ability to just spin instances.
19:50 uictamale this gitfs XenophonF ?  https://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html
19:50 gtmanfred uictamale: that is it
19:50 * babilen nods
19:51 uictamale forrest: it's more like "I don't know anything about system administration, but I can handle myself in an ipython notebook and spark cluster"
19:51 liqw joined #salt
19:51 forrest Oh you're talking about for dev work?
19:51 babilen Sounds as if you need some people on the team who do!
19:51 uictamale "just give me a way to get a hadoop/spark/cassandra/storm ... etc cluster whenever we need one"
19:52 uictamale sp we
19:52 AndreasLutro you could do that without a webapp that's tied to salt
19:52 forrest Do they need a shared cluster? Why aren't they doing this dev locally?
19:52 uictamale True, but I feel that we can secure a webapp better than giving people some kind of special shell tool
19:52 uictamale they already do all the dev locally
19:52 babilen uictamale: Wouldn't local vagrant boxes be better suited ?
19:53 gtmanfred vagrant boxes or docker-compose stuff
19:53 uictamale this is when they need 100,000 cores
19:53 gtmanfred is what i would use :/
19:53 gtmanfred ahh
19:53 brianfeister joined #salt
19:53 uictamale yah... :)
19:53 forrest I mean having them spin envs seems dumb to me, it goes against the philosophy of the dev/test/prod mentality in terms of development
19:53 uictamale I feel like I'm not telling enough of the story
19:53 uictamale they've already tested their big-data jobs/workloads in smaller environments
19:54 uictamale and the existing hardware is getting over-stressed
19:54 uictamale thus, 'the cloud'
19:54 AndreasLutro personally I'd just write my own scripts/webapp to wrap over whatever tools I'd be using
19:55 uictamale yah that's basically where I'm headed
19:55 MindDrive joined #salt
19:55 uictamale I got a proof of concept working with just terraform and packer (and a tiny bit of ansible to launch it)
19:55 forrest Yep I would use salt/salt-cloud for all the provisioning and just write some shitty little wrapper
19:55 dean joined #salt
19:55 forrest No comment on ansible
19:55 uictamale but when it came time to go to 'self service' mode I felt like I couldn't easily wrap up what I had done with ansible
19:55 AndreasLutro we use terraform + cloud-init to get a new instance connected to the salt master, everything from there is driven by salt's event system
19:56 uictamale that model appeals to me, too
19:56 AndreasLutro and we have a python app which does the terraform templating bit
19:56 uictamale ha, sounds very similar to what we did at my last place with puppet.
19:56 uictamale we had python prepare a lot of the puppet templates.
19:57 AndreasLutro makes sense
19:57 AndreasLutro top file matching more or less removes that need from salt
19:57 uictamale what's interesting about this new place is each 'project' is completely separate from the others.  So if I go with salt I'll probably have a separate master per project
19:57 fracklen joined #salt
19:57 uictamale which sounded really bad until I found out about https://docs.saltstack.com/en/latest/topics/topology/syndic.html
19:57 gtmanfred you could just have a seperate environment in your master setup per project
19:58 forrest go with different envs, not syndic
19:58 forrest it's still... touchy
19:58 gtmanfred no need for syndic
19:58 uictamale maybe I can make it work with a single master.  The jury's out on that one.
19:58 gtmanfred uictamale: https://docs.saltstack.com/en/latest/ref/states/top.html#multiple-environments
19:58 AndreasLutro I'd just go single env, single master setup, to keep everything as uniform as possible
19:58 uictamale thanks
19:58 AndreasLutro I hate salt environments :/
19:59 yaryarrr joined #salt
19:59 forrest Why?
19:59 gtmanfred they are pretty good
19:59 forrest Note gtmanfred is biased as he works for Salt :P
19:59 uictamale haha
19:59 uictamale noted
19:59 yaryarrr curious, is there documentation somewhere the salt master autosign.conf and whether it supports wildcards?
19:59 gtmanfred forrest: >.>
19:59 gtmanfred only for a week now
20:00 uictamale Our environments are somewhat unique because they A) Shouldn't be able to reach other environments at all (probably not even reach the same master)   B) Can't have any internet access
20:00 AndreasLutro I ran into so many issues when I tried utilising them - like I couldn't include another state sls because the sls I wanted to include was already matched in the base environment?
20:00 forrest yaryarrr, https://docs.saltstack.com/en/latest/ref/configuration/master.html#autosign-file ?
20:00 AndreasLutro I don't remember the details... just that it was horribly annoying and I gave up
20:00 forrest yeah that's why it's the base environment.
20:00 forrest it goes everywhere
20:00 forrest then you stack on top depending on the env
20:01 dmaiocchi joined #salt
20:01 yaryarrr ...that almost seemed too easy :( i wonder why i missed that. lol thanks!
20:01 forrest No problem.
20:03 AndreasLutro so if the python sls is in your base env, and in your "real" env you have an sls for python apps - you can't put include: [ python ] on the top of your python app sls because then it'd try to render the python sls twice, once in base, once in the other end
20:03 AndreasLutro but you have to include it because you require python/pip/virtualenv to be installed before setting up the apps
20:03 uictamale ah we finally solved that problem recently
20:04 AndreasLutro that's what I remember. it's almost a year ago since I ditched salt envs entirely so could be misremembering
20:04 perfectsine joined #salt
20:04 forrest AndreasLutro, Gotcha, I feel like there MIGHT have been an issue for that at one point.
20:04 uictamale stopped installing virtual environments and compilers on production machines after finding https://pantsbuild.github.io/
20:04 uictamale .pex files are amazing once you grok how to build them
20:05 mdasilva joined #salt
20:07 AndreasLutro found these: https://github.com/saltstack/salt/issues/19754 and https://github.com/saltstack/salt/issues/14733
20:08 XenophonF oh man
20:08 XenophonF i don't know if i like that
20:09 ajw0100 joined #salt
20:10 akhter joined #salt
20:11 digitalh_ joined #salt
20:11 akhter joined #salt
20:12 akhter joined #salt
20:14 brianfeister joined #salt
20:15 hemebond That doesn't look nice.
20:16 hemebond Surely if you want to access states in another environment you'd just add it to the master config like I have.
20:16 hemebond local:
20:16 hemebond - /srv/salt/states/local
20:16 hemebond - /srv/salt/states/base
20:17 hemebond Works really well.
20:18 googlefailing joined #salt
20:18 googlefailing Hey everyone.  Completely new to Salt
20:19 babilen welcome
20:20 googlefailing I'm using a beacon to notify that a file has changed and then setup a reactor to run a state
20:20 AndreasLutro uictamale: that looks decent... though I'd be careful of adding yet another layer of abstraction on top of python's depdndency system
20:20 AndreasLutro and honestly python/pip is just an example of what went wrong whne I tried envs
20:20 googlefailing I'm failing at making the target in the reactor be a variable
20:20 googlefailing Jinja variable 'dict object' has no attribute 'id'
20:21 AndreasLutro are you doing {{ data.id }} ?
20:21 googlefailing correct
20:21 AndreasLutro according to https://docs.saltstack.com/en/latest/topics/beacons/ you have to do {{ data.data.id }}
20:22 googlefailing well {{ data['id'] }}
20:22 AndreasLutro only for beacons
20:22 AndreasLutro same thing
20:22 AndreasLutro (at least in jinja)
20:23 googlefailing Thank you!
20:24 digitalhero joined #salt
20:24 AndreasLutro that's not very intuitive
20:25 dstr34 joined #salt
20:26 dstr34 left #salt
20:27 kbaikov joined #salt
20:28 gtmanfred the object is named data, then inside it, it has the whole payload,which includes a dictionary called data
20:28 gtmanfred for some reason
20:28 gtmanfred i never figured that out
20:28 gtmanfred i wish it was renamed to payload instead of data, but whatever
20:29 baweaver joined #salt
20:30 googlefailing Thanks again AndreasLutro
20:32 digitalh_ joined #salt
20:38 jhauser joined #salt
20:39 akhter joined #salt
20:44 bhosmer_ joined #salt
20:46 akhter joined #salt
20:51 dmaiocchi joined #salt
20:52 fyb3r left #salt
20:55 digitalhero joined #salt
20:57 marcinkuzminski joined #salt
20:59 atmosx joined #salt
21:06 akhter joined #salt
21:10 beardedeagle now to put together a cost outline for my director of what it would cost to send me to saltconf
21:10 hemebond :-O
21:11 gtmanfred doooeeettt
21:11 rem5 joined #salt
21:11 digitalhero joined #salt
21:13 beardedeagle trying to get the company to pay for it lol
21:13 gtmanfred yar
21:13 hemebond Will the talks go up onto YouTube like previous talks?
21:14 shoemonkey joined #salt
21:14 fracklen joined #salt
21:15 gtmanfred yeah, but i believe that they will be scattered like last year, i don't believe all the talks were public immediately
21:15 gtmanfred anyone that paid for the conference, i do believe got access to all of them though
21:15 hemebond Eventually is fine with me :-)
21:17 iggy I think there were still some things that either didn't get recorded or didn't get published (for understandable reasons... it was forward looking stuff that companies generally don't want published)
21:18 gtmanfred yeah i think i remember some of those
21:18 metalseargolid joined #salt
21:23 akhter joined #salt
21:24 digitalhero joined #salt
21:25 mowntan joined #salt
21:26 mowntan joined #salt
21:26 mowntan joined #salt
21:26 mowntan joined #salt
21:26 akhter_1 joined #salt
21:28 DammitJim joined #salt
21:28 akhter joined #salt
21:29 _beardedeagle joined #salt
21:31 baweaver joined #salt
21:33 TomJepp joined #salt
21:34 akhter_1 joined #salt
21:38 antpa joined #salt
21:38 hoonetorg so now i installed pylint and saltpylint
21:38 digitalhero joined #salt
21:38 hoonetorg how can i enable it in vim/gvim
21:38 hoonetorg ???
21:40 akhter joined #salt
21:40 losh joined #salt
21:41 gtmanfred so, it doesn't all work right now
21:41 gtmanfred s0undt3ch is working on fixing it
21:41 gtmanfred but it is worth noting that the saltpylint doesn't have the requirements.txt file in the pypi package
21:41 gtmanfred bash-4.3$ curl -sL https://pypi.python.org/packages/source/S/SaltPyLint/SaltPyLint-2015.5.28.tar.gz | tar tz | grep requirements
21:41 gtmanfred bash-4.3$
21:42 gtmanfred and QA is in the process right now of fixing the pylint stuff, to push out a new version of all that , so that it will work with the newest pypi
21:42 gtmanfred pylint*
21:42 edrocks joined #salt
21:43 akhter_1 joined #salt
21:43 hoonetorg i installed packages in requirements.txt manually
21:43 hoonetorg running pylint manually works for me
21:45 hoonetorg i don't hv pep8 in version 1.6.0 but in 1.5.7 (fedora23) and hope it works as expectec
21:45 hoonetorg *expected
21:46 gtmanfred it might
21:46 gtmanfred i am pushing to move to tox, so that the lint can be run from an automatically setup venv, with tox
21:46 gtmanfred but yeah, you should just have to use a vim plugin to run pylint
21:47 hoonetorg so as it works now on the command line, how is it integrated in vim generally
21:47 hoonetorg ?
21:47 deus_ex joined #salt
21:47 hoonetorg syntastic
21:47 hoonetorg ?
22:01 ekristen joined #salt
22:01 baweaver joined #salt
22:02 gtmanfred i have never done it with vim
22:02 digitalhero joined #salt
22:03 jhauser joined #salt
22:04 fxhp joined #salt
22:11 subsignal joined #salt
22:13 hoonetorg gtmanfred which editor can you recommend?
22:15 gtmanfred whatever works best for you
22:15 orion joined #salt
22:15 gtmanfred i use vim for most stuff, just don't have pylint run on every time I save a file
22:15 orion Hi. Is there a way to do a deep test if a variable exists in pillar? I.e, {% if pillar['foo']['bar'] is defined %}
22:15 gtmanfred orion: pillar.foo.bar is defined
22:16 gtmanfred the dot notation on the dictionaries in jinja can be caught by the defined
22:16 gtmanfred the key value is not i do not believe
22:16 orion I see.
22:17 orion Under what circumstances should dot notation be used and not used?
22:17 gtmanfred ¯\(°_o)/¯
22:17 gtmanfred i usually pretty much always use the dot notation
22:17 gtmanfred unless i need to set a default
22:17 gtmanfred actually
22:17 gtmanfred i go back and forth
22:17 gtmanfred salt['pillar.get']('foo:bar', None) is pretty good too
22:17 baweaver joined #salt
22:18 gtmanfred chaining together in the pillar.get module is pretty cool
22:18 orion gtmanfred: That dot notation doesn't work.
22:19 orion Rendering SLS 'base:nat' failed: Jinja variable 'dict object' has no attribute 'foo'
22:20 gtmanfred it should work.
22:21 gtmanfred what version of salt are you on?
22:21 orion salt 2015.8.7 (Beryllium)
22:22 gtmanfred i use it here https://github.com/gtmanfred/openstack-salt-states/blob/master/keystone/setup.sls#L2
22:22 gtmanfred and was using it on 2015.8, before updating to 2016.3 release canidates
22:23 gtmanfred you are doing `{% if pillar.foo.bar is defined %}` ?
22:24 gtmanfred aww, did it get removed :/
22:25 gtmanfred hrm...
22:27 orion I am doing exactly that.
22:27 gtmanfred yeah
22:27 gtmanfred one second, it used to work i thought
22:30 gtmanfred orion: apparently i am mistaken
22:30 andrew_v joined #salt
22:31 nZac joined #salt
22:31 gtmanfred orion: do this instead {% if salt.pillar.get('foo:bar') is not none %}
22:32 bhosmer joined #salt
22:35 shoemonkey joined #salt
22:36 orion gtmanfred: Fail: Unable to manage file: Jinja variable 'dict object' has no attribute 'foo'
22:37 gtmanfred that shouldn't be the error you get from the one I just gave you ...
22:37 orion That is the error from what you just gave me.
22:37 gtmanfred well, then i have no idea
22:37 gtmanfred can you run salt-call pillar.get 'foo:bar' ?
22:37 MK_FG joined #salt
22:37 MK_FG joined #salt
22:38 gtmanfred can you also double check that you replaced all instances of any old ways with the way I just gave you?
22:38 orion There is only one instance.
22:38 gtmanfred cause that is all I can think of
22:39 brianfeister joined #salt
22:40 zenlot joined #salt
22:41 orion It always evaluates to true, regardless of what dict I specify.
22:41 gtmanfred it shouldn't do that, something is screwy
22:41 orion I could specify 'blah:grr' and it would evaluate to true.
22:41 gtmanfred you should get back an empty dict
22:42 gtmanfred [root@salt salt]# salt-call pillar.get this:that:those --out=json
22:42 gtmanfred [INFO    ] Determining pillar cache
22:42 gtmanfred {
22:42 gtmanfred "local": ""
22:42 gtmanfred }
22:42 orion I'm talking about the if statement.
22:42 gtmanfred oh, remove the not
22:43 gtmanfred nevermind
22:43 gtmanfred do you want it to run if the thing is not defined?
22:43 orion No.
22:43 orion It should not run if the thing is not defined.
22:43 gtmanfred if you just remove the `is not none`
22:43 gtmanfred it will not run if it is not defined, but also won't run if it is set to None or False
22:43 gtmanfred or empty string
22:43 gtmanfred or empty list, or empty dict
22:44 gtmanfred unfortunately i don't know how to get the multiple layers deep in the object for `is defined`
22:44 gtmanfred i don't think that is possible
22:47 mavhq joined #salt
22:50 rem5 joined #salt
22:50 djgerm1 joined #salt
22:51 ronrib joined #salt
22:51 djgerm1 Hello, I am trying to get my first minion on bootstrapped with salt-cloud on vmware
22:51 djgerm1 I am getting the following when I run salt-cloud against my map:
22:51 djgerm1 [ERROR   ] Failed to create VM test-vmware-minion. Configuration value 'name' needs to be set
22:52 djgerm1 But… i don't see a place to put name in cloud maps?
22:52 catpig joined #salt
22:53 djgerm1 or even really anywhere
22:53 djgerm1 https://docs.saltstack.com/en/latest/topics/cloud/vmware.html#vmware-cloud-profile
22:54 gtmanfred that is odd, cause the name of the vm, should be the first level below the profile
22:55 gtmanfred like this is a map https://github.com/gtmanfred/openstack-salt-states/blob/master/config/cloud.maps.d/openstack.map#L2
22:55 gtmanfred unfortunatley i haven't messed with the vsphere stuff in salt-cloud
22:56 mavhq joined #salt
22:56 djgerm1 hmm yeah i have that syntax as well.
22:56 digitalhero joined #salt
22:57 Pinchiukas joined #salt
22:57 Pinchiukas So in an SLS file, the top level (called ID) is sort of the first argument to the module?
23:04 djgerm1 yeah…. geez where is this "name" thing coming into play for a map that has that second line like that.
23:04 Pinchiukas ?
23:05 djgerm1 not in response to your question Pinchiukas :)
23:08 mavhq joined #salt
23:11 tawm04 joined #salt
23:12 linjan_ joined #salt
23:13 digitalhero joined #salt
23:14 Pinchiukas And is "pkg" or "pkg.installed" a module?
23:14 gtmanfred Pinchiukas: that top level id will be passed as the name: kwarg, unless you set name: something in it
23:14 gtmanfred pkg.installed is a state function
23:14 mavhq joined #salt
23:15 gtmanfred Match exec "test $(ipcalc -n %h/25) = 'NETWORK=172.16.1.128'"
23:15 gtmanfred ...
23:15 gtmanfred Pinchiukas: https://github.com/saltstack/salt/blob/develop/salt/states/pkg.py#L593
23:16 gtmanfred Pinchiukas: the part at the top above each state, is the state id, and it is passed as name: to every thing underneath it, unless you specify name: in those blocks
23:19 Pinchiukas Ah ok because I'll run into situations where the id won't be very descriptive.
23:21 alvinstarr joined #salt
23:21 cilkay joined #salt
23:21 onlyanegg joined #salt
23:21 alvinstarr left #salt
23:23 dfinn joined #salt
23:26 digitalh_ joined #salt
23:32 bhosmer_ joined #salt
23:36 nidr0x joined #salt
23:37 nidr0x joined #salt
23:39 onlyanegg joined #salt
23:44 digitalhero joined #salt
23:44 mianos joined #salt
23:46 mianos does anyone know if upgrading salt-minions is documented anywhere, the restart process is well documented (using an 'at' formula) but how do I update from 2015.5X tro 2015.8X?
23:46 teryx510 joined #salt
23:47 hemebond mianos: I don't know of documentation for it. I recently upgraded manually but I don't use it in production (yet!). I have been thinking about salt-ssh for it though.
23:47 mianos I have quite a few machine and don't want to go forward with a manual process, salt is already installed so I don't need agent-less installs
23:48 hemebond You could possibly use AT to run a script to do the upgrade.
23:48 mianos I have the restart formula yes
23:49 kliquori joined #salt
23:49 hemebond You could just run a script that stops the minion and upgrades the package.
23:49 hemebond And start the service if it doesn't do so automatically.
23:49 mianos yes but how to upgrade the package
23:49 mdasilva joined #salt
23:50 hemebond What do you mean?
23:50 hemebond How did you install it?
23:51 mianos I am running 2015.5 from salt-cloud
23:51 mianos I wanted to know how to upgrade
23:51 hemebond From salt-cloud? Is that different to just a deb package?
23:51 mianos obviously apt-get upgrade won't work
23:51 hemebond I don't know about salt-cloud, sorry.
23:52 shoemonkey joined #salt
23:54 jeddi joined #salt
23:55 baweaver joined #salt
23:57 kliquori joined #salt
23:57 shiriru joined #salt

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