Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-02-18

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

All times shown according to UTC.

Time Nick Message
00:07 spuder joined #salt
00:13 anthpa joined #salt
00:14 bhosmer joined #salt
00:15 kevinquinnyo1 joined #salt
00:19 kevinquinnyo1 joined #salt
00:20 nyx_ joined #salt
00:20 aharvey joined #salt
00:23 aharvey running into some bizarre behaviors: trying to pkg.refresh_db on a win2k12r2 box w/minion installed.  salt minion/master versions are the same. Caching directory u'win/repo-ng/' for environment 'base' shows up in the output of running salt-call remote-execution.  All that shows up on the minion is the winrepo.p file instead of all the packages sls's
00:27 antpa_ joined #salt
00:28 baweaver joined #salt
00:30 tligda joined #salt
00:30 tiadobatima joined #salt
00:33 egalano joined #salt
00:42 tiadobatima joined #salt
00:47 rem5 joined #salt
00:48 anthpa joined #salt
00:52 onlyanegg joined #salt
00:57 nyx_ joined #salt
01:00 iceyao joined #salt
01:07 iceyao_ joined #salt
01:08 srinivas joined #salt
01:08 tligda joined #salt
01:08 srinivas joined #salt
01:09 srinivas joined #salt
01:09 srinivas joined #salt
01:11 srinivas joined #salt
01:12 srinivas joined #salt
01:14 GreatSnoopy joined #salt
01:18 anthpa joined #salt
01:19 brianfeister joined #salt
01:22 aharvey joined #salt
01:31 colinstgeorge yo guysm -- whats a 'proper' way of cleaning out /var/cache/salt/master/jobs/
01:31 colinstgeorge ... i think it is hosing my upload-salt-report in foreman
01:32 subsignal joined #salt
01:32 colinstgeorge just rm -rf it?! :)
01:36 colinstgeorge tarred it, did that... lets see
01:36 doompatrol there is a clean cache runner
01:37 jfelchner I've googled around, but I'm unsure of what the canonical way of downloading a file and extracting it into a directory is.
01:37 jfelchner It seems like maybe the archive module, but that doesn't really work in a state file as far as I can tell.
01:39 jfindlay jfelchner: there's an archive state module
01:39 jfindlay also you can run execution module functions in a state SLS with module.run
01:39 jfindlay but you're on your own to make it stateful
01:40 jfelchner @jfindlay I didn't know that!  Thank you!  Just getting on my feet with CM of any kind an salt is a joy to use so far.
01:41 jfelchner Tried both Chef and Puppet for a couple weeks and they both made me want to run screaming.
01:41 jfindlay jfelchner: nice
01:42 hasues joined #salt
01:42 jfindlay and when you need something quick, there's a cmd.run state function as well
01:43 Gareth 'lo
01:43 jfindlay good evening, Gareth
01:43 Gareth jfindlay: hey :) hows it going?
01:43 jfindlay not bad
01:44 aw110f joined #salt
01:45 jfindlay how about you?
01:45 dlam joined #salt
01:46 tgrv joined #salt
01:49 doompatrol jfindlay: i had an engineer tell me
01:49 doompatrol once you learn to do things the puppet way and not your way you'll be ok
01:49 doompatrol for some reason that really bugged me lol
01:51 GreatSnoopy joined #salt
01:52 jfindlay doompatrol: totally reminds me of the kinds of projects I've encountered over the years I've learned to be wary of :)
01:52 joe_n joined #salt
01:53 doompatrol agreed
01:53 dlam arg i cant find why it's complaining about  "... is not formed as a list" here    anyone got any debug tricks?   https://gist.github.com/dlam26/0526fc12b1c1bc7322b5
01:53 dlam (im trying to iterate through a list of files and chmod 755 each of them)
01:53 k_sze[work] joined #salt
01:54 doompatrol dlam: you do know there is a recursive permissions option eh?
01:54 jfindlay dlam: it looks like you have two IDs for the same state
01:55 jfindlay either `put_stuff_back_to_755:` or `{{ pillar.app.directories.django_code }}/{{ file }}:`, but not both?
01:55 hasues left #salt
01:56 jfindlay also, `file.recurse` can do perms
01:56 dlam ohhh no i didnt know about 'file.recurse'!  thanks thanks
01:57 antpa joined #salt
01:58 nyx_ joined #salt
01:59 egalano joined #salt
02:02 bhosmer joined #salt
02:18 ajmath joined #salt
02:19 racooper joined #salt
02:19 akhter joined #salt
02:22 ajmath joined #salt
02:22 brianfeister joined #salt
02:23 brianfeister joined #salt
02:23 matheeeny joined #salt
02:24 donmichelangelo joined #salt
02:25 ajmath joined #salt
02:28 fracklen joined #salt
02:29 godlike joined #salt
02:29 godlike joined #salt
02:30 ajw0100 joined #salt
02:37 r0_0 joined #salt
02:38 beardedeagle joined #salt
02:39 amcorreia joined #salt
02:46 berserk joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! | Latest Version: 2015.8.5 | 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:53 aharvey joined #salt
02:56 bhosmer joined #salt
02:57 aharvey Trying to debug pkg.refresh_db against windows minions.  It looks like the winrepo.p is being sync’d but the sls files/etc are not being shipped over to minions.  Anyone else experienced these issues?
03:03 dstokes_ joined #salt
03:09 iceyao joined #salt
03:15 akhter joined #salt
03:16 nlb joined #salt
03:18 brianfeister joined #salt
03:18 iceyao joined #salt
03:21 dean joined #salt
03:22 nyx_ joined #salt
03:31 malinoff joined #salt
03:35 iceyao joined #salt
03:44 iceyao joined #salt
03:49 evle joined #salt
03:49 joe_n joined #salt
03:51 bhosmer joined #salt
03:52 egalano joined #salt
03:52 favadi joined #salt
04:03 grumm_servire joined #salt
04:03 cyborg-one joined #salt
04:04 relicanth joined #salt
04:04 jfelchner joined #salt
04:08 relicanth joined #salt
04:15 ramteid joined #salt
04:19 iceyao joined #salt
04:20 jfelchner joined #salt
04:20 dkrae joined #salt
04:22 jfelchner joined #salt
04:27 murrdoc joined #salt
04:28 jfelchner joined #salt
04:29 iceyao joined #salt
04:32 kshlm joined #salt
04:33 brianfeister joined #salt
04:36 quasiben joined #salt
04:37 colegatron_ joined #salt
04:40 jfelchner joined #salt
04:45 bhosmer_ joined #salt
04:48 murrdoc joined #salt
04:51 pdayton joined #salt
04:52 josuebrunel joined #salt
04:52 lompik joined #salt
04:56 rbjorklin joined #salt
04:58 treaki_ joined #salt
04:59 rdas joined #salt
04:59 viq joined #salt
05:03 hal58th joined #salt
05:10 fracklen joined #salt
05:13 joe_n joined #salt
05:22 totzky joined #salt
05:32 freelock joined #salt
05:34 akhter joined #salt
05:35 iggy aharvey: is it causing an issue? I don't know about Windows minions, but generally, the sls files aren't sync'ed over until they are used... then the minion requests them from the master
05:36 aharvey So after mad amounts of debugging, analyzing my config (generic as all getup, aside of base: - /srv/salt/, /srv/salt/formulas/****-formula (like 10 of them)
05:36 aharvey turns out there is something wonky in /etc/salt/master, so I paved it, now it works
05:36 aharvey 13hr day ftw
05:37 iggy those are generally counter productive
05:37 djgerm1 yeah, you've got at least 7 more great hours left!
05:38 jalbretsen joined #salt
05:38 aharvey *grin* progress is just that, I think.  https://groups.google.com/forum/m/#!search/winrepo.p/salt-users/uTYVOYe37og 2nd to laste post is what tipped me onto /etc/salt/master not parsing correctly.  pasted this in for longevity
05:39 bhosmer_ joined #salt
05:43 brianfeister joined #salt
05:45 iceyao joined #salt
05:46 bucky joined #salt
05:48 pwalsh joined #salt
05:49 malinoff joined #salt
05:55 zmalone joined #salt
05:58 antpa joined #salt
05:59 zmalone joined #salt
06:03 Vye joined #salt
06:04 lompik joined #salt
06:04 impi joined #salt
06:04 evilrob joined #salt
06:07 favadi joined #salt
06:14 cberndt joined #salt
06:15 jfelchner When I apply a state (even highstate) from the CLI, it hangs until it's done and then spits out all the logging information.  Is there a way I can get it to stream the info while it's running?
06:16 jeddi joined #salt
06:22 anthpa joined #salt
06:25 jfelchner Even just after every successful/unsuccessful state
06:27 jaybocc2 joined #salt
06:29 felskrone joined #salt
06:33 bhosmer_ joined #salt
06:37 dheeraj joined #salt
06:38 joe_n joined #salt
06:38 rdas joined #salt
06:39 iceyao joined #salt
06:43 cberndt joined #salt
06:45 bmac2 joined #salt
06:48 iggy jfelchner: no, that's not really the way salt is engineered
06:49 malinoff joined #salt
06:49 jfelchner iggy Ok weird. Thanks. :)
06:49 iggy jfelchner: think about it this way... if you have 1000's of servers you are running states on, that's a _lot_ of output
06:51 iggy not just stuff flying at the screen, but flying back and forth between 1000s of minions and the master
06:52 sauvin joined #salt
06:52 jfelchner iggy I understand.
06:59 fracklen joined #salt
07:03 akhter joined #salt
07:10 cberndt joined #salt
07:18 slav0nic joined #salt
07:20 joe_n joined #salt
07:22 aharvey joined #salt
07:27 iceyao joined #salt
07:28 kawa2014 joined #salt
07:28 bhosmer_ joined #salt
07:28 intr1nsic joined #salt
07:28 iceyao_ joined #salt
07:29 xenoxaos joined #salt
07:29 jaybocc2 joined #salt
07:35 colegatron I have a website site deploy written in a state. one of the steps uses a config file to setup the site (grunt, assets, etc) depending on the environment.
07:36 pwalsh joined #salt
07:36 colegatron I know I can pass an argument to the state using  pillar='{"config": "thisone"}', but there is someway to abort the state if the config variable is not set?
07:37 colegatron I do not want to let the state run without the variable to avoid unexpected behaviors
07:41 auzty joined #salt
07:42 yuhlw joined #salt
07:44 favadi joined #salt
07:47 iggy colegatron: {% if not salt['pillar.get']('config') %}fail:\n  test.fail_with_changes\n    - failhard: True\n{% endif %}
07:47 iggy or something
07:48 colegatron iggy tnx, I was looking on test right now. but how can I ensure it is the first thing the state runs?
07:48 iceyao joined #salt
07:49 colegatron as far as I understand, all the states fail: in this case, would run in parallel if there are no requisites, right?
07:50 colegatron the obvious answer is using requisites; but just to know if there is any other way to insert order inside a state file
07:53 colegatron mmm -failhard can be used as argument on test.fail? I can't find it in the doc
07:53 nebuchadnezzar joined #salt
07:53 impi joined #salt
07:58 colegatron oh, I overviewed it can be used in a per state basis. great.
08:02 iceyao_ joined #salt
08:04 brianfeister joined #salt
08:14 elsmo joined #salt
08:16 fracklen joined #salt
08:17 pwalsh joined #salt
08:20 fracklen joined #salt
08:21 fracklen joined #salt
08:27 hasues joined #salt
08:30 q1x joined #salt
08:37 impi joined #salt
08:43 krymzon joined #salt
08:45 krymzon_ joined #salt
08:46 jhauser joined #salt
08:47 rubendv joined #salt
08:47 dgutu joined #salt
08:48 josuebrunel joined #salt
08:49 TomJepp joined #salt
08:50 joe_n joined #salt
08:50 Rumbles joined #salt
08:51 favadi joined #salt
08:53 karlamrhein joined #salt
08:55 josuebrunel joined #salt
08:56 pwalsh joined #salt
09:00 ronnix joined #salt
09:00 garphy joined #salt
09:05 oida joined #salt
09:12 patchedmonkey joined #salt
09:16 bhosmer joined #salt
09:16 Xevian joined #salt
09:17 pwalsh joined #salt
09:17 egalano joined #salt
09:18 impi joined #salt
09:18 GreatSnoopy joined #salt
09:19 josuebrunel joined #salt
09:25 linjan joined #salt
09:29 s_kunk joined #salt
09:29 alvinstarr joined #salt
09:30 q1x joined #salt
09:36 mavhq joined #salt
09:40 deus_ex joined #salt
09:43 N-Mi joined #salt
09:45 chiui joined #salt
09:46 fredvd joined #salt
09:50 kawa2014 joined #salt
09:52 pdayton joined #salt
09:53 brianfeister joined #salt
09:54 akhter joined #salt
10:00 elsmo joined #salt
10:00 atmosx joined #salt
10:04 catpig joined #salt
10:04 pwalsh joined #salt
10:13 cberndt joined #salt
10:16 amcorreia joined #salt
10:16 jacksontj joined #salt
10:16 brianfeister joined #salt
10:19 ronnix joined #salt
10:21 patchedmonkey joined #salt
10:22 MadHatter42 joined #salt
10:25 H2Ov4 joined #salt
10:28 dkrae joined #salt
10:29 giantlock joined #salt
10:35 pwalsh joined #salt
10:50 elsmo Morning all. Is there a way you can access the salt grains that have already been set in a custom grain you are writing?
10:51 Kelsar joined #salt
10:51 Rumbles joined #salt
11:03 N-Mi joined #salt
11:04 bhosmer joined #salt
11:06 ajmath joined #salt
11:07 honestly_ if you write the grains via the grains module, you have access to everything in salt
11:08 honestly_ if you're writing a proper custom grain, then I don't think so
11:14 impi joined #salt
11:16 msciciel joined #salt
11:27 patchedmonkey joined #salt
11:30 elsmo honestly_ : I popped a pdb inside the grain method just to see, looks like __grains__ is populated with things read from the grains information in text files on the minion but nothing else
11:34 jbrnds joined #salt
11:48 honestly_ do you really need this information to be in grains?
11:48 honestly_ grains are for static properties of a minion
11:53 pdayton joined #salt
11:58 jaybocc2 joined #salt
12:04 anthpa joined #salt
12:13 egil joined #salt
12:14 MohShami joined #salt
12:16 rotbeard joined #salt
12:21 honestly_ is there anybody here who can explain what https://docs.saltstack.com/en/latest/topics/ssh/ means by "fileserver operations must be wrapped" and "The state module is an exception, which compiles the state run on the master, and in the process finds all the references to salt:// paths and copies those files down in the same tarball as the state run"?
12:22 honestly_ I'm using salt-ssh and file.managed works without a problem, but ssh_auth.present can't copy keyfiles.
12:22 akhter joined #salt
12:29 rem5 joined #salt
12:35 averell joined #salt
12:36 wolfpackmars2 joined #salt
12:36 anthpa joined #salt
12:37 iceyao joined #salt
12:43 antpa_ joined #salt
12:47 jaybocc2 joined #salt
12:49 wolfpackmars2_ joined #salt
12:52 MohShami hey guys, I'm trying to execute an orchestration runner through API, is that even possible?
12:52 wolfpackmars2_ joined #salt
12:53 bhosmer joined #salt
12:56 anthpa joined #salt
13:01 fredvd joined #salt
13:03 zsoftich4 joined #salt
13:03 wolfpackmars2 is there a way for the minion to test communication to the master?
13:04 wolfpackmars2 minion - master seem to lose communication when salt packages are updated
13:04 traph joined #salt
13:04 traph joined #salt
13:06 denys joined #salt
13:08 JDiPierro joined #salt
13:08 favadi joined #salt
13:09 akhter joined #salt
13:14 nyx_ joined #salt
13:16 DammitJim joined #salt
13:28 honestly_ wolfpackmars2: try salt-call saltutil.refresh_pillar()
13:29 honestly_ err, without the () at the end of course
13:34 ronnix joined #salt
13:36 chiui joined #salt
13:42 akhter joined #salt
13:44 numkem joined #salt
13:45 numkem joined #salt
13:46 gh34 joined #salt
13:48 bhosmer joined #salt
13:49 dyasny joined #salt
13:51 sk_0 joined #salt
13:51 dmaiocchi joined #salt
13:53 chiui joined #salt
14:00 DammitJim how can I get the first 2 characters of my grains['id'] ?
14:01 edrocks joined #salt
14:02 fracklen joined #salt
14:02 DammitJim is that a jinja thing?
14:04 Rkp maybe there's something like split()
14:05 ronnix joined #salt
14:06 bhosmer joined #salt
14:06 spiette joined #salt
14:07 pwalsh joined #salt
14:07 AndreasLutro DammitJim: same as in python
14:07 AndreasLutro grains['id'][:2]
14:08 pdayton joined #salt
14:09 honestly_ DammitJim: most things in jinja are plain python objects, like strings or dicts, and you can do anything with them that you could do with python objects
14:09 subsignal joined #salt
14:09 honestly_ so just like AndreasLutro said
14:09 DammitJim thanks  honestly_ and AndreasLutro
14:09 DammitJim I thought I had done that, but I had put pillar instead of grains
14:09 DammitJim :D
14:10 pdayton1 joined #salt
14:10 felskrone joined #salt
14:13 honestly_ AndreasLutro: hey, don't you use salt-ssh?
14:13 AndreasLutro yes honestly_
14:14 mapu joined #salt
14:15 ssplatt joined #salt
14:15 toastedpenguin joined #salt
14:19 H2Ov4 I'm having a hard time to get started with Salt. I've been roaming around the website/docs but it seems quite overwhelming. Any pointers?
14:19 DammitJim H2Ov4, just do it, man
14:19 DammitJim set up a master
14:20 JDiPierro joined #salt
14:20 DammitJim then set up a minion
14:20 DammitJim that should be the first thing you do
14:20 H2Ov4 I've already done that using 3 vagrant boxes
14:20 H2Ov4 Also able to ping/send commands to minions
14:21 DammitJim ok, good
14:21 DammitJim now you need to set up your first state
14:21 DammitJim maybe do a state for some software you'd like installed on the boxes
14:21 ferbla joined #salt
14:21 honestly_ AndreasLutro: Does uploading a ssh key with ssh_auth.present work for you? As in salt-ssh 'host' state.single ssh_auth.present name=bla user=username source=salt://foo
14:22 H2Ov4 I've watched a YT video. As far as I understand a "state" is a tree of directories which contains .sls files (YAML) which configures the minions?
14:22 nyx_ joined #salt
14:22 bash1235_ joined #salt
14:23 bash1235_ hi, seems that whenever I use bootstrap with git tag it installs the tag I wanted but then it upgrades to the latest.
14:23 chiui joined #salt
14:23 AndreasLutro honestly_: I put ssh keys in pillars, so I wouldn't know
14:23 honestly_ AndreasLutro: hmm.
14:24 honestly_ well, pickle me and call me a... something
14:24 AndreasLutro you may need to specify if in Saltfile's extra_filerefs:
14:24 AndreasLutro it in*
14:24 AndreasLutro I have to do that for yaml includes
14:24 honestly_ I just got an ssh key uploaded
14:25 honestly_ doing the same thing with state.single I thought I was doing with state.sls
14:25 honestly_ I am very confused
14:25 honestly_ what exactly do you mean by "yaml includes"?
14:26 AndreasLutro errr jinja includes
14:27 honestly_ this is the statefile: https://github.com/saltstack/salt/files/132466/init.sls.txt
14:27 clouddale joined #salt
14:28 honestly_ I guess dynamically generating the file list might make the black magic that is supposed to find all files on the master and copy them to the minion in lieu of the missing fileserver completely fall over
14:30 racooper joined #salt
14:30 honestly_ what's the syntax for extra_filerefs?
14:31 ferbla joined #salt
14:31 toastedpenguin joined #salt
14:32 akhter joined #salt
14:32 winsalt joined #salt
14:33 toastedpenguin left #salt
14:33 bash1235_ hi, seems that whenever I use bootstrap with git tag it installs the tag I wanted but then it upgrades to the latest. any ideas ?
14:34 evle1 joined #salt
14:34 AndreasLutro honestly_: https://bpaste.net/show/b7077ec4fee0
14:35 honestly_ huh.
14:35 honestly_ is there documentation for this anywhere?
14:38 perfectsine joined #salt
14:48 honestly_ AndreasLutro: hm, adding the files to the Saltfile doesn't help.
14:49 nyx_ joined #salt
14:49 honestly_ AndreasLutro: very interesting... adding the files leads to them being copied over into the cache dir
14:49 honestly_ but they still can't be found
14:50 JDiPierro joined #salt
14:51 zmalone joined #salt
14:52 KennethWilke joined #salt
14:53 chiui joined #salt
14:53 honestly_ so something else is falling over as well
14:56 tracphil joined #salt
14:58 jaybocc2 joined #salt
14:58 tracphil_ joined #salt
14:59 west575 joined #salt
15:02 pppingme joined #salt
15:04 morissette joined #salt
15:05 toastedpenguin1 joined #salt
15:06 ssplatt joined #salt
15:06 egalano joined #salt
15:07 andrew_v joined #salt
15:09 MadHatter42 joined #salt
15:10 toastedpenguin joined #salt
15:10 toanctruong joined #salt
15:11 amcorreia joined #salt
15:13 toastedpenguin joined #salt
15:14 jaybocc2 joined #salt
15:15 cyborg-one joined #salt
15:16 pooogles joined #salt
15:18 coval3nce joined #salt
15:19 netcho_ joined #salt
15:19 perfectsine joined #salt
15:21 ssplatt joined #salt
15:22 pooogles Using salt-cloud is there a way to force salt bootstrap to use pip?
15:22 gtmanfred it depends
15:22 gtmanfred i think some systems can use pip
15:22 pooogles Having issues getting it to provision ubuntu 15.10 boxes.
15:22 pooogles oh, --script-args=SCRIPT_ARGS
15:22 gtmanfred but, you can pass any args to salt bootstrap using the script_args: in your cloud settings
15:22 Tanta joined #salt
15:22 pooogles ignore me :)
15:22 gtmanfred yar
15:22 gtmanfred can also be in /etc/salt/cloud*
15:24 chiui joined #salt
15:24 hasues joined #salt
15:24 hasues left #salt
15:24 quasiben joined #salt
15:25 pooogles ahh cool, thanks.
15:27 disbound joined #salt
15:27 pwalsh joined #salt
15:31 XenophonF joined #salt
15:34 rm_jorge joined #salt
15:38 chris_tv1 joined #salt
15:39 perfectsine joined #salt
15:40 tracphil joined #salt
15:40 fracklen joined #salt
15:42 hairytoez joined #salt
15:51 winsalt joined #salt
15:54 chiui joined #salt
15:54 _JZ_ joined #salt
15:54 ronnix joined #salt
15:57 wolfpackmars2 so it seems that salt-call from minions works... even pulls latest states from master.  however, commands from the master to the minions fail "Minion did not return. [Not connected]" even though the minion seems to be able to communicate just fine with the master
15:58 buhman that sounds familiar, but I don't remember why
15:58 wolfpackmars2 This probably has to do with updating the minion packages
15:58 doompatrol wolfpackmars2: i encounter that at times. can't really tell why though
15:58 wolfpackmars2 so in a production environment, how do you get the minions to sync back up?
15:58 doompatrol e.g. its happend on cloud private networks and randomly within my own network
15:58 doompatrol restart the minion?
15:59 wolfpackmars2 correct, but if that's the only way, I feel sory for any production environments with many minions
15:59 wolfpackmars2 kind of negates the point of using salt, no?
15:59 doompatrol "technology" ;D
15:59 doompatrol heh use ansible to do it (lol jk jk jk)
16:00 wolfpackmars2 I just figure this has to be a common problem, and enough of a headache that someone has found a work around
16:00 wolfpackmars2 I could also set the minions to restart every day or so...
16:01 doompatrol i'd say salt-ssh but you'd then have to create the inventory file or w/e its called
16:02 wolfpackmars2 do you manage many minions doompatrol?
16:02 darix joined #salt
16:03 doompatrol around 140 between to salt envs sadly ...
16:03 doompatrol err s/to/two
16:03 doompatrol i enjoy salt however as with most technologies it has it's shortcomings that you have to work within/around
16:04 wolfpackmars2 agreed...  I think this problem has been reported.  I don't know that there's a simple fix...  I just don't want to create a bug report if this is a known issue
16:05 wolfpackmars2 I guess I'll end with "This is why salt will never replace the human admins"
16:05 wolfpackmars2 job security and all ;)
16:05 doompatrol heh
16:05 doompatrol exactly
16:06 doompatrol https://docs.saltstack.com/en/latest/faq.html#when-i-run-test-ping-why-don-t-the-minions-that-aren-t-responding-return-anything-returning-false-would-be-helpful
16:06 doompatrol well i just learned something
16:06 wolfpackmars2 about the test.ping?
16:06 doompatrol there is also https://github.com/saltstack/salt/issues/27340
16:06 saltstackbot [#27340]title: Minion did not return. [No response] - Salt: 2015.8.0 | I just update both master  and minions to Salt: 2015.8.0 and start to get many:...
16:06 berserk joined #salt
16:07 wolfpackmars2 yep that's about the extent of the information I've found about the issue online
16:07 zirpu joined #salt
16:09 wolfpackmars2 also this one https://docs.saltstack.com/en/latest/faq.html#what-is-the-best-way-to-restart-a-salt-daemon-using-salt
16:11 wolfpackmars2 so, minion -> master works; master -> minion doesn't work until the minion is restarted.  Also, restarting the master doesn't seem to solve the issue either
16:12 wolfpackmars2 unfortunately, that also makes it difficult to schedule a task on the minion to test the connection and restart the minion if it's down.  the minion will still believe it's connected
16:12 racooper Howdy. is it possible for salt command line to read a text list of minions to act on?
16:14 doompatrol wolfpackmars2: you could have the minion attempt to do a highstate (using test=True, at least I use the "test" option), and then if it fails, restart the minion
16:15 doompatrol i know it's hackish but let me know if you find a solution worth investing in
16:15 wolfpackmars2 the funny thing is, the state.highstate worked from the minion (using salt-call) but from the master, no joy
16:15 doompatrol racooper: there is globbing but idk about reading from a file outside of salt-ssh's inventory file (which is slightly different beast)
16:15 doompatrol wolfpackmars2: oic that sucks :\
16:16 wolfpackmars2 state.highstate even pulled some recent changes to the state files, so I know the communication was good (ie - it wasn't just running against the local cache)
16:16 racooper yeah...I'm dealing with about 150 minions without grains defined yet, trying to patch them in blocks
16:16 wolfpackmars2 so yeah... weird
16:17 cpowell joined #salt
16:18 wolfpackmars2 racooper I wonder if you could inline a text file...  such as:  salt "`cat myminions.lst`" state.highstate
16:18 doompatrol racooper: you mean pillars eh? grains are facts of said systems
16:20 hightekvagabond joined #salt
16:20 racooper I meant grains. I'm trying to defining a patch set grain on all my boxes but these are inherited, and only recently have salt on them so I haven't had time to reconfigure everything
16:21 wolfpackmars2 you can also create a state file that targets each host with specific grains individually
16:22 racooper I tried doing inline wolfpackmars2 but it didn't work
16:22 doompatrol or append grains to a system
16:22 * doompatrol has no clue
16:22 beardedeagle joined #salt
16:23 jorr-el joined #salt
16:23 akhter Anyone work with environ.get?
16:24 XenophonF akhter: what are you trying to accomplish?
16:24 chiui joined #salt
16:24 akhter XenophonF: I'm using salt environ.set foo bar on target instances via teamcity.
16:25 akhter Then I'm teamcity is calling a saltstate which has {% set some_war = salt['environ.get']('Mywarfile') %}
16:26 akhter Or rather {% set some_war = salt['environ.get']('foo') %} for this example.
16:26 wolfpackmars2 racooper check this out: https://docs.saltstack.com/en/develop/ref/cli/salt.html#cmdoption-salt-L
16:26 wolfpackmars2 I think you are looking for the -L option
16:26 akhter But it's not picking up the environment from the minions enviornment.
16:26 akhter environment variable from the minions environment*
16:27 akhter XenophonF: Does that make sense?  I know that explanation isn't the greatest.
16:28 wolfpackmars2 racooper I got it to work
16:28 wolfpackmars2 salt `cat minions.lst` -L test.ping
16:29 wolfpackmars2 where minions.lst is formatted like this:  one.host.com,two.host.com,three.host.com
16:29 racooper ah, that's the rub. my list is one per line, for use with another script
16:29 wolfpackmars2 copy the list, then replace line breaks with commas
16:30 wolfpackmars2 the file should end up as a one line, comma separated list
16:30 wolfpackmars2 you can use your fav. text editor for this or the command line (repl ??)
16:31 racooper yeah...was just trying to keep from having multiple lists around. I'll play with it.
16:32 wolfpackmars2 these should be temporary lists used to set the grains... you should not be targeting minions using a list... set up the grains for this
16:32 jrgochan joined #salt
16:32 wolfpackmars2 Salt is your friend, use it's full power :)
16:32 fullstop it is
16:33 racooper I'll get there. still trying to define what the patchsets are, it's been...politically complicated.
16:33 beardedeagle salt isn't just a friend, it's a gentle lover. treat it well and make it feel needed.
16:34 doompatrol heh
16:35 wolfpackmars2 racooper I don't know what the command line equivalent of a replace command is, but you could probably mangle the text file using a single command line - no need to copy the text file at all
16:35 ekristen joined #salt
16:35 sk_0 joined #salt
16:35 racooper I could probably do it with some combination of sed, awk or something yeah
16:36 wolfpackmars2 exactly
16:36 L2SHO joined #salt
16:37 snicers-work joined #salt
16:37 Brew joined #salt
16:38 wolfpackmars2 but hopefully using these host lists won't be SOP for how you target minions...  I'm 'assuming' you have a good reason for needing to target the minions individually this way
16:38 jorr-el sed -i 's/\n/,/g' <list>     should do it
16:39 spiette joined #salt
16:40 armguy joined #salt
16:40 racooper like I said...I inherited them. unfortuntaely there were no standards and no real management on them prior. I'm taming things (and moving them off SLES to CentOS and building states and pillars as I migrate
16:41 jorr-el you could also do it with a single list:          salt `cat minions.lst | sed 's/\n/,/g'` -L test.ping
16:41 sk_0 joined #salt
16:43 djgerm1 Any suggestions for monitoring your masters with nagios? I am happy to see at least one check on nagios exchange https://exchange.nagios.org/directory/Plugins/Remote-Access/check_salt-2Epl/details
16:48 subsignal joined #salt
16:49 Fiber^ joined #salt
16:49 deus_ex joined #salt
16:50 doompatrol djgerm1: thx, been meaning to enhance monitoring for salt
16:50 doompatrol atm we do a basic process check (that isn't effective)
16:52 djgerm1 yeah… i am thinking of hacking that nagios exchange contribution a little
16:52 djgerm1 I have multiple masters with all the same minions…. so I don't really want to know from all of them that a minion has gone. I'll have monitoring for the minion…
16:53 djgerm1 though… a check from the minion that it can talk to its master would be interesting
16:53 btorch left #salt
16:54 chiui joined #salt
16:56 ronnix joined #salt
16:57 hightekvagabond joined #salt
16:57 doompatrol indeed that's something i'm wanting as well
16:59 onlyanegg joined #salt
16:59 conan_the_destro joined #salt
16:59 yuhlw joined #salt
17:02 pooogles joined #salt
17:03 whytewolf joined #salt
17:04 spuder joined #salt
17:06 toantruong joined #salt
17:08 jhujhiti joined #salt
17:09 jrklein joined #salt
17:11 berserk joined #salt
17:15 fracklen joined #salt
17:15 jorr-el Hey, I'm having troubles rendering post-data through the salt cherrypy api to a sls to then be rendered into a file.managed statement which would customize the file every time the api is called. Any pointers?
17:16 impi joined #salt
17:16 jorr-el I am trying to acquire the data with: {% set sg_bind_address = data.get('headers', {}).get('sg_bind_address') %}
17:16 jorr-el and in the file.managed statement I am using:     - sg_bind_address: {{ sg_bind_address }}
17:16 jorr-el and in the template file I call {{ sg_bind_address }} which works if I use state.apply and statically define what the bind address should be.
17:17 jorr-el through the api however I get no data rendered =x
17:20 writtenoff joined #salt
17:25 Muchoz joined #salt
17:25 Muchoz Does anyone know why I'm getting this in mysql-server service.running? "Service mysql is already enabled, and is dead"
17:25 bluenemo joined #salt
17:25 jaybocc2 joined #salt
17:26 jorr-el what happens when you type 'service mysql status' on the target?
17:26 jorr-el or 'systemctl status mysql'
17:26 Muchoz jorr-el, stop/waiting
17:26 ferbla Is the pid file still there?
17:26 Muchoz ferbla, in /tmp?
17:27 ferbla I think it's /tmp/
17:27 Muchoz Then no, not there.
17:27 ferbla What OS you running
17:27 Muchoz Ubuntu 14.04
17:27 Muchoz This is the first time that this happens btw
17:28 Muchoz I didn't change anything specific to mysql
17:28 ferbla Okay, I usually work on CentOS. Okay, I have had a similar issue on CentOS and  it was the PID file. Let me check and see if I can find the directory for you
17:28 gtmanfred if you are on ubuntu 14.04
17:28 gtmanfred check
17:28 gtmanfred status mysql
17:28 gtmanfred or mysql-server
17:28 gtmanfred cause it will be upstart
17:29 gtmanfred actually
17:29 gtmanfred nevermind, I think it still uses the initscript
17:29 Muchoz Ya, it's stop/waiting
17:29 gtmanfred ok
17:29 gtmanfred is mysql running?
17:29 tuxx joined #salt
17:29 gtmanfred if it is actually running
17:30 gtmanfred you will need to troubleshoot the init/upstart script to figure out why it thinks the service is not running
17:30 gtmanfred and may be best to talk to #ubuntu who should know more about the actual script
17:30 Muchoz It's not running, that's the problem
17:30 Muchoz And it's not starting it
17:30 Muchoz Worked just fine before
17:30 gtmanfred ok, then you should troubleshoot that, and talk to #ubuntu
17:31 gtmanfred but checking the mysql logs is where I would start
17:31 gtmanfred or attempting to start it the same way the init script does
17:31 gtmanfred crom the commandline
17:31 gtmanfred from*
17:32 Muchoz I found the problem in the log, oom error
17:32 Muchoz Thank you gtmanfred
17:34 gtmanfred cool :) np
17:34 gtmanfred yeah, those oom killers get annoying :)
17:35 gtmanfred I know that in systmed you can set the maximum memory and also the chance that a process gets killed in the unit file, basically disabling oom killer from killing it
17:36 gtmanfred but for anything before that, i don't think there is a good way
17:36 gtmanfred http://unix.stackexchange.com/questions/100873/oom-killer-killed-mysql-server
17:36 Muchoz I'm just gonna add a custom innodb buffer pool size for vagrant installations
17:37 gtmanfred :)
17:38 zmalone joined #salt
17:38 Lionel_Debroux_ joined #salt
17:41 jaybocc2 joined #salt
17:48 gekitsuu joined #salt
17:49 aharvey joined #salt
17:50 cb joined #salt
17:53 fracklen joined #salt
17:56 knite joined #salt
18:00 eodgooch joined #salt
18:01 srinivas joined #salt
18:01 UICTamale joined #salt
18:02 eodgooch This is a shot in the dark but I am in immediate need of a Salt based Devops consultant in Los Angeles. Anyone have any leads?
18:03 Eugene There was a time when I would have said "pick me!". But now I live in Seattle.
18:03 dlam joined #salt
18:03 Eugene If you just need a Salt expert Right Now, try just calling the SaltStack sales line. I'm sure they can find you an engineer for a teleconference, and possibly ship you one
18:04 UICTamale Sup salt peeps.  I'm trying to use the salt-cloud with gce and I'm getting "Insufficient Permissions".  I already did gcloud auth on the same host and am authenticated to use the google apis from the salt master
18:08 UtahDave joined #salt
18:09 Taz_ joined #salt
18:10 anotherZero joined #salt
18:12 disbound joined #salt
18:13 nyx_ joined #salt
18:17 knite joined #salt
18:18 JDiPierro joined #salt
18:24 shaggy_surfer joined #salt
18:27 eodgooch joined #salt
18:27 felskrone joined #salt
18:34 jtylers joined #salt
18:35 devopsprosiva joined #salt
18:35 shaggy_surfer joined #salt
18:37 zer0def joined #salt
18:38 terinjokes joined #salt
18:40 netcho_ joined #salt
18:44 hightekvagabond joined #salt
18:45 knite joined #salt
18:52 onlyanegg joined #salt
18:57 KyleG joined #salt
18:57 KyleG joined #salt
18:58 Rumbles joined #salt
19:01 spuder_ joined #salt
19:02 egalano joined #salt
19:02 KyleG joined #salt
19:02 KyleG joined #salt
19:05 pfallenop joined #salt
19:05 darvon joined #salt
19:05 gekitsuu joined #salt
19:06 hoonetorg how do you people run salt highstate every 30 min
19:06 hoonetorg create a cronjob?
19:06 hoonetorg (assuming you are using salt-master -> salt-minion)
19:06 Ch3LL hoonetorg: you can use the saltstack scheduler
19:07 UtahDave hoonetorg: I generally recommend using whatever you are currently using to manage recurring jobs.  If you're not using anything else, I'd recommend the Salt scheduler.  If you already are running and managing lots of cron jobs, then that's a good way to go
19:08 UtahDave If this would be your only cronjob, then I'd go with Salt's scheduler.  I've seen too many people forget about a cronjob and have weird things happen when they're not expecting that cronjob to be running
19:08 hoonetorg Ch3LL: thx
19:09 hoonetorg comes into minion conf or ?
19:09 Eugene I use a nagios plugin that runs highstate in test mode, and run it manually when needed
19:09 GreatSnoopy joined #salt
19:10 djgerm1 Eugene: that's brilliant!
19:11 hoonetorg all nice ideas
19:11 Eugene https://gist.github.com/djs52/e0f753e0d54f8e1890c9
19:11 hoonetorg i read that scheduler can be activated with pillar also???
19:11 Eugene Stitched together it looks like https://status.kashpureff.org/
19:12 hoonetorg that's not clear from the documentation at https://docs.saltstack.com/en/latest/topics/jobs/schedule.html
19:12 doompatrol Eugene: i envy you
19:12 Eugene I've put a loooot of time into making this look so pretty, heh
19:13 hoonetorg Eugene: elegant
19:15 JDiPierro joined #salt
19:15 egalano joined #salt
19:16 jim__ joined #salt
19:16 baweaver joined #salt
19:17 ageorgop joined #salt
19:18 hoonetorg Ch3LL, UtahDave: how to activate schedulers via pillar???
19:21 onlyanegg joined #salt
19:21 hoonetorg i read that at https://docs.saltstack.com/en/latest/topics/jobs/schedule.html
19:21 hoonetorg but there is no hint how
19:22 babilen hoonetorg: You set them in pillars
19:23 spuder joined #salt
19:24 jaybocc2 joined #salt
19:24 hoonetorg babilen: the same what i would write into the minion config
19:24 hoonetorg ???
19:25 babilen hoonetorg: An example can be seen in the documentation you linked
19:25 hoonetorg so a pillar starting with "scheduler: " creates a scheduler on the minion
19:25 hoonetorg ??
19:25 teryx510 joined #salt
19:25 babilen No, it starts with "schedule"
19:25 hoonetorg https://docs.saltstack.com/en/latest/topics/jobs/#highstates
19:26 hoonetorg you mean that example???
19:26 chiui joined #salt
19:26 hoonetorg yes 'schedule:'
19:26 babilen For example .. you simply target that pillar data to minions in question
19:27 hoonetorg and then saltutil.refresh_pillar
19:27 hoonetorg and it's active ???
19:27 hoonetorg OMG how easy -> must try
19:29 ajw0100 joined #salt
19:30 cliluw joined #salt
19:30 srinivas joined #salt
19:30 babilen hoonetorg: Yes, indeed .. too easy?
19:31 gekitsuu joined #salt
19:35 morissette joined #salt
19:35 hoonetorg :0) will try in test system then
19:36 traph_ joined #salt
19:39 brianfeister joined #salt
19:41 forrest joined #salt
19:44 srinivas joined #salt
19:46 tehsu is it possible to do an if statement that matches different grains to do one thing, like an if that does multiple ORs
19:47 gtmanfred you would just need to do or or or in the if statement
19:48 gtmanfred {% if grains.thing == 'foo' and grains.those == 'bar' %}
19:48 gtmanfred switch out and for or
19:49 tehsu got it, thanks
19:57 bhosmer_ joined #salt
19:59 Charly_ joined #salt
20:02 jfelchner joined #salt
20:04 cyborg-one joined #salt
20:04 garphy joined #salt
20:06 Glasswlkr_home joined #salt
20:06 forresta joined #salt
20:07 west575_ joined #salt
20:07 opdude_ joined #salt
20:08 cyborglone joined #salt
20:09 aRkadeFR_ joined #salt
20:10 cyborgIone joined #salt
20:10 jfelchner_ joined #salt
20:11 Phtes_ joined #salt
20:11 ekristen_ joined #salt
20:11 invalidexceptio- joined #salt
20:11 spader joined #salt
20:11 InAnimaTe|whosto joined #salt
20:12 davromaniak joined #salt
20:12 davromaniak joined #salt
20:12 jfindlay joined #salt
20:12 vincent_vdk joined #salt
20:12 quarcu joined #salt
20:12 GreatSnoopy joined #salt
20:12 chesty joined #salt
20:12 pmcg joined #salt
20:12 karlthane joined #salt
20:12 edulix joined #salt
20:13 jcastle joined #salt
20:13 ajolo joined #salt
20:13 stopbyte joined #salt
20:13 traph_ joined #salt
20:13 shawnbutts joined #salt
20:14 devopsprosiva What's the equivalent state of bash's sourcing a file to read the variables stored in the file?
20:14 ajw0100 joined #salt
20:14 TomJepp joined #salt
20:18 DammitJim joined #salt
20:20 urda joined #salt
20:22 urda Using gitfs_remote with a mountpoint, how can I get saltstack to find 'top.sls' in a sub folder? For example I have a git repo mounted at salt://git with a top file of salt://git/top.sls . However my minions keep trying to just load salt://top.sls
20:22 hal58th_ joined #salt
20:23 tracphil_ urda: show me a snippet of what you have for your master config
20:24 tracphil_ you need a root: line in additon to a mountpoint: line
20:24 tracphil_ like so https://gist.github.com/tracphil/2bd76e1d3bef2a7ff51e
20:24 urda tracphil_ https://gist.github.com/urda/b00f052ed799d74f68bc
20:25 martoss joined #salt
20:25 urda so when I fire highstate, the minions should salt://git/top.sls instead of them calling salt://top.sls
20:25 tracphil_ well I think they will try to load salt://git/init.sls
20:25 martoss joined #salt
20:26 tracphil_ I don't use top.sls files so I am not sure about that.
20:26 tracphil_ anywhoo, you shoudl try -root: git
20:26 joe_n joined #salt
20:26 urda ok let me try the root git
20:27 tracphil_ I have a twisted setup in that I use reclass with individual formulas and not a monolithic setup.
20:28 urda ok well that didn't seem to help as the minions still load salt://top.sls instead of trying to reach salt://git/top.sls using that config of mine
20:29 gtmanfred urda: you want gitfs_root
20:29 gtmanfred urda: https://docs.saltstack.com/en/latest/ref/configuration/master.html#gitfs-root
20:29 dmaiocchi joined #salt
20:30 martoss hey folks, is salt-ssh supposed to work together with git_pillar and gitfs?
20:30 tracphil_ ahhh, I have that snippet under gitfs_remotes: in my master config.
20:31 whytewolf urda: i think this is the setting you are looking for. https://docs.saltstack.com/en/latest/ref/configuration/master.html#state-top
20:31 whytewolf btw. top.sls isn't read by the minions it is read by the master
20:32 linjan joined #salt
20:32 urda yeah I'm pretty new to saltstack
20:32 urda let me try state_top
20:32 tracphil_ ok,I am out... I don't use anything on the local filesystem for salt:// everything comes from a git reop.
20:33 whytewolf eh, git repo gitfs or root filesystem that setting is the same
20:33 gtmanfred martoss: i believe it might work? cause pillars are rendered on the master and then sent over, but i don't remember if there was a bug with external pillars and salt-ssh or not
20:33 tracphil_ I don't use a top.sls at all
20:34 gtmanfred i don't see an issue
20:34 gtmanfred so i would assume it does
20:35 mapu joined #salt
20:36 mavhq joined #salt
20:36 martoss gtmanfred: this is what I thought so as well - but apparently the pillar is not rendered at all. If is use the master-minion connection. The pillar is rendered as expected.
20:36 gtmanfred martoss: https://github.com/saltstack/salt/issues/23576
20:36 saltstackbot [#23576]title: Cannot use gitfs with salt-ssh | Related thread in salt user mailing list....
20:37 tracphil_ this is my complete salt-master config if it helps: https://gist.github.com/tracphil/50df712a2000f8244179
20:37 tracphil_ well, I trimmed the remotes down a bit, but you get the idea
20:38 netcho__ joined #salt
20:39 martoss gtmanfred: interesting - this only refers to gitfs but that might also apply to git pillar since a lot of code has been merged in the last release afair.
20:42 gtmanfred gitpillar and gitfs use the same backend
20:42 gtmanfred yeah
20:42 gtmanfred in 2015.8 they use the same backend
20:43 shaggy_surfer joined #salt
20:45 hightekvagabond joined #salt
20:46 sjorge joined #salt
20:46 sjorge joined #salt
20:48 fgimian joined #salt
20:51 traph_ joined #salt
20:52 brianfeister joined #salt
20:58 baweaver joined #salt
21:06 chiui joined #salt
21:08 patchedmonkey joined #salt
21:10 Muchoz So I've currently got a masterless minion working great in a vagrant box. It supports building and hosting multiple branches that are setup via pillars in salt. What's the best way I can move this to a VPS somewhere and remotely be able to trigger an 'update' and tell it to use a specific pillar?
21:11 ZiLi0n joined #salt
21:11 Brew joined #salt
21:12 ZiLi0n Hello everyone, I am running into a strange issue where saltmaster is complaining about failing to render a pillar. I have restarted salt-master, even removed all the content of the pillar file he complains about, and it is giving me still same error
21:12 ZiLi0n is there any cache or something on those lines that could explain this?
21:14 ZiLi0n hi, just found: salt '*' saltutil.refresh_pillar. It solved the problem
21:14 GreatSnoopy ps xa
21:15 jrgochan Hey all. I want to populate a pillar file with data from another pillar file before it's read into a jinja template. Doesn't seem to be working.. is there some order of operations going on?
21:16 iggy colegatron: put it at the top?
21:17 iggy colegatron: states don't run in parallel on the same host, they run in order top-down (unless requisites change the order)
21:17 hightekvagabond joined #salt
21:18 patchedmonkey joined #salt
21:20 H2Ov4 joined #salt
21:21 KyleG joined #salt
21:21 KyleG joined #salt
21:23 jim__ joined #salt
21:27 Muchoz When using Salt's include, can you use the macro's from that sls file?
21:30 patchedmonkey joined #salt
21:30 alexlist joined #salt
21:33 bmccormick joined #salt
21:34 gtmanfred depends on how you include it i believe
21:34 gtmanfred if you include it using jinja, then yes, you are including the jinja macro
21:35 gtmanfred but i you just do the yaml include, no, because that is interpreted in the state loader to bring in the other states, but not the jinja
21:35 gtmanfred the jinja will be rendered by then i believe
21:36 bbradley i have to clear my apt cache when changing versions of salt.
21:36 bbradley el sign
21:36 patchedmonkey joined #salt
21:36 teryx510 joined #salt
21:36 bbradley apt-cacher that is
21:36 Muchoz gtmanfred, thank you :)
21:36 teryx510 joined #salt
21:38 gtmanfred no problem
21:38 teryx5101 joined #salt
21:41 hightekvagabond1 joined #salt
21:44 perfectsine joined #salt
21:45 patchedmonkey joined #salt
21:49 jim__ joined #salt
21:50 ajw0100 joined #salt
21:51 perfectsine_ joined #salt
21:51 joe_n joined #salt
21:53 bhosmer joined #salt
21:55 Muchoz gtmanfred, the salt jinja renderer docs show how it's done. But if I have a folder per list of states, do I put it next to the top.sls or where do I put it so it's available to all?
21:58 DanyC joined #salt
21:58 armguy joined #salt
21:59 hightekvagabond joined #salt
22:00 DanyC hi, anyone using salt-ssh raw to manage network devices? salt-ssh raw can of course connect and issue single commands but that doesn't help for dropping in a multi-line config statement. Any other ideas ? maybe @basepi ?
22:00 jim__ joined #salt
22:02 joe_n joined #salt
22:03 martoss joined #salt
22:04 martoss left #salt
22:04 DanyC joined #salt
22:06 Muchoz gtmanfred, turns out next to top.sls works.
22:07 keimlink joined #salt
22:08 wwwbukolaycom joined #salt
22:08 pppingme joined #salt
22:10 tkeith I'm trying to install salt-minion on a ubuntu 14.04 32-bit instance and I'm running into this problem: https://github.com/saltstack/salt/issues/27437
22:10 saltstackbot [#27437]title: repo.saltstack.com/apt/ubuntu/ubuntu14 trusty lack of 32 bit libraries | Installation of salt 2015.8.0 fails on Ubuntu Trusty 14.04 LTS  32bit due too lack of the 32bit libraries (python-tornado). ...
22:10 tkeith It doesn't look like anything has happened since Nov, does anyone have a recommended way to get around this?
22:10 DanyC nobody around with salt-ssh experience ?
22:10 akhter_1 joined #salt
22:11 BlackBishop joined #salt
22:14 jim__ joined #salt
22:14 basepi DanyC: hmmm, I'll have to think on that. I have the salt-ssh experience but haven't thought about how to do stuff like that with raw
22:14 DammitJim is there a way to tell what minion has gotten a certain state executed against?
22:15 zmalone check your salt logs
22:15 DanyC @basepi i know you have as is your baby (i believe) - where is the raw module code ?
22:17 DammitJim is there a way to check if a group is present w/o creating it?
22:17 DammitJim I don't know why someone would have created a state defined as tomcat6-group: group.present: -addusers:...
22:17 DammitJim I would expect it to have a name for just tomcat6
22:17 funq joined #salt
22:20 KingJ joined #salt
22:20 funq docs hint that there is a way to hold and use salt-cloud providers and profiles in pillar. i'm having difficulty using this information from pillar, any known examples? i think i've googled enough.
22:20 DanyC @basepi currently i'm forced to use this script http://hastebin.com/mifagucoxu.py instead of salt-ssh due to lack of functionality
22:21 basepi DanyC: https://github.com/saltstack/salt/blob/3832f9b87459a5aa7b8f11e1f17950d303cb418f/salt/client/ssh/__init__.py#L790-L792
22:21 jor joined #salt
22:22 basepi You might consider looking into proxy minions as well. I think that's where the company is more focused for instances where python isn't an option so we can't deploy proper salt-ssh.
22:22 basepi But the raw salt-ssh stuff is very simple, it just executes the given command over salt-ssh. You can use that inside of other scripts, but there's not much functionality for running complex stuff using salt-ssh raw
22:23 s_kunk joined #salt
22:23 martoss joined #salt
22:24 DanyC @basepi right, i was thinking of proxy but thought in meantime i could get away with a quick/ tidy salt-ssh rather than other wrappers
22:24 basepi Yeah, sorry I'm not more help. There's really no hidden functionality there, it's pretty simple.
22:26 DanyC @basepi is anyway i can use salt-ssh with a custom module so i can pass similar info to what grains.setval does?
22:28 basepi DanyC: unfortunately, not yet. It's on my list: https://github.com/saltstack/salt/issues/25713
22:28 saltstackbot [#25713]title: salt-ssh missing custom grains | Due to a firewall snafu, some of my minions lost connectivity to the salt-master today, but I could still ssh from the master to the minion. So I tried to use salt-ssh but discovered that custom grains were missing....
22:29 basepi Though since I switched jobs I'm not sure when I'm going to get to it. That particularly one should be fairly simple so I might do it one evening.
22:29 hal58th joined #salt
22:29 DanyC @basepi what you mean by _switched jobs_? you still working for SaltStack, right?
22:30 basepi I don't, actually. I took a job at Adobe. :sob:
22:30 basepi ;)
22:30 basepi But I still want to be involved, so I'm around. :)
22:30 basepi Plus I'm working on salt at Adobe
22:31 DanyC @basepi bugger... i doubt with time you will still be close to the project..shame as the company lost a good chap...bet nobody will reply on the user-group
22:32 UtahDave basepi: You can check-out any time you like, But you can never leave!
22:32 basepi xD
22:32 DanyC @basepi either-way - good luck on your new job
22:32 basepi Luckily I think UtahDave is going to have more time to be involved in the community, like days of old
22:32 basepi DanyC: thanks!
22:32 UtahDave Yep!
22:33 netcho__ joined #salt
22:33 whytewolf yay!
22:33 DanyC left #salt
22:34 whytewolf well yay to UtahDave having more time for #salt.
22:34 whytewolf boo for basepi being a little further from the project
22:34 whytewolf :P
22:34 devopsprosiva What is the best way to configure mine on the minions?
22:34 whytewolf devopsprosiva: pillar
22:35 devopsprosiva whytewolf: Thanks. Any pointers to docs that show the setup? https://docs.saltstack.com/en/latest/topics/mine/ just has examples
22:35 whytewolf devopsprosiva: go to the very bottom of that page. i think that is one of the best examples
22:36 whytewolf pretty much sums up what needs to be where. and the kinds of things you can use
22:36 devopsprosiva ok
22:37 devopsprosiva Thanks a lot
22:37 akhter joined #salt
22:37 whytewolf let me see if i can dig up my gist of mines
22:39 whytewolf devopsprosiva: https://gist.github.com/whytewolf/eff4a15f0eaa8d5354a3 here is what i have as a gist for mines.
22:39 devopsprosiva awesome!!!
22:40 whytewolf which covers the pillar_refresh and mine_update
22:40 devopsprosiva col
22:40 devopsprosiva cool
22:42 krymzon joined #salt
22:44 pppingme joined #salt
22:44 devopsprosiva whytewolf: You rock. Worked like a charm!!!
22:45 zenlot1 joined #salt
22:45 whytewolf devopsprosiva: kewlies
22:46 subsignal joined #salt
22:52 hal58th basepi switched jobs for the free Adobe Suite software. A $600 per year value.
22:53 whytewolf a soul is worth about $600 a year
22:57 coval3nce joined #salt
23:01 thejrose1984 joined #salt
23:05 urda Hey salt, I am trying to setup Master with PKI signing, and my minion doesn't even seem to be giving the expected output of verified master pubkey. I have set in my minion verify_master_pubkey_sign: True and have generated and enabled the singing key on master
23:07 onlyanegg joined #salt
23:15 eykd joined #salt
23:16 baweaver joined #salt
23:18 EO_ How do you prevent event loops when you have two (master+syndic) hosts pointed at each other?
23:19 funq for the record, salt-cloud prefers files in /etc/salt/cloud.pro* to conf in pillar. remove the files and pillar works.
23:19 funq also, deployment to centos 7 with -U argument fails.
23:20 eykd https://bootstrap.saltstack.com -> https://bootstrap.saltstack.com/stable/bootstrap-salt.sh is suddenly 404ing.
23:20 nyx_ joined #salt
23:21 funq i didn't use that one, but good to know.
23:21 EO_ Alternatively, how do you configure salt-syndic to only repeat job publish events?
23:23 eykd That’s the recommended bootstrapping method at https://github.com/saltstack/salt-bootstrap#examples. It was working a minute ago.
23:23 devopsprosiva I've a jinja for loop to generate ip addresses from mine. But the output is wrapped in square brackets like ['10.1.1.1']. How can I remove those square brackets?
23:24 eykd devopsprosiva: Do you have nested lists? Sounds like you’re getting the string repr of the list rather than the string inside the list.
23:25 devopsprosiva I think so. I get the minion id and the ip address. I use both the values.
23:25 whytewolf devopsprosiva: you might need a |first added to your variable. or maybe a [0]
23:26 scoates joined #salt
23:26 eykd devopsprosiva: Or a nested list to get into the inner list, if the inner list might have multiple IPs. Depends on how your data’s structured.
23:26 eykd Er, nested loop.
23:27 KingJ joined #salt
23:27 devopsprosiva ok
23:27 jfindlay eykd: working on it
23:27 cilkay joined #salt
23:27 jfindlay bootstrap, that is
23:28 eykd jfindlay: Thanks. :) I was about to put in an issue.
23:28 mbrgm joined #salt
23:28 mbrgm hi! is it possible to cp.push using salt-ssh (no minion-master setup)?
23:29 UtahDave mbrgm: yep!
23:29 UtahDave bootstrap.saltstack.com should be back up.  Can someone double check for me?
23:31 Ludo- it's up!
23:34 pdayton joined #salt
23:35 eykd UtahDave: jfindlay: Works for me. Thanks.
23:35 jaybocc2 joined #salt
23:35 armguy joined #salt
23:35 UtahDave thanks, eykd.
23:37 mbrgm UtahDave: the command times out for me... telling me that master was reachable before but not any longer.
23:38 UtahDave mbrgm: have you tried using file.recurse?
23:38 mbrgm UtahDave: isn't file.X master->minion? I was trying to do minion->master
23:39 voileux joined #salt
23:39 UtahDave Oh, I see.  I'm sorry. I didn't realize that's what you were trying to do.
23:39 UtahDave Let me check the docs. Not sure if that will work
23:41 UtahDave Hm. Perusing the code for cp.push leads me to believe that it won't work.    do you have   `file_recv: True` in your master config
23:41 UtahDave ?
23:41 bhosmer joined #salt
23:41 UtahDave cp.push sets up a communication channel that I think needs to be zmq or raet.
23:45 mbrgm UtahDave: yes I do. as far as I can tell I would second it won't work, as it crashes somewhere in crypt.py
23:45 UtahDave yeah, it's trying to set up a secure channel over zmq
23:46 mbrgm too bad :-/
23:48 feld joined #salt
23:50 kermit joined #salt
23:50 UtahDave mbrgm: Are there any open issues requesting that feature?
23:52 shaggy_surfer joined #salt
23:52 perfectsine joined #salt
23:53 mbrgm seems like https://github.com/saltstack/salt/issues/31236 adresses this
23:53 saltstackbot [#31236]title: cp module does not work in salt-ssh | This reproduces on develop branch and with every salt release that can be installed on my target system (Ubuntu 14.04 LTS). Most functions in the cp module, e.g. `cp.get_file_str` or `cp.cache_file` do not work....
23:54 Muchoz left #salt
23:54 Muchoz joined #salt
23:56 amcorreia joined #salt
23:58 baweaver joined #salt

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