Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-03-27

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

All times shown according to UTC.

Time Nick Message
00:16 schemanic_ joined #salt
00:23 nikdatrix joined #salt
00:28 Fabbe_ joined #salt
00:30 jesusaur joined #salt
00:30 stooj joined #salt
00:34 nikdatrix joined #salt
00:41 Pyro_ joined #salt
00:45 Renich__ joined #salt
00:46 Pyro_ joined #salt
00:52 stooj joined #salt
00:58 jab416171 joined #salt
01:00 DEger joined #salt
01:01 catpig joined #salt
01:02 catpigger joined #salt
01:03 stooj joined #salt
01:03 shoemonkey joined #salt
01:09 gnomethrower joined #salt
01:09 stooj joined #salt
01:15 jesusaur joined #salt
01:17 stooj joined #salt
01:27 stooj joined #salt
01:29 writtenoff joined #salt
01:35 stooj joined #salt
01:39 dxiri joined #salt
01:39 jas02 joined #salt
01:40 jesusaur joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.5, 2016.11.3 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ (please don't multiline paste into channel) <+> See also: #salt-devel, #salt-offtopic <+> Ask with patience as we are volunteers and may not have immediate answers
01:59 stooj joined #salt
02:16 onlyanegg joined #salt
02:25 debian112 joined #salt
02:29 debian1121 joined #salt
02:30 stooj joined #salt
02:34 pipps joined #salt
02:36 nikdatrix joined #salt
02:36 evle joined #salt
02:40 shoemonkey joined #salt
02:43 stooj joined #salt
02:45 JPT joined #salt
02:47 jas02 joined #salt
02:50 dxiri joined #salt
02:52 ahrs joined #salt
03:00 Klaus_Dieter joined #salt
03:01 ivanjaros joined #salt
03:01 stooj joined #salt
03:09 stooj joined #salt
03:10 Klaus_D1eter_ joined #salt
03:50 jas02 joined #salt
03:54 onlyanegg joined #salt
03:54 ninjada joined #salt
03:55 NV joined #salt
04:11 preludedrew joined #salt
04:12 k_sze[work] joined #salt
04:13 sp0097 joined #salt
04:18 Pyro_ joined #salt
04:37 nikdatrix joined #salt
04:39 DEger joined #salt
04:49 DEger joined #salt
04:57 jas02 joined #salt
05:01 DEger joined #salt
05:09 DEger joined #salt
05:14 DarkKnightCZ joined #salt
05:19 DEger joined #salt
05:32 DEger joined #salt
05:36 calvinh joined #salt
05:39 DEger joined #salt
05:42 felskrone joined #salt
05:59 colttt joined #salt
06:00 DEger joined #salt
06:03 jas02 joined #salt
06:05 onlyanegg joined #salt
06:06 golodhrim|work joined #salt
06:21 ninjada_ joined #salt
06:21 sh123124213 joined #salt
06:22 DarkKnightCZ joined #salt
06:23 Ricardo1000 joined #salt
06:26 darioleidi joined #salt
06:28 sh123124213 joined #salt
06:29 ninjada joined #salt
06:33 fracklen joined #salt
06:36 fracklen joined #salt
06:37 onlyanegg joined #salt
06:38 Inveracity joined #salt
06:40 nikdatrix joined #salt
06:50 systeem joined #salt
06:55 DEger joined #salt
06:59 DEger_ joined #salt
07:05 DarkKnightCZ joined #salt
07:08 fracklen joined #salt
07:09 DEger joined #salt
07:09 juntalis joined #salt
07:11 fracklen joined #salt
07:11 aldevar joined #salt
07:11 fracklen joined #salt
07:12 jas02 joined #salt
07:15 JohnnyRun joined #salt
07:21 AvengerMoJo joined #salt
07:22 AvengerMoJo joined #salt
07:25 mbologna joined #salt
07:25 candyman88 joined #salt
07:29 ronnix joined #salt
07:33 DEger joined #salt
07:37 patrek joined #salt
07:39 DEger joined #salt
07:41 rdas joined #salt
07:53 DEger joined #salt
07:58 Praematura joined #salt
08:01 nikdatrix joined #salt
08:01 Klaus_Dieter joined #salt
08:01 mikecmpbll joined #salt
08:02 inad922 joined #salt
08:04 DEger joined #salt
08:06 ivanjaros joined #salt
08:12 ujjain joined #salt
08:12 ujjain joined #salt
08:14 it_dude joined #salt
08:17 Flusher joined #salt
08:23 jhauser joined #salt
08:24 bdrung_work joined #salt
08:28 megamaced joined #salt
08:37 Mattch joined #salt
08:38 sh123124213 joined #salt
08:39 DEger joined #salt
08:40 nikdatrix joined #salt
08:41 darioleidi joined #salt
08:42 s_kunk joined #salt
08:46 dRiN joined #salt
08:49 Joy about my saltutil.refresh_pillar returning False question... i don't have a master log, i'm using salt-ssh
08:53 DEger joined #salt
08:53 hemebond Joy: I thought salt-ssh used a master.
08:53 hemebond Have you checked the minion log?
08:56 mikecmpbll i'm sure i've asked this before, but unfortunately i've forgotten ????. can I use jinja in my pillar files? and can i do includes?
08:57 hemebond mikecmpbll: Yes, pillar files are rendered with #!jinja|yaml just like state files.
08:57 mikecmpbll i want to include a file with the name of `salt['grains.get']('id')`
08:57 mikecmpbll okay cool, so:
08:58 mikecmpbll https://gist.github.com/mikecmpbll/fac39af76a274fba86e752c09cb0a353 should be fine
08:58 hemebond Sure.
08:59 mikecmpbll ????????
09:00 golodhrim|work joined #salt
09:01 DEger joined #salt
09:20 DEger joined #salt
09:24 dknight87 joined #salt
09:25 dknight87 hi guys, how can I download the salt-minion package without installing it?
09:26 jas02 joined #salt
09:29 hemebond Via your web browser?
09:29 hemebond http://repo.saltstack.com/apt/debian/8/amd64/latest/
09:29 dknight87 hemebond: I'm searching for the boron version. Can't find it
09:29 dknight87 whoops, let me check
09:31 DarkKnightCZ Is there already known Nitrogen release date? (so i know what version number to put in PR)
09:32 hemebond DarkKnightCZ: Wouldn't you just do a PR against develop?
09:32 hemebond Or is this an "Added in:" thing...
09:33 DEger joined #salt
09:33 DarkKnightCZ yup, for docs - versionadded
09:33 hemebond Isn't it standard to just use the release codename?
09:34 DarkKnightCZ apparently since Nitrogen it is :)
09:35 DarkKnightCZ for all pre-Nitrogen additions it just states release version (year.month.patch), so Nitrogen it is
09:37 ninjada joined #salt
09:38 ninjada joined #salt
09:43 DEger joined #salt
09:43 onlyanegg joined #salt
09:53 ninjada joined #salt
09:58 DEger joined #salt
10:00 ninjada joined #salt
10:09 DEger joined #salt
10:09 ninjada joined #salt
10:12 hemebond So the Python renderer can't, in general, access other files. Would that be correct?
10:18 DEger joined #salt
10:20 DEger joined #salt
10:26 toanju joined #salt
10:27 cyborg-one joined #salt
10:32 honestly Have you tried?
10:32 hemebond yip
10:33 hemebond I mean, I can open() files, but that's not really going to work inside the Salt ... loading... thingy.
10:33 demize Yeah, it's... an annoying limitation.
10:34 hemebond At first I thought __sls__ would have a path or something, but it's just a sls.path.notation.thing
10:34 demize I ended up hard-coding some absolute paths in a python rendered config file.
10:34 hemebond demize: Does Salt still transfer the file to the minion?
10:34 hemebond Or do you have to manually get it transferred/cached somehow?
10:34 demize Which file?
10:35 hemebond For example if you were opening a map file.
10:35 hemebond or YAML file.
10:35 demize Well, it's rendered on the master
10:35 hemebond If your Python state file is the only SLS to access that YAML file, does the YAML file get transferred to the minion?
10:35 demize And then transferred to the minion
10:35 hemebond Wait, what?
10:36 hemebond Eh? The state files aren't rendered on the minion?
10:36 demize At least the python ones aren't. *shrug*
10:36 demize Then I use `__salt__.slsutil.renderer` to render e.g. yaml files.
10:36 hemebond That... could work for me.
10:36 hemebond Oh that's a new thing, yeah?
10:37 demize It was introduced in... hm.
10:38 hemebond The docs are there for 2016.11
10:38 hemebond But not for 2016.3
10:38 DEger joined #salt
10:39 demize Mmm, 2016.9 it seems .renderer is available from.
10:40 hemebond 'OrderedDict' object has no attribute 'renderer'
10:40 hemebond 2016.9? That's an odd version.
10:40 hemebond Or do you just mean the date.
10:40 demize It's the earliest tag that contains the commit. ;p
10:40 hemebond Ah
10:41 demize https://github.com/saltstack/salt/releases/tag/v2016.9
10:41 hemebond Well I have no problem just parsing YAML manually.
10:41 hemebond It was mostly the file paths I couldn't figure out.
10:43 hemebond It doesn't seem to work for me. Hmmmm.
10:44 demize Oh? Hmm... Maybe it isn't rendered on the master then... I was rather sure that it was though.  Might have been something else that was screwing it up for me in the past.
10:44 Joy hemebond: the minion log on the machine running salt-ssh or?
10:44 demize In that case you might have to use cp.cache_file to have the file you want to load cached on the minion.
10:44 Joy i checked and there's nothing apparently useful
10:45 Joy by default no log, and when i tried with -l debug, it logged a single line about this being insecure
10:45 mikecmpbll if i have `some-key: 4.2` in a pillar file and i want to do some math with it in jinja, do I need to cast it to a float first?, e.g. `salt['pillar.get']('some-key') / 8 * 60`
10:46 hemebond demize: Definitely rendered on the minion.
10:46 Joy yet -l debug doesn't seem to propagate to the minion, it only gives me the rundown of what salt-ssh does in preparation
10:47 Joy i found this rather limiting, i think i filed a bug about the JSON Render generic exception handler a few days ago
10:49 gmoro joined #salt
10:51 demize Hmmm.  Haven't played with these things in a few months, guess I was mixing two issues up in my head.
10:51 hemebond All I actually want to do is some advanced parsing that will be a pain or impossible in Jinja.
10:52 hemebond I might look at Mako or something.
10:52 demize Seems the currently used code does `_salt__['cp.cache_file'](...)` to cache the file, which returns the path
10:52 demize And then runs renderer on that path
10:53 hemebond Your code?
10:53 demize The python renderer used on this server, yeah.
10:53 hemebond Brilliant, thanks.
10:53 demize s/`_salt/`__salt/
10:53 hemebond Is it a salt:// path?
10:54 demize Yeah
10:55 hemebond That's got it. Thanks very much.
10:55 demize Awesome.
10:56 demize I think I was fighting with it for a few days until I figured it out back then.
10:56 demize Should probably write something up for future reference.
10:56 hemebond It's definitely going into a gist.
10:57 hemebond A simple example for the Salt docs would probably be really helpful to others.
11:04 jas02 joined #salt
11:05 ninjada joined #salt
11:13 mikecmpbll is it okay to have a pillar file with dots ('.') in? e.g. file called foo.bar.sls and then: include:\n - foo.bar
11:23 ninjada joined #salt
11:27 babilen mikecmpbll: Dots are used to denote directory boundaries .. why are you keen on conflating that?
11:28 o1e9 joined #salt
11:33 mikecmpbll babilen : indeed. i'm using the hostname as a key, is all. hostname has dots in
11:33 hemebond mikecmpbll: You can do a string replace in jinja for that
11:34 mikecmpbll hemebond : was thinking something similar, just googling now :]
11:39 mikecmpbll purrrfect.
11:40 ninjada joined #salt
11:44 abednarik joined #salt
11:44 impi joined #salt
11:45 Kelsar joined #salt
11:48 Sylvain31 joined #salt
11:51 Sylvain31 hi, in top.sls on states, are order imperative? if do: https://paste.debian.net/924566/ can I be sure that letsencrypt will run before webserver.vhost_ssl? note that webserver.vhost_ssl is almost the same as apache.vhosts.standard but select a distinct pillar.
11:55 Kelsar joined #salt
11:57 Klaus_D1eter_ joined #salt
11:58 numkem joined #salt
12:00 mikecmpbll Sylvain31 : see 'Requisites'
12:00 mikecmpbll order is not important and should be enforced with requisites.
12:00 mikecmpbll https://docs.saltstack.com/en/latest/ref/states/requisites.html
12:00 Sylvain31 mikecmpbll: I would like to enforce the wall sls to be executed first
12:01 Pyro_ joined #salt
12:01 mikecmpbll not sure what you mean
12:01 Sylvain31 not for a specific state… there's loop over pillar in my .sls files
12:03 Sylvain31 mikecmpbll: so any state-id in the loop, must require other state-id for the letsencrypt loop, right?
12:03 mikecmpbll uh, maybe? not sure i'm following still :)
12:05 babilen All states that require letsencrypt must require letsencrypt
12:05 Neighbour babilen: smooth :)
12:05 Sylvain31 hum… they are both formula (ie: loop on pillar producing manything) letsencrypt + apache, so my ssl_vhost enable, must "wait" for certificate to be enabled.
12:05 mikecmpbll yeah that.
12:06 * mikecmpbll bows out.
12:06 inad922 joined #salt
12:07 netcho joined #salt
12:07 netcho joined #salt
12:07 Klaus_Dieter joined #salt
12:13 Praematura joined #salt
12:13 babilen Sylvain31: The way I'd approach this would be to introduce a nice way to parameterise the service state (cf. nginx.ng - nginx.ng.service.{enable,opts}) in the formula in question and include a require on the letsencrypt state
12:14 Sylvain31 https://docs.saltstack.com/en/latest/ref/states/requisites.html#require-an-entire-sls-file but doesn't works here: https://paste.debian.net/924568/ it outptus: https://paste.debian.net/924569/
12:15 Sylvain31 the loop failing it almost the same as: https://github.com/saltstack-formulas/apache-formula/blob/master/apache/vhosts/standard.sls
12:18 babilen Sylvain31: It appears as if you forgot to include letsencrypt
12:22 ahrs joined #salt
12:42 Sylvain31 babilen: yes I did, omit to include it in the sls file. It did not work eighter, but I did it, by adding this require: https://paste.debian.net/924572/ cmd: certbot_{{ site.ServerName }} which is the id of the maching cert generation… it works
12:45 jas02 joined #salt
12:45 catpig joined #salt
12:48 jas02_ joined #salt
12:55 Sylvain31 but doesn't work from a scratch server…
12:57 XenophonF joined #salt
12:57 toastedpenguin joined #salt
12:58 jas02 joined #salt
13:01 Sylvain31 what becomes the necessity (or not) to have the state listed in top.sls if it also include in other state?
13:03 nikdatrix joined #salt
13:03 ninjada joined #salt
13:03 ninjada joined #salt
13:04 nikdatrix joined #salt
13:05 LeProvokateur joined #salt
13:05 nikdatrix joined #salt
13:14 shoemonkey joined #salt
13:18 o1e9 joined #salt
13:19 LeProvokateur joined #salt
13:19 Brew joined #salt
13:21 nikdatrix left #salt
13:22 nikdatrix joined #salt
13:23 ronnix joined #salt
13:25 LeProvokateur joined #salt
13:28 Brew joined #salt
13:31 FuzzyVeg joined #salt
13:31 swa_work joined #salt
13:31 Imnafoy joined #salt
13:37 Imnafoy hello everybody... I have a question. I'm using redis as ext_pillar source, It is correctly set in /etc/salt/master and it is working for normal minions. However I have problem when using salt-ssh. Somehow it always fails to render pillars because it is trying to connect to salt:6379 instead of localhost:6379 ...
13:37 abednarik joined #salt
13:38 FuzzyVeg joined #salt
13:38 Imnafoy is it me or does it really tries to render ext_pillars on 'minion' side instead of on master?
13:41 armyriad joined #salt
13:43 stooj joined #salt
13:50 armyriad joined #salt
13:51 skinkitten joined #salt
13:51 sarcasticadmin joined #salt
13:51 racooper joined #salt
13:52 dyasny joined #salt
13:54 stooj joined #salt
13:55 tapoxi joined #salt
13:56 jdipierro joined #salt
13:58 ssplatt joined #salt
14:01 mpanetta joined #salt
14:05 evle joined #salt
14:07 Rumbles joined #salt
14:09 PatrolDoom joined #salt
14:11 vegasq joined #salt
14:13 pipps joined #salt
14:13 vegasq_ joined #salt
14:15 Praematura joined #salt
14:22 Ricardo1000 Does some one using gitfs backend ?
14:23 pipps joined #salt
14:24 gtmanfred whiteinge: https://github.com/saltstack/salt/pull/40330#pullrequestreview-29197753
14:24 saltstackbot [#40330][OPEN] Pass in direct map_data instead of path to map | What does this PR do?...
14:27 kiorky joined #salt
14:27 gtmanfred not whiteinge ... whytewolf ^^
14:28 JohnnyRun joined #salt
14:28 mpanetta joined #salt
14:29 _JZ_ joined #salt
14:29 Pyro_ joined #salt
14:31 Pyro__ joined #salt
14:37 cyborg-one joined #salt
14:37 pipps joined #salt
14:38 PatrolDoom joined #salt
14:39 heaje joined #salt
14:43 cowyn joined #salt
14:48 Score_Under joined #salt
14:48 vegasq joined #salt
14:49 Ricardo1000 How I can get files to the minion via gitfs backend ?
14:50 Ricardo1000 I don't get it, how to combine master options, if all my files in remove fit repo (states and file which should be downloaded by minions)
14:50 Score_Under salty peeps, I've always thought there must be something wrong with my approach here... we deploy software to machines, but first those machines must have a certain user set up, the right python version and packages installed, and a given directory structure must be present. We have sls files for all that, but then what should be done after that? Currently we just use "include" from the software's SLS
14:51 Score_Under file to include each of those SLS files as dependencies. However, this makes `state.sls` calls take a very long time, since they have so many things to do. The other option is to put this in their `applications` section in reclass, but then I can't specify that if one is included then a certain order should be enforced. Is there any way around this dilemma?
14:51 rem5_ joined #salt
14:51 Score_Under Ricardo1000: regardless of the master's backend, the minions should receive files on demand. Is that not working?
14:52 Praematura joined #salt
14:52 inad922 joined #salt
14:52 Ricardo1000 Score_Under: I can not understand logic and sequence
14:54 Ricardo1000 Score_Under: I have git repo in the same machine as master, I have set master options:
14:54 Ricardo1000 fileserver_backend:
14:54 Ricardo1000 - git
14:54 Ricardo1000 gitfs_remotes:
14:54 Ricardo1000 - file:///var/repos/git/salt.git
14:55 Ricardo1000 Score_Under: in the repo I have several directiries, states and dist
14:55 Ricardo1000 Score_Under: States contain top.sls and other sls. files, dist contain configs which should be present on minions
14:56 Brew joined #salt
14:56 Score_Under I don't understand the question, honestly
14:56 Ricardo1000 Score_Under: config.sls contain Test folder:
14:56 Ricardo1000 file.recurse:
14:56 Ricardo1000 - name: /tmp/test2/
14:56 Ricardo1000 - source: salt://dist
14:56 Ricardo1000 - makedirs: True
14:56 Ricardo1000 - dir_mode: 0755
14:56 Ricardo1000 - file_mode: 0600
14:56 Ricardo1000 - user: root
14:56 Ricardo1000 - group: root
14:56 Ricardo1000 - clean: True
14:57 Ricardo1000 Score_Under: I can not understand using gitfs, where minion try to find - source: salt://dist ?
14:57 jas02_ joined #salt
14:57 Sylvain31 is there a jinja filter to transform a python list, retrun by a custom module into a yaml list?
14:57 Score_Under Sylvain31: |yaml should do it
14:58 Score_Under Not normally a jinja filter but it's one salt adds
14:58 Score_Under Ricardo1000: It asks the master
14:58 Score_Under The master will serve that file to the minion over the connection when it is requested
14:59 Sylvain31 Score_Under: I test it, do you have the doc? not metionned here: https://docs.saltstack.com/en/latest/topics/jinja/index.html#filters
15:00 Score_Under https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html ← for some reason it seems to be documented on this paeg
15:01 Sylvain31 Score_Under: great! thanks
15:02 Ricardo1000 Score_Under: I understand, but which master option should be set to set salt:// root path inside repo ?
15:02 jas02 joined #salt
15:02 eprice joined #salt
15:02 Score_Under Ricardo1000: that should already be the case
15:02 Score_Under Do you get anything interesting from `salt-call cp.list_master`?
15:03 onlyanegg joined #salt
15:03 zeromorphism joined #salt
15:04 ninjada joined #salt
15:04 Ricardo1000 Score_Under: I have got file list
15:05 Score_Under Are they at the paths you expect? All those files are files accessible via salt://<path>
15:05 Ricardo1000 Score_Under: Under local:
15:05 Ricardo1000 Score_Under: As I see it is local cache
15:06 Score_Under It is not the local cache
15:06 Ricardo1000 Score_Under:
15:06 Ricardo1000 local:
15:06 Ricardo1000 - dist/dist/9998.txt
15:06 Ricardo1000 - dist/dist/9999.txt
15:06 Ricardo1000 - dist/templates/test.jinja
15:06 Ricardo1000 - states/files.sls
15:06 Ricardo1000 - states/scheduler.sls
15:06 Score_Under careful with the paste button there
15:06 Ricardo1000 ok
15:06 Score_Under But perhaps it's this you're wondering about? "dist/dist/9998.txt"
15:07 Score_Under that would be accessible through salt://dist/dist/9998.txt
15:07 Score_Under (If not, I don't understand the question)
15:07 * babilen introduces Ricardo1000 to http://paste.debian.net, https://gist.github.com, http://sprunge.us, …
15:08 Ricardo1000 Do you mean master should get files from : /var/repos/git/salt.git -> dist/dist/9998.txt ?
15:08 Score_Under Yes. I expect that salt.git contains that file
15:09 fhh left #salt
15:09 Score_Under Otherwise, if you've made changes since then and are wondering why they have not appeared, you may need to run `salt-run fileserver.update`
15:10 JohnnyRun joined #salt
15:11 dxiri joined #salt
15:11 colegatron joined #salt
15:13 Sylvain31 jinja filter |yaml(False) outputs a '!!python/unicode' in front of the first value, and could it kept yaml indent in some way?
15:13 cmarzullo | indent(4)
15:13 Ricardo1000 Score_Under: I have got : - ['states', 'dist']/dist/dist/9020.txt
15:14 Ricardo1000 Score_Under: Which salt:// path I shopuld use to get file?
15:15 Sylvain31 cmarzullo: thanks, I got for a for loop, to be sure…
15:17 onlyanegg joined #salt
15:18 cscf How hard would it be to take the "changes" outputter and make a modified one?
15:20 whytewolf cscf: well _output is a thing so most likely not that difficult.
15:21 whytewolf gtmanfred: sweet map_data will save me a bunch of headache once openstack support is ... brought up to current versions ;)
15:21 skinkitten joined #salt
15:23 DEger joined #salt
15:23 whytewolf Score_Under: for your question about includes vs other methods. not sure you would get much of a performence boost out of what is considered proper way of listing everything in the top file. the performence is more about the amount of jinja in a file and how responsive the states are [pkg states and file states being the least performent]
15:25 whytewolf pkg being under performent because they have to wait for the package manegment system to return before they come back. file because well salt:// can be a rather slow transfer system
15:26 dxiri joined #salt
15:26 aldevar joined #salt
15:29 tercenya joined #salt
15:29 patrek joined #salt
15:30 dendazen joined #salt
15:31 sh123124213 joined #salt
15:32 tercenya joined #salt
15:35 Score_Under whytewolf: yeah, lots of pkg states unfortunately, and yum with the default plugins runs extremely slowly
15:36 cscf whytewolf, so I see /usr/lib/python2.7/dist-packages/salt/output/highstate.py contains all 6 output modes.  Do I copy the whole file into _output, overriding the original, then modify it?
15:36 whytewolf cscf: I do believe so.
15:38 cscf Oh, --state-verbose False is apparently a thing.  nvrm then.
15:38 fracklen joined #salt
15:42 tkojames joined #salt
15:50 Rumbles joined #salt
15:51 leonkatz joined #salt
15:51 leonkatz1 joined #salt
15:54 ivanjaros joined #salt
15:55 fxhp joined #salt
15:57 gtmanfred whytewolf: also note, the map_run on the cloud module
15:58 fracklen joined #salt
15:58 shoemonkey joined #salt
15:58 whytewolf yeap :) also nice.
15:58 sh123124213 joined #salt
15:58 aldevar left #salt
15:59 DEger joined #salt
16:02 spectorfreak joined #salt
16:04 Tanta joined #salt
16:04 edrocks joined #salt
16:05 ninjada joined #salt
16:05 Heartsbane joined #salt
16:06 Inveracity joined #salt
16:07 pipps joined #salt
16:09 ponyofdeath joined #salt
16:10 Tanta joined #salt
16:13 DarkKnightCZ joined #salt
16:13 pwhack joined #salt
16:17 rem5 joined #salt
16:21 pwhack joined #salt
16:23 meca My gitfs state has an init.sls. This init.sls calls for a conf file that is in the same directory as itself. This used to work fine until I added the pillars to gitfs as well. Now I get a 'source file not found' for the conf file. Meaning the init.sls itself is still found and run.
16:24 jimklo joined #salt
16:24 meca I tried changing the dir name to make sure there are no conflicts with the pillar structure
16:24 meca but that didn't work either
16:24 meca What could cause this?
16:25 rdas joined #salt
16:28 woodtablet joined #salt
16:29 onlyanegg joined #salt
16:30 jgarr anyone familiar with this error/trace from salt master? https://gist.github.com/anonymous/bada98ffea4364b4c0f1e9d091f2251a "No such file or directory"
16:35 impi joined #salt
16:37 Score_Under Never seen anything like it. Do you get the same if you run "import socket" "socket.getaddrinfo(socket.gethostname(),0,socket.AF_UNSPEC,socket.SOCK_STREAM,socket.SOL_TCP,socket.AI_CANONNAME)" in a python interpreter?
16:38 jgarr Score_Under: nope, that works just fine in ipython
16:39 Score_Under oh man. I don't even have a guess at the moment, then
16:41 swa_work joined #salt
16:42 jgarr :( This is a new master I'm setting up. I'll see if I can track it down
16:48 raspado joined #salt
16:49 raspado is there a salt module that can do a regex replace lines in a file?
16:49 tercenya joined #salt
16:57 babilen file.replace comes to mind ;)
17:05 fxhp joined #salt
17:06 dxiri_ joined #salt
17:06 edrocks joined #salt
17:08 SaucyElf joined #salt
17:08 jgarr Score_Under: looks like I may have been missing a dependancy on the salt-master install. It was on 2016-6 so I upgraded to 2016-11 it also installed zeromq (not sure why it was missing) and it's running fine now
17:11 jauz joined #salt
17:11 jauz Can I change a minion's ID from the master?
17:12 Rumbles joined #salt
17:12 jauz I suppose I'll need to change the minion config, restart and it will attempt to create a new pair and I'll want to delete the original?
17:25 s_kunk joined #salt
17:25 s_kunk joined #salt
17:26 Renich__ joined #salt
17:30 cmarzullo basically
17:31 jgarr well, at least I know I can replicate my other problem on a second salt-master. I can't authenticate any user with pam. Just see this in the master logs "[WARNING ] Authentication failure of type "eauth" occurred."
17:34 ponyofdeath joined #salt
17:35 Trauma joined #salt
17:36 jgarr I don't see the salt-master trying to authenticate in my /var/log/secure log though so I'm guessing there's something else I'm missing
17:39 jgarr I'm guessing I have some pam package/config missing. Installing salt-master didn't install python-pam package which I assume is a requirement for eauth with pam
17:41 badgerops joined #salt
17:42 Trauma joined #salt
17:43 badgerops hey all, I've got a salt-cloud + vsphere question, I've got a nested folder (top\child) and want to put VM's in child. I am able to specify 'folder: top' in the profile, but not 'folder: top/child' - am I structuring it wrong?
17:44 badgerops or is it not possible to put VM's 2 folders deep via salt-cloud profiles?
17:44 fracklen joined #salt
17:50 badgerops I found https://github.com/saltstack/salt/issues/34036 which leads me to think that its not possible to do 'folder: top/child/nested' at this point, but perusing the vsphere code appears like it might be possible, not sure one way or the other though.
17:50 saltstackbot [#34036][OPEN] Ability to place VM provisioned via salt-cloud/vmware into arbitraily deep folders | Would like ability to place VM provisioned via salt-cloud/vmware into arbitrarily deep folders....
17:53 raspado how do i get the version of the salt master
17:53 badgerops @raspado on the salt master run `sudo salt --versions`
17:53 cmarzullo salt-master --versions-report
17:54 raspado nice thx guys
17:57 fracklen joined #salt
17:57 ChubYann joined #salt
17:59 shoemonkey joined #salt
18:00 Slimmons joined #salt
18:00 Slimmons Have some jinja, {{ salt['network.ipaddrs'](cidr='171.32.32.64/16')|first }}   and getting the error, Unable to manage file: Jinja variable No first item, sequence was empty.
18:01 Slimmons not sure how to troubleshoot this.  It works on machines that aren't on AWS, but this is an AWS server.
18:01 sjorge joined #salt
18:01 sjorge joined #salt
18:02 abpia joined #salt
18:02 Slimmons side note, I hate that I just typed 'aws server', because it is redundant.
18:02 raspado for extracting a tar.gz file, the source mentions a URL, can I use source: salt:// instead so it extracts the file from the salt master? https://docs.saltstack.com/en/2015.8/ref/states/all/salt.states.archive.html
18:03 abpia What is a good way to find issues in my jinja template when I salt call it?
18:03 cmarzullo Slimmons: {{ grains['ipv4'] | first() }}
18:04 cmarzullo I had to put () around it. But now I see you are choosing a specific item. so maybe that's not it.
18:04 whytewolf Slimmons: that error would mean you are not finding any ips in the listed cird
18:04 whytewolf cidr even
18:05 colegatron joined #salt
18:05 Slimmons let's pretend like I wasn't sure what cidr was
18:06 ninjada joined #salt
18:06 Slimmons so, that would mean that like the subnet or something i specified was wrong, correct?
18:06 raspado ignore me... it seems like the newer version of salt archive module can do salt://
18:06 ahrs joined #salt
18:06 Slimmons hmm... it's 255.255.240.0
18:07 Slimmons so /16 is correct, not sure what else would be wrong
18:08 whytewolf does the ip you are expecting even show up in ip a?
18:08 whytewolf on the minion
18:08 Slimmons Wonder if it's something to do with it being AWS, and having a different external ip vs internal ip.
18:08 Slimmons ifconfig shows both an eth0 and lo
18:08 Slimmons eth0 is as expected
18:08 whytewolf ...
18:08 Slimmons the ip above with netmask 255.255.240.0
18:08 Slimmons is that what you asked?
18:08 Slimmons lol sorry, I'm pretty jr.
18:09 whytewolf let me check something i think your cidr isn't valid even
18:11 whytewolf 171.32.0.0/16
18:11 whytewolf that would be the valid cidr for that /16
18:11 whytewolf but 255.255.240.0 isn't /16
18:12 whytewolf 171.32.32.0/20
18:12 Slimmons https://www.aelius.com/njh/subnet_sheet.html
18:12 Slimmons surely someone on the internet who wrote that isn't wrong?
18:12 Slimmons I don't think someone on the internet would lie to me whytewolf
18:12 whytewolf you read the wrong side
18:12 Slimmons of course i did.
18:13 Slimmons haha
18:13 Slimmons thanks
18:13 whytewolf http://jodies.de/ipcalc?host=171.32.32.64&amp;mask1=20&amp;mask2= better tool for you
18:13 winsalt joined #salt
18:15 Slimmons perfect, thanks
18:15 tercenya joined #salt
18:15 abednarik joined #salt
18:19 colegatron Hi. I am just curious; what would be the most efficient way to deploy code (at the same time) to thousands of servers with salt? I'm thinking on store the code in a high available storage/cdn and then make the minions update their local version through a salt state run, but I am not sure if salt is able to run (simultaneously) thousands of states on thousands of servers.
18:19 cmarzullo salt is able to do that.
18:20 cmarzullo How you get your code to your minions is a different story.
18:20 cmarzullo Personally I pacakge everything up and make it available via whatever the OS uses for package management.
18:23 colegatron cmarzullo yep, it is another solution than make the minion get it from a cdn. my fear (because never tried) is if a "salt * state.sls deploy-code"  will run simultaneously on all the servers (and not in batches or whatever salt handles the high loads)
18:23 whytewolf i agree with the package management. and would suggest adding a set of repo servers with that.
18:23 whytewolf colegatron: --batch
18:23 whytewolf https://docs.saltstack.com/en/latest/topics/targeting/batch.html
18:23 colegatron whytewolf I meant without batches.
18:24 whytewolf well, if you don't tell it to use batches it won't use them
18:25 whytewolf plus --batch-size 100% could be a thing
18:25 colegatron whytewolf and how salt should be configured to handle that amount of work?
18:25 colegatron I've never read nothing about sizing for that loads
18:27 whytewolf when you say thousands are you talking about tens of thousands or just say 6-8 thousand? either way. lots of memory, lots of fast io, decent amount of cores. and you might need to increase worker_threads
18:27 colegatron ok. found. https://docs.saltstack.com/en/latest/topics/tutorials/intro_scale.html
18:28 whytewolf ahhh did not know about that page.
18:29 TomJepp joined #salt
18:30 Slimmons {{ salt['network.ipaddrs'](cidr='171.32.32.0/20')|first }}  still has the same error of 'Unable to manage file: Jinja variable No first item, sequence was empty.'   Anything else I can do to troubleshoot this?  the cidr seems to be correct now, and I definitely remembered to restart the salt-master
18:30 colegatron whytewolf: and then the other limit, the master: https://docs.saltstack.com/en/latest/topics/highavailability/index.html
18:31 colegatron whytewolf, cmarzullo tnx for the package distribution suggestion, nice one
18:31 cmarzullo no problem. We have multiple repos and do package promotion dev -> stg -> prod
18:32 whytewolf Slimmons: salt 'minion' network.ipaddrs cidr=171.32.32.0/20' does it show up as a list?
18:32 cmarzullo Slimmons: have you tried just spitting out the value of that salt['network.ipaddrs'](stuff)
18:32 cmarzullo See what you are getting
18:32 stanchan joined #salt
18:33 tkojames joined #salt
18:34 whytewolf Slimmons: if you are not getting the ip try network.ipaddrs type=public
18:34 Slimmons super noob, how do I get the returned value from the minion?    salt '*' salt['network.ipaddrs']
18:34 Brew joined #salt
18:34 Slimmons only have that single minion right now
18:34 whytewolf salt '*' network.ipaddrs
18:35 Slimmons yeah, it returns a single value of 171.32.32.64
18:36 whytewolf single value of 171.32.32.64? does it have a - next to it?
18:36 austin__ joined #salt
18:36 Slimmons yeah, - 171.32.32.64
18:36 Slimmons does the - mean it's a list?
18:36 austin__ awhile back i read something that said you could optionally install a minion on a syndic master. in doing so, it added some "performance"
18:36 whytewolf yes
18:36 Slimmons figured it would have brackets like an array
18:36 austin__ is that still true?
18:36 Slimmons my bad
18:37 xet7 joined #salt
18:37 whytewolf Slimmons: it returns yaml and yaml typically uses - for list item
18:38 whytewolf anyway. try salt '*' network.ipaddrs cidr='171.32.32.0/20'
18:38 Renich joined #salt
18:38 jdipierro joined #salt
18:39 Slimmons there we go, returns nothing.  It does return, but with nothing under it.
18:39 whytewolf austin__: not sure about performance. but honestly i sugest minion all the things
18:40 whytewolf odd 171.32.32.0/20 should defintly have 171.32.32.64
18:40 austin__ whytewolf: minion all the things. totally agree with
18:40 austin__ i know at some point it said to do so for _other_ reasons
18:41 whytewolf humm, not sure about syndic. never used it myself ... yet
18:42 Slimmons hmm
18:43 whytewolf Slimmons: this is strange... that cidr is correct. you should be getting back the ip.
18:45 whytewolf Slimmons: what does salt '*' network.in_subnet 171.32.32.0/20 return?
18:46 Slimmons anything about this look weird. https://gist.github.com/anonymous/7f228d11d3ff8a7170e13ed8c3682126
18:46 whytewolf that broadcast is a little wierd.
18:46 Slimmons that's what I thought
18:47 Slimmons it being different than the addr
18:47 Slimmons the 32 vs 31.....I haven't seen that, but I'm also not really experienced
18:47 whytewolf well it can be as long as it is inside the subnet. but .31 should not be in the subnet
18:48 whytewolf that broadcast is for the subnet before the one you are in
18:49 whytewolf also, you kept saying the ip is 171.32.32.64 but according to that ifconfig it is 172.32.32.64
18:49 Slimmons yeah, i went to change it, that's a mistype, just noticed
18:50 Slimmons thought about changing it at first, but since it's internal it doesn't matter
18:50 Slimmons anyway, I'll keep playing around with this.  I may try it on a few other aws instances
18:50 Slimmons see if something is just strange with this specific machine
18:50 Slimmons Just going to copy the files I need over for now, and not do that one part with salt
18:51 whytewolf ok
18:51 Slimmons thanks for the help
18:51 Slimmons I may be back later once I've beat my head against the internet for a while
18:53 Praematura joined #salt
18:55 aldevar joined #salt
18:57 toanju joined #salt
18:58 Slimmons I have no explanation for this, but the answer was to change it to 171.32.0.0/16.  Apparently AWS does some weird magic in there somewhere.
18:58 Slimmons even though it is 255.255.240.0
18:59 Slimmons .-`* TheMoreYouKnow
19:00 whytewolf that would explain the broadcast being a seperate subnet.
19:00 stanchan joined #salt
19:02 Slimmons yeah #magic
19:05 whytewolf although technically since you only have one ip on the system [and if that is true of all systems you work with] you don't even need to put the cidr
19:07 Slimmons lol, yeah, I guess I should have just done that.
19:08 Tanta joined #salt
19:12 winsalt ive got a custom runner on my master, but for some reason when I run one of the functions in it against a new minion I get a KeyError from lazy.py.  I can run it right after and it works fine.  Has anyone seen salt only load a module partially like this before?
19:12 keltim joined #salt
19:15 keltim joined #salt
19:17 onmeac joined #salt
19:17 brakkisath joined #salt
19:19 filippos joined #salt
19:24 edrocks joined #salt
19:26 The_Loeki joined #salt
19:29 abednarik joined #salt
19:35 sh123124213 joined #salt
19:36 seanz joined #salt
19:38 it_dude joined #salt
19:40 stankmack joined #salt
19:45 sknebel joined #salt
19:47 jas02 joined #salt
19:47 Rkp joined #salt
19:48 bshelton229 joined #salt
19:48 cyraxjoe joined #salt
19:50 Nightcinder joined #salt
19:50 abpia Having trouble getting this template to work. Is there a way to debug jinja templates in saltstack? I get jinja variable function object has no element ['ens160'] https://gist.github.com/anonymous/3ad7bc932c8114a8d41f6cb1a17a3329
19:52 jhauser joined #salt
19:55 The_Loeki abpia: your prob is in L4
19:55 it_dude joined #salt
19:55 The_Loeki The error, though cryptic, describes exactly what's happening
19:55 The_Loeki salt != a dict
19:55 The_Loeki salt == a Salt Loader interface
19:56 The_Loeki which is (apparently ;) ) a 'variable function object'
19:57 it_dude_ joined #salt
19:57 Brew joined #salt
19:58 The_Loeki other than that you forgot the () after the key so 'network.interfaces' never gets executed, it gets referenced as a pointer to that variable function object
19:58 The_Loeki of which you then ask it's 'ens160' key ;)
20:00 shoemonkey joined #salt
20:01 it_dude joined #salt
20:06 abpia {% set hostip = salt['network.interfaces']()[iface]['inet'][0]['address'] %} should that fix it then?
20:06 The_Loeki yes
20:07 The_Loeki & on a side note: IMHO salt.network.interfaces()
20:07 The_Loeki (i find that syntax more elegant, but that's a matter of opinion)
20:08 The_Loeki also look at the grains, they probably contain even cheaper access to the info you want
20:14 Neighbour The_Loeki: more elegant, yes, but salt['module.function'] is more clear in what you're doing :)
20:14 jas02 joined #salt
20:16 abpia I still get the jinja variable dict object has no element ['ens160'] with that fix. I like that syntax better so I will try that as well. I think I might need to find an easier way to get the ipv4 address of ens160
20:17 The_Loeki @Neighbour true. And Salt SSH sometimes doesn't like it yet, there is that. But it might be my syntax highlighter, but I find it so much more legible ;)
20:17 The_Loeki @abpia depending on what you're doing you might be running a cached version
20:17 hemebond You could use it for everything after the Salt function.
20:18 The_Loeki & sometimes you just need do to some in-between set; set addrs = salt['network.interfaces']() %}{% set addr = addrs['inet'] etc. %}
20:21 fracklen joined #salt
20:23 abpia Oh okay I will try that.
20:24 abpia For now I guess I can do {% set hostip = salt.network.ip_addrs %} which gives me the ipv4 address I need. Until I find a server that hast two ipv4 addresses
20:25 whytewolf abpia: still need () also that returns a list. so you will have to at least grab an item out of the list
20:28 N-Mi joined #salt
20:28 N-Mi joined #salt
20:31 DEger joined #salt
20:31 ponyofdeath joined #salt
20:35 abpia @whytewolf {% set hostip = salt.network.ip_addrs %} for this one?
20:36 whytewolf yes
20:36 DEger joined #salt
20:38 J0hnSteel joined #salt
20:39 aldevar left #salt
20:39 ssplatt joined #salt
20:40 abpia {% set hostip = salt.network.ip_addrs()[0]" %} should work correct?
20:40 whytewolf yeap or {% set hostip = salt.network.ip_addrs()|first %}
20:41 abpia Thank you for the help @The_Loeki & @whytewolf
20:42 whytewolf btw Neighbour I perfer the . version better as i won't get dict items mixed up if they go on the same line. i can clearly tell that salt.module.function is a function. while salt['module.function'] is a little less clear about it
20:43 debian112 joined #salt
20:50 sarcasticadmin joined #salt
20:50 ahammond is there a way to install salt-key without installing a whole bunch of other salt utils?
20:53 abednarik joined #salt
20:55 bluenemo joined #salt
21:04 Edgan ahammond: salt-key is packaged as part of salt-master, unless you want to run it outside of packaging you are going to need salt-master and salt-common
21:04 ahammond Edgan hmm. can I pip install it separately?
21:04 Edgan ahammond: what is the use case?
21:05 ahammond I want to generate keys on a server that is not salted / the salt master
21:05 ahammond my laptop, actually
21:05 Edgan ahammond: why would you have keys generated by anything other than the master? Note you can have the master do it for you via salt-api
21:06 Edgan ahammond: which is how I do it for my AWS instance creation script
21:06 ahammond Edgan, that might be the right way to go. I'll take a look.
21:07 Edgan ahammond: I then user user-data to feed the minion key to cloud-init to write on boot of a new instance. Then the minion is pre-registered with the master.
21:07 Pyro__ Any general guidance on using a .ps1 script as part of a salt-cloud profile?  It appears it is rendering the .ps1 file as jinja.
21:07 ahammond makes sense.
21:08 sh123124213 joined #salt
21:12 rem5 joined #salt
21:15 shoemonkey joined #salt
21:15 jas02 joined #salt
21:23 tmux joined #salt
21:24 vimuser joined #salt
21:25 crumbtab joined #salt
21:26 smcquay joined #salt
21:26 crumbtab im trying to understand requisites. i have a salt state that is trying to do 3 tasks. 1 remove a line from a block, 2 run a cmd.run to check something. and 3. if 2 returns the value i want, add a line to the code block
21:26 Brew joined #salt
21:26 crumbtab how do i make task 3 rely on task 2? i can only figure out requisites like requiring a package to be installed first
21:27 hemebond crumbtab: https://docs.saltstack.com/en/latest/ref/states/requisites.html
21:27 hemebond Read that?
21:27 J0hnSteel joined #salt
21:28 crumbtab didn't see this page hemebond. skimming it, prereq might be what i need!
21:28 crumbtab so many salt doc pages :)
21:34 Tanta joined #salt
21:35 tercenya joined #salt
21:37 J0hnSteel joined #salt
21:44 ninjada joined #salt
21:51 juntalis joined #salt
21:56 sarcasticadmin joined #salt
21:57 DanniZqo joined #salt
21:57 sh123124_ joined #salt
21:58 DEger joined #salt
22:01 ninjada_ joined #salt
22:07 edrocks joined #salt
22:08 pipps joined #salt
22:09 crumbtab hemebond: i've found all that i need and more thanks
22:09 hemebond ????
22:10 crumbtab what a great system of onchanges, require, prereq :)
22:11 pipps joined #salt
22:13 catpig joined #salt
22:15 crumbtab the last piece of the puzzle. im trying to have a script run that will wait for a value to reach 0. salt proceeds with the rest of the state instructions even if the value of the script didn't reach 0. im using cmd.run
22:15 crumbtab how can i force it to wait until it reaches 0 to do the next salt step?
22:15 hemebond Uh.
22:16 hemebond You should rethink the process.
22:16 hemebond Saltstack is about enforcing a state.
22:16 pipps joined #salt
22:16 crumbtab im probably doing it incorrectly haha
22:16 hemebond "I want the system to look like this"
22:16 crumbtab well basically hemebond im trying to throw in one strange thing. basically edit this file if the value of this script is 0.
22:16 hemebond So if you want a script to do something, the script shouldn't return until it's finished.
22:16 hemebond And the script should be idempotent so it can be run many times.
22:17 crumbtab will cmd.run wait until it returns or does it simply run it and move it along to the next JID?
22:17 mikecmpbll joined #salt
22:17 hemebond That's doesn't sound difficult.
22:17 crumbtab im maybe using the wrong tool in the toolbox
22:17 hemebond Salt will wait for cmd.run to finish.
22:17 ninjada joined #salt
22:18 crumbtab maybe my syntax is bad, i was trying to run a while loop as the argument to cmd.run
22:18 mdpolaris joined #salt
22:19 crumbtab but i should be able to run a while loop in cmd and have another state only fire off when the result hits 0?
22:20 hemebond I would have thought so.
22:20 crumbtab let me share what i was trying maybe something is wrong
22:20 hemebond (don't paste inside IRC)
22:22 crumbtab pastebin okay?
22:22 hemebond yip
22:22 crumbtab https://pastebin.com/SdXkQBif
22:23 hemebond Your indentation seems a little off. Maybe it's just the paste.
22:24 shoemonkey joined #salt
22:24 crumbtab hang on
22:24 hemebond Your command also doesn't seem to work for me.
22:25 crumbtab haha i just forgot one word
22:25 crumbtab forgot to add ;done
22:25 hemebond Forgot from the paste or from the actual state?
22:25 crumbtab i probably changed my example 5 times once i found that requisite page, trying new things. forgot to add that code when i re typed it. now it works!
22:25 crumbtab actual
22:25 hemebond Ah
22:26 crumbtab plus i saw what i was doing wrong when i tried cmd.run the first time
22:26 crumbtab i put my actual command as an arg of cmd.run. i had it in onlyif
22:27 crumbtab while i have your eye hemebond - https://pastebin.com/zBThFhAC - here is my working example
22:27 hemebond oooh
22:27 hemebond What is the point of that command?
22:27 crumbtab the actual test will be checking something on our production
22:27 hemebond Ah.
22:27 crumbtab i just couldn't get any test to work for the life of me lol
22:27 crumbtab with it being in the wrong field
22:28 crumbtab if load value reaches 0 i want it to say you are ok to edit the load balancer, if the test fails, revert it back to the original
22:28 crumbtab i think i am good now :) yay
22:29 hemebond That doesn't sound idempotent.
22:29 hemebond That sounds like a script.
22:29 crumbtab we were doing it as a script before
22:29 crumbtab PTB wants it as config management
22:30 crumbtab :D;
22:30 crumbtab is there a better way to do this in salt? i don't yet know all of the tools and features because there are so many
22:30 crumbtab also hey gtmanfred from gentoo channel back in the day
22:30 Pyro__ Can someone look at this and help me?  I'm trying to use a pilliar variable to pull another pillar variable.
22:30 Pyro__ {% set p_role  = salt['pillar.get']('catalina_base:' + role, {}) %}
22:31 fracklen joined #salt
22:31 Pyro__ p.get(p_role + ':tomcat_home', default_tomcat_home)
22:31 hemebond Pyro__: You can't reference pillars in pillars.
22:31 MTecknology joined #salt
22:31 Pyro__ :( ok
22:31 crumbtab ok hemebond thanks for the help. im going back into the salt mines
22:32 catpig joined #salt
22:32 hemebond Pyro__: Put your shared properties into a separate YAML file and import_yaml that file into other files.
22:32 hemebond crumbtab: Good luck ????
22:33 Pyro__ hemebond: Thanks, I'll give that a run.
22:36 Vaelatern joined #salt
22:43 cyborg-one joined #salt
22:46 juntalis joined #salt
22:55 newbiefromla joined #salt
22:55 newbiefromla hello everyone
22:55 newbiefromla Does anyone have experience install and configuring wordpress using saltstack?
22:56 newbiefromla I am able to use formula to install WP onto my minion but I can't figure how to properly configure it
23:01 snarfy^ joined #salt
23:07 crumbtab piece by piece newbiefromla, watcha got so far?
23:07 crumbtab also https://github.com/saltstack-formulas/wordpress-formula newbiefromla
23:09 newbiefromla I have apach2 running
23:10 newbiefromla it seems wordpress and wordpress-l10n are installed
23:10 newbiefromla but when I tried to run 'wp --info', I am not getting anything back.
23:10 newbiefromla from my minion
23:11 newbiefromla I am using the same formula you recommended crumbtab
23:13 newbiefromla This is how my state file look like
23:13 newbiefromla webserver_stuff:   pkg:     - installed     - pkgs:       - apache2       - php5       - php5-mysql       - wordpress
23:14 cyborg-one joined #salt
23:17 lionel joined #salt
23:19 guerby joined #salt
23:21 pipps joined #salt
23:21 dxiri_ hello guys! I have a quick question regarding grains, I need to use an IP on a jinja template, how do I specify that? what I am looking for is a way to set the IP on eth0 as a variable to the jinja template
23:22 mosen joined #salt
23:22 snarfy^ {{ grains[ip_addrs][0] }} or something
23:22 snarfy^ let me check
23:23 dxiri_ grains.item ip4_interfaces, I see this returns both eth0 and loopback
23:23 snarfy^ yeah try like grains['ip_interfaces']['eth0'][0]
23:23 snarfy^ {{ grains['ip_interfaces']['eth0'][0] }}
23:24 dxiri_ let me try :)
23:25 whytewolf dxiri_: there is also the network modules if you need to filter by more then just interfaces such as cidr {{ salt.network.ipaddrs(cidr='10.10.10.0/24') }}
23:26 snarfy^ yeah listen to that guy. he knows what's up
23:26 whytewolf {{ salt.network.ipaddrs(cidr='10.10.10.0/24')|first }}
23:27 whytewolf sometimes ... othertimes i make it up as i go along ;)
23:28 dxiri_ whytewolf: that's neat!
23:28 dxiri_ but since I control the template and the dhcp server handing out ips, it will always be eth0 (for now) :)
23:29 whytewolf no problem, just letting ya know cause "eth0" in linux is going the way of the dodo
23:31 jas02 joined #salt
23:32 cyborg-one joined #salt
23:33 dxiri_ agreed!
23:33 dxiri_ p15p1, enop890890
23:33 whytewolf yeap
23:33 dxiri_ been there :)
23:33 dxiri_ worked perfectly! thanks guys!
23:48 jdipierro joined #salt
23:52 shoemonkey joined #salt
23:57 dxiri_ whats wrong with doing this? https://pastebin.com/7AUC5aVG
23:57 DEger joined #salt
23:57 hemebond dxiri_: Shouldn't it be in a name parameter?
23:57 hemebond - name: /usr/local/.....
23:58 whytewolf ^
23:58 dxiri_ lol
23:58 dxiri_ :P
23:58 dxiri_ didn't notice
23:58 dxiri_ this probably means its time to stop working and grab a beer :)
23:59 whytewolf it is always time to stop working on grab abeer :P

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