Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-05-11

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

All times shown according to UTC.

Time Nick Message
00:08 estahn joined #salt
00:09 sagerdearia joined #salt
00:10 flowstate joined #salt
00:20 cyborg-one joined #salt
00:22 jmedinar I am still trying to configure salt to send messages to slack
00:22 jmedinar if I do it from the CLI it works
00:22 jmedinar salt master slack.post_message channel="monitoring_alerts" message="test" from_name="webhookbot" api_key="xxxxxxxxxxxxxxxxxxxxxxxxxx"
00:22 jmedinar but if I do from the reactor
00:22 jmedinar I get this msg
00:22 jmedinar 'return': 'Passed invalid arguments to slack.post_message: post_message() takes at least 3 arguments (0 given)\n\n
00:23 jmedinar here is the reactor
00:23 jmedinar http://pastebin.com/E5BmCqcR
00:28 aqua^c joined #salt
00:28 mowntan joined #salt
00:28 jmedinar and here the Debug results http://pastebin.com/R9QQEz6S
00:30 edrocks joined #salt
00:32 ninjada_ joined #salt
00:33 sagerdearia joined #salt
00:35 jmedinar I already solve it by doing a local.cmd.run instead
00:35 jmedinar but the local.slack.post_message doesn't work
00:35 jghazally joined #salt
00:37 armguy joined #salt
00:40 mowntan joined #salt
00:41 ageorgop joined #salt
00:42 Bucciarati joined #salt
00:44 ronrib joined #salt
00:47 tristianc joined #salt
00:48 cyborg-one joined #salt
00:51 telecode joined #salt
00:52 telecode joined #salt
00:53 telecode hi. does anyone have any best practices on how to organize multiple groups of user accounts?
00:54 telecode i have a group of app devs and then another group of ever revolving app devs that constantly change.
00:54 telecode cant figure out how best to manage this.
00:54 telecode i have groups of server in lists in the master config file.
00:54 jghazally joined #salt
00:54 telecode any thoughts
00:55 Eugene Alcohol is my current thought
00:55 telecode ok
00:55 Eugene LDAP(Microsoft AD in particular) are great at user/group management.
00:56 Eugene Would the same sets of changing app users have the same permissions on all your minions? Or just some?
00:56 jmedinar I just separate the users by role ... and every user is created in all servers but locked by default ... then a single file or grains to manage the list of servers they have authorized
00:56 jmedinar then you end up without duplicated uid and gid... same password across....
00:56 jmedinar etc
00:56 jmedinar not perfect but works for me
00:57 Eugene That's about the same as replicating a hosts list. Works OK, until you hit scale
00:57 ninjada joined #salt
00:59 jmedinar yup similar idea I agree but with the centralization part and automation from salt
00:59 liskl joined #salt
01:01 Eugene You can do that with hosts files, too :-p
01:04 iceyao joined #salt
01:06 dezertol joined #salt
01:06 bshelton229 joined #salt
01:10 tracphil joined #salt
01:11 ninjada joined #salt
01:11 flowstate joined #salt
01:14 iceyao_ joined #salt
01:23 pdayton joined #salt
01:26 ssplatt joined #salt
01:29 johnkeates joined #salt
01:29 noraatepernos joined #salt
01:33 ajspa joined #salt
01:34 jimklo_ joined #salt
01:35 amcorreia joined #salt
01:37 pjs joined #salt
01:37 catpiggest joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.8.8, 2016.3.0rc2 | 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:48 telecode yes. the revolving users would have same perms as regular stable web devs.
01:48 telecode with salt i push the user, uid, and their ssh keys.
01:48 telecode MS AD not used on these systems.
01:48 telecode they are Linux and Solaris
01:49 telecode thats jmedinar. let me try to see if that might work.
01:49 pdayton joined #salt
01:49 telecode so if i am to use roles. i would have role1 and role2.
01:50 favadi joined #salt
01:50 telecode so in /srv/salt/users/role1 and /srv/salt/users/role2
01:51 telecode and in each folder i have an init.sls that looks in /srv/pillar/users.sls where i keep all my users
01:51 telecode ???
01:52 ssplatt we made a directory.sls that has users: available:
01:53 subsignal joined #salt
01:53 ssplatt and all hosts pull in -users.directory
01:53 telecode ok
01:54 ssplatt then break out the sub-groups by group or role or whatever makes sense to you
01:54 ssplatt and we did that with like    users/admins.sls      users:  present: - me  - you  - another person
01:55 ssplatt the state file then takes the users.present list and only adds them to the system if they are in the directory. it uses the name, password, gid, homedir, etc  that is set in users.directory
01:55 ssplatt that way not all users are created on all systems.
01:56 telecode so would admin.sls does not use pillar ?
01:56 cpowell joined #salt
01:56 ssplatt .  /srv/saltstack/pillar/users/admins.sls
01:56 telecode ok
02:03 sagerdearia joined #salt
02:05 quasiben joined #salt
02:11 flowstate joined #salt
02:15 rem5 joined #salt
02:17 aw110f joined #salt
02:19 favadi joined #salt
02:19 PeterO joined #salt
02:19 onlyanegg joined #salt
02:29 estahn are there any tips on the saltmaster sizing for aws? is a micro enough for 50 nodes?
02:30 noraatepernos joined #salt
02:32 armguy joined #salt
02:32 edrocks joined #salt
02:36 spuder joined #salt
02:38 jghazally joined #salt
02:40 ALLmightySPIFF joined #salt
02:42 fgimian joined #salt
02:47 ninjada joined #salt
02:57 lempa joined #salt
02:59 nethershaw joined #salt
02:59 quasiben joined #salt
03:05 bshelton229 joined #salt
03:06 Vishvendra joined #salt
03:06 k_sze[work] joined #salt
03:09 bshelton229 left #salt
03:11 flowstate joined #salt
03:12 iggy depends what you are doing
03:12 estahn iggy Well, not much orchestration, just states
03:13 estahn Just curious ... i got a message to increase worker threads
03:13 estahn not sure if its regarding memory or just some config
03:17 muep joined #salt
03:20 estahn iggy are there any tools to visualise salt runs across minions?
03:22 frew left #salt
03:26 estahn i thought salt is running sequentially, is it not?
03:26 estahn seems to reorder states
03:26 belak left #salt
03:30 pdayton joined #salt
03:32 jghazally joined #salt
03:40 onlyanegg joined #salt
03:43 iggy the states on each host run sequentially (and it can reorder things), across hosts is parallel
03:43 zmalone joined #salt
03:46 quasiben joined #salt
04:02 onlyanegg joined #salt
04:11 flowstate joined #salt
04:24 evle joined #salt
04:35 subsignal joined #salt
04:35 edrocks joined #salt
04:51 favadi joined #salt
04:58 zer0def joined #salt
05:02 bisleri joined #salt
05:02 pdayton joined #salt
05:05 rdas joined #salt
05:05 sagerdearia joined #salt
05:10 keldwud joined #salt
05:10 flowstate joined #salt
05:10 keldwud joined #salt
05:18 sauvin joined #salt
05:26 favadi joined #salt
05:28 armguy joined #salt
05:31 estahn joined #salt
05:36 subsignal joined #salt
05:38 kshlm joined #salt
05:42 hlub How could I inform other minions that all the states executed in highstate were successful? I was thinking about updating grains or mine.
05:47 racooper joined #salt
05:50 impi joined #salt
05:57 cpowell joined #salt
06:11 flowstate joined #salt
06:13 k_sze[work] joined #salt
06:25 elsmo joined #salt
06:28 Ayo joined #salt
06:31 marczis joined #salt
06:31 marczis Hi
06:32 marczis I started to mess around with SALT, and I found something interesting, wondering if there is any solution for this
06:32 marczis if you previously had a file,
06:32 marczis and you rename it.
06:32 marczis Than old file stays on the minion
06:32 marczis is it a manual job to clean up those ?
06:32 estahn marczis yes, if you rename it then its an unmanaged file
06:33 marczis Thanks !
06:33 marczis So Salt does not hold a statefile or something...
06:33 marczis or previous version of the state files?
06:33 estahn well, besides the salt state files, no
06:33 marczis I see, okay thanks !
06:33 marczis Really nice community :)
06:33 estahn i dont think any config mgmt system does that
06:34 estahn chef and puppet work the same
06:34 ravenx joined #salt
06:34 ravenx what is the best way to tell a state within my .sls file to run only if it's host name contains the number "1"
06:35 ravenx i have servers labeled:   prod1, prod2, test1 and test2
06:35 marczis Hm, I'm not sure, but I think if you remove a file definition from puppet, it will remove the file... or is it only with users... or none. Must check.
06:35 ravenx and i only want the servers with 1 to run a specific state
06:35 estahn ravenx you can use jinja and grains, or `onlyif` attribute of the state
06:35 estahn {% if grains['host'] contains ...
06:35 ravenx estahn: only if sounds neat.
06:36 ravenx estahn:what about pillar
06:36 ravenx should i do this at pillar level?  or state?
06:36 ravenx cuz orgiinally i was thinking:    cmd.run has a 'name:' right?
06:36 estahn ravenx but onlyif execute shell while jinja-if is in jinja :)
06:36 ravenx should i do those key values in pillars?
06:36 kawa2014 joined #salt
06:36 ravenx estahn: sorry i didnt' quite catch that, the jinja if vs only if?
06:37 hlub marczis: of course you could use file.absent for the old file.
06:37 viq joined #salt
06:37 estahn ravenx if you use onlyif, that will execute on the shell (e.g. test grep `hostname` ...) vs jinja is already in your statefile
06:38 estahn marczis thats not true
06:38 ravenx estahn: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.run  reading this docs, i don't see a j inja if.
06:38 edrocks joined #salt
06:38 estahn marczis if you remove a statement from puppet it wont be executed anymore, since its removed :)
06:38 estahn marczis so you need to specify the state somehow, whether its remove or not
06:38 estahn etc
06:39 estahn ravenx let me give u an example
06:39 estahn ravenx https://docs.saltstack.com/en/latest/topics/tutorials/states_pt3.html
06:39 estahn ravenx  {% if grains['os'] == 'RedHat' %}
06:40 marczis esthan: I just wondering if you remove a username from puppet file, will it remove the user ? Or likely you have to keep it as ensure removed or something
06:40 estahn ravenx just put that around your entire state and use host instead of os
06:40 subsignal joined #salt
06:40 estahn marczis depends, if you remove the definition of the state then puppet doesnt know what to do.
06:40 marczis meh, sorry estahn
06:41 estahn marczis if you have a list that feeds the puppet definition that might be a different situation. but usually you have to defined absent
06:41 estahn defined=define
06:41 ravenx estahn: that's perfect, and is exactly what i needed.  thanks a bunch estahn, really appreciated :)
06:41 estahn ravenx no worries
06:42 ravenx estahn: wish irc can be filled with more people like you, inmstead of those who fuck off and tell me to rtfm
06:42 hlub ravenx: that only_if is basically intended for other kinds of checks e.g. existence of a file or something. Conditional jinja clause is nice and clean for you situation. If you use only_if, you specify the state to be intorduced in every minion but only a subset of the minions really run the command. If you use jinja instead, the state is introduced onlyto those minions where it is needed.
06:42 marczis Thanks, anyway I have to master SALT from now on, as I have it in my new workplace :)
06:42 marczis So I put chef and puppet aside now...
06:42 estahn all the same thing anyways :P
06:43 marczis well,
06:43 SpX joined #salt
06:43 ravenx hlub: that is a clear explanation.  thank you!
06:43 marczis So far SALT seems to be something between chef and puppet, and I don't missing the overcomplexed way of Chef
06:44 marczis so I'm happy :)
06:45 estahn salt has its own overcomplexed things ... i moved from puppet to chef to salt ... same same but different :)
06:46 estahn maybe in 5 years with docker around all the config mgmt systems are dead anyways :D
06:46 ravenx docker is sys level package installation no?
06:46 ravenx how can it kill config mgmt?
06:46 KermitTheFragger joined #salt
06:46 hlub docker does not solve management problem
06:46 estahn because you build it once and run it. the only thing you would need to configure is the host you run it on
06:47 hlub of course there are attempts to that direction like docker-compose.
06:47 estahn @hlub e.g. tutum
06:47 marczis Well, someone has to maintaine HW under anyway... so I bet there will be SALT and others for a while
06:47 marczis until some HW manufacture comes up with a real cloud / docker HW
06:47 estahn marczis aws?
06:47 marczis which will autodeploy from BIOS or something
06:47 ravenx if i do an 'include:  - stufftodostate`
06:47 ravenx does it merely 'include' it or does it actually run that state?
06:48 marczis Yeah, but there is a staff working in there
06:48 ravenx if it doesn't run, how can i run an included state?
06:48 marczis they need something to deploy real HW :)
06:48 ravenx (i just want my .sls to be slimmer, so i want to use includes)
06:49 marczis well ofcourse they can just make one image, and deploy via pxe boot and so on, but likely they use something to mess around with real HWs...
06:49 hlub ravenx: included states are run
06:49 estahn on another note cloudfoundry is trying to solve the orchestration part since ages ... maybe with ibm bluemix they get a kick in the but to solve that now
06:49 ravenx so all i gotta do is:    'include: - stufftodostate'?
06:50 estahn anyways, back to work :)
06:50 hlub ravenx: yes
06:51 ravenx hlub: thank you good sir
06:51 marczis :) Thanks for the chit chat, I'm super bored on the bus
06:51 ravenx dbus?
06:51 ravenx board on dbus
06:51 ravenx bored* on dbus*
06:52 marczis :D Distance bus with Wifin in Finland
06:52 ravenx tervehys
06:52 marczis I'm not Fin alto :)
06:52 ravenx tervehdys*
06:52 hlub että sellasta
06:52 marczis :)
06:53 jamesp9_ joined #salt
06:53 morissette joined #salt
06:54 jamesp9 joined #salt
06:55 marczis Thanks again, arrived to the station, so must go :)
06:56 duncanmv joined #salt
06:57 ravenx i want one of my states to be reusable.  but,since i gotta specify the 'cwd'
06:57 ravenx it's not really possible
06:57 ravenx how can i make it so that the path of my apps:   /usr/local/companyname/<app-name>
06:57 ravenx can be flexible, or rather, 'detected'
06:57 ravenx and it just replaces it
06:57 ravenx basically, i will be doing salt 'servers' state.sls app-name to deploy.
06:57 armyriad joined #salt
06:58 ravenx is there a way i can place app-name from my cmd line, into the state.sls's <app-name>?
06:58 estahn ravenx yes, via pillar or grains
06:59 ravenx so it would be:  - cwd: /usr/local/companyname/<????>
06:59 ravenx how can do that via a grains command?
06:59 estahn one sec
06:59 punkoivan joined #salt
06:59 ravenx cuz the thing with pillars is that, it will make my command line's command grow
07:00 estahn i use this {% set revision = salt['grains.get']('app:xxxx:revision', salt['pillar.get']('app:xxxx:revision')) %}
07:00 estahn you can do the same with app name i suppose
07:00 ravenx what is the revision? o_O
07:00 jamesp9 hey all, I'm having an issue doing a "pip.installed" and getting this message https://gist.github.com/jamesp9/ebe5ed9ecbfdc904131617d0a60e9989
07:00 estahn you can also include with context but i haven't played with that
07:00 estahn ravenx thats the revision of the app :)
07:00 hlub ravenx: if you have a list of apps in pillar for instance: {%- for app_name in salt['pillar.get']('applications', []) %} put your state here with {{ app_name }} {%- endfor %}
07:01 estahn ravenx its just an example
07:01 ravenx estahn: i suppose for my case, i onyl really care about is app:xxxx
07:01 estahn hlub: is there a way to do an include in the loop?
07:02 estahn hlub i was struggling with this myself and ended up writing multiple deploy sls
07:02 armyriad joined #salt
07:02 estahn someone should write a salt version of capistrano
07:03 hlub estahn: of course you can include in loop :)
07:03 estahn hlub but you would need to make sure the state names are unique
07:03 estahn hlub is that being done through the context?
07:04 hlub use one include key that contains a list of included items. Note those dashes in my previous example. They tell jinja not to contain the white spaces before that jinja tag in the result.
07:05 ravenx estahn: so this:  `{% set revision = salt['grains.get']('app:xxxx:revision', salt['pillar.get']('app:xxxx:revision')) %}` allows me to fetch the "super-app"  from my command of: 'salt 'servers' state.sls super-app`
07:05 ravenx ?
07:05 estahn yes, you need to provide pillar data
07:05 ravenx ah
07:05 estahn via cli
07:05 ravenx aaaaaah okay
07:06 ravenx so my command needs to be longer
07:06 estahn salt '*' state.apply edit.vim pillar='{"pkgs": {"vim": "telnet"}}'
07:06 estahn https://docs.saltstack.com/en/latest/topics/tutorials/pillar.html#setting-pillar-data-on-the-command-line
07:06 ravenx gotcha.
07:06 ravenx thanks estahn
07:06 estahn hlub i need to give it a try
07:07 hlub estahn: I really don't know how salt identifies states since there seems to be a bit confusing (at least for me) logic about using either a state's id or its name.
07:07 fracklen joined #salt
07:08 estahn states are always identified by their ID
07:08 shiriru joined #salt
07:08 estahn if no name is specified it will take the ID as name
07:08 estahn at least thats my understanding and i might be wrong
07:11 flowstate joined #salt
07:11 hlub when specifying requirements, I am not sure which one it uses.
07:11 brianfeister joined #salt
07:11 hlub or more correctly. I know that salt uses id and name there somehow.
07:12 slav0nic joined #salt
07:13 mowntan joined #salt
07:14 ninjada_ joined #salt
07:17 estahn_ joined #salt
07:19 dgutu joined #salt
07:23 keimlink joined #salt
07:31 clevodearia joined #salt
07:32 steffo joined #salt
07:39 estahn_ is there a way to target only the first host of a salt * cmd.run?
07:41 AndreasLutro hlub: https://github.com/saltstack/salt/blob/2016.3/salt/state.py#L1020-L1021 https://github.com/saltstack/salt/blob/2016.3/salt/state.py#L1838-L1839 https://github.com/saltstack/salt/blob/2016.3/salt/state.py#L1974-L1975
07:45 Rumbles joined #salt
07:46 blue_ joined #salt
07:48 impi joined #salt
07:49 aw110f joined #salt
07:49 manji joined #salt
07:50 manji joined #salt
07:53 blue_ when using "contents_pillar: <some pillar>" in a file.managed, is it possible to have a default value if the pillar doesn't exist?
07:58 cpowell joined #salt
08:02 linjan_ joined #salt
08:04 jhauser joined #salt
08:05 dmaiocchi joined #salt
08:09 flowstate joined #salt
08:15 SpX joined #salt
08:20 estahn_ no one?
08:20 estahn_ hlub can i do "salt '*[0]' cmd.run'?
08:22 haaj joined #salt
08:23 tuxx joined #salt
08:25 dmaiocchi joined #salt
08:29 GreatSnoopy joined #salt
08:31 haaj joined #salt
08:37 elsmo joined #salt
08:40 edrocks joined #salt
08:42 subsignal joined #salt
08:49 s_kunk joined #salt
08:49 kshlm joined #salt
08:57 Phil-Work joined #salt
08:58 Phil-Work if you use a jinja include, is it possible to access variables defined in the included file from the file that did the inclusion (after the include line, obviously)
09:00 Sylvain31 joined #salt
09:05 rim-k joined #salt
09:05 rim-k hello everyone!
09:05 rim-k I can't seem to set up LDAP external auth
09:05 rim-k against openldap
09:06 rim-k the initial connection (the one that will lookup for groups) doesn't occur
09:06 rim-k even though the binddn & bindpw are correctly set
09:06 rim-k at the ldap side, everything is ok
09:06 rim-k any hint?
09:10 Sylvain31 hi, debconf and stored password? I hacked this formula to install mariaDB instead of MySQL as suggested here: https://github.com/saltstack-formulas/mysql-formula/issues/43#issuecomment-217934227, but as noticed the deconf configuration require a different package name mariadb-server-10.0 for me under debian jessie. I noticed that the password is not cleared from debconf-get-selections | grep maria. Is that
09:10 saltstackbot [#43]title: Adapt for MariaDB | It would be nice if you could adapt this to work with MariaDB - especially since CentOS/RedHat has dropped MySQL in favor of MariaDB.
09:10 Sylvain31 expected or not?
09:10 flowstate joined #salt
09:26 fracklen joined #salt
09:28 crVsh joined #salt
09:28 dudebrowuh joined #salt
09:30 estahn joined #salt
09:32 fracklen joined #salt
09:32 linjan joined #salt
09:35 Sylvain31 Is there a reset like (echo PURGE | debconf-communicate mariadb-server-10.0)? This doc gives no hit https://docs.saltstack.com/en/latest/ref/states/all/salt.states.debconfmod.html Or must I avoid debconf an go to SQL query?
09:36 Sylvain31 hit = hint
09:37 fracklen joined #salt
09:38 fracklen joined #salt
09:44 rim-k anyone for my ldap issue ?
09:45 Sylvain31 rim-k: no one awake, too early ;)
09:46 rim-k oh :)
09:47 Ayo joined #salt
09:51 Sylvain31 rim-k: what do have done for now?
09:52 fracklen joined #salt
09:57 fracklen joined #salt
10:03 fracklen joined #salt
10:06 rim-k Sylvain31: don't get it. What?
10:08 iceyao joined #salt
10:09 flowstate joined #salt
10:21 fracklen joined #salt
10:23 haaj joined #salt
10:25 Lionel_Debroux joined #salt
10:28 fracklen joined #salt
10:33 fracklen joined #salt
10:34 brianfeister joined #salt
10:36 Sylvain31 rim-k: for LDAP, did you try with -ldebug?
10:40 dendazen joined #salt
10:43 edrocks joined #salt
10:43 fracklen joined #salt
10:44 subsignal joined #salt
10:49 fracklen joined #salt
10:49 BigBear joined #salt
10:51 steffo joined #salt
10:52 impi joined #salt
10:59 fracklen joined #salt
11:03 shiriru joined #salt
11:06 amcorreia joined #salt
11:10 Edgan joined #salt
11:12 crVsh joined #salt
11:15 Zhen joined #salt
11:17 josuebrunel joined #salt
11:19 torment joined #salt
11:36 brianfeister joined #salt
11:41 iceyao joined #salt
11:44 quasiben joined #salt
11:56 ninjada joined #salt
11:59 cpowell joined #salt
11:59 N-Mi joined #salt
11:59 N-Mi joined #salt
12:01 jespada joined #salt
12:02 av_ joined #salt
12:04 teryx510 joined #salt
12:07 teryx5101 joined #salt
12:08 fracklen joined #salt
12:09 edrocks joined #salt
12:14 garphy joined #salt
12:14 fracklen joined #salt
12:15 iceyao joined #salt
12:15 s_kunk joined #salt
12:20 TooLmaN joined #salt
12:26 toastedpenguin joined #salt
12:27 jhauser joined #salt
12:27 ninjada joined #salt
12:31 tracphil joined #salt
12:31 west575 joined #salt
12:33 Sylvain31 joined #salt
12:37 WKNiGHT joined #salt
12:38 toastedpenguin joined #salt
12:45 dendazen joined #salt
12:45 brianfeister joined #salt
12:45 edrocks joined #salt
12:50 subsignal joined #salt
12:50 gh34 joined #salt
12:51 DammitJim joined #salt
12:53 rim-k Sylvain31: sorry, was out for lunch
12:53 rim-k yes
12:53 rim-k I did try with debug
12:53 rim-k nothing in there
12:55 Rumbles joined #salt
12:59 numkem joined #salt
13:00 ivanjaros joined #salt
13:01 zsoftich joined #salt
13:04 RoGryza joined #salt
13:04 ssplatt joined #salt
13:07 rem5 joined #salt
13:08 subsignal joined #salt
13:09 zmalone joined #salt
13:09 robnagler joined #salt
13:10 ALLmightySPIFF joined #salt
13:11 rem5 joined #salt
13:11 robnagler is the grain 'id' guaranteed to be secure on the master?
13:12 rrei joined #salt
13:13 cpowell joined #salt
13:14 Xopher joined #salt
13:14 subsigna_ joined #salt
13:14 teatime no.
13:15 teatime all grains are minion-controlled.
13:15 AdamSewell joined #salt
13:15 amcorreia joined #salt
13:17 robnagler how do you get a minion's id to render something in a pillar?
13:17 estahn joined #salt
13:20 RoGryza joined #salt
13:21 teatime so, you might think that you'd get id in the jinja context, in pillars.
13:21 teatime but it does not seem to be the case.
13:21 kevinquinnyo1 joined #salt
13:23 teatime (that means I don't know.  I have been curious about the same for a while.)
13:24 robnagler I'm interrogating now using a #!py renderer
13:24 teatime perhaps, though, you don't actually care about id grain being changable by the minion, if it's only being used to e.g. generate config files on the minion
13:24 teatime since anyone that could change the minion's grains could change the config files directly
13:25 robnagler Right
13:25 bhosmer_ joined #salt
13:26 racooper joined #salt
13:27 robnagler is "opts" secure? there's a opts['id']
13:28 teatime no, same situation as grains.
13:29 flowstate joined #salt
13:30 robnagler great, thanks. I need to ponder how to do what I want...
13:30 teatime what are you doing exactly?
13:31 robnagler trying to have a pillar file for a host
13:31 teatime aha
13:31 robnagler seems like an obvious thing to do
13:31 teatime so like, if a file in some/dir/minionid.example.com exists, include it as pillar data
13:31 teatime ?
13:31 tristianc joined #salt
13:32 robnagler right, but you can't use dots (found that out the hard way :)
13:32 robnagler This is what I want (securely) {{ grains.id|replace(".", "_") }}
13:32 teatime heh, what didn't work w/ the dots?  I know that's the wisdom, but I've been doing it w/o getting bitten yet.
13:32 teatime have been waiting for the other shoe to drop.
13:33 spuder joined #salt
13:33 robnagler a '.' is translated to '/' so the file is minion/example/com.sls
13:33 teatime oh, ok sure
13:34 teatime so, ext_pillar's do get the secure minion_id... there may be an existing one that would work for you.
13:34 robnagler just was non-obvious. It's in the doc in SLS files, but I didn't grok that it was for pillar as well as state files
13:34 robnagler that's perfect. what's the variable?
13:34 robnagler first arg,
13:35 robnagler got it
13:35 teatime e.g., file_tree lets you do some/dir/hosts/minionid.example.com/apikey.txt and then minionid.example.com gets a pillar key apikey.txt containing the contents of the file apikey.txt.  Which is often super useful.  but file_tree is a bit limited, that's pretty much all it does.
13:36 teatime pillarstack is kindof like a reimplementation of salt's builtin pillar stuff, w/ a little more flexibility.  including a minion_id variable in the context.
13:37 robnagler I see about integrating it. Thanks for the help. Gotta go /bye
13:42 ageorgop joined #salt
13:46 scoates joined #salt
13:49 XenophonF robnagler: check out https://github.com/irtnog/salt-pillar-example
13:49 XenophonF oh he left
13:49 Tanta joined #salt
13:49 XenophonF too bad, i have SLS assignments in pillar/top.sls that look like "salt.example.com"
13:49 pdayton joined #salt
13:52 zmalone joined #salt
13:52 flowstate joined #salt
13:54 jdubski joined #salt
13:56 teatime pretty sure the point was to have it be dynamic, rather than having to add each new minion to a static mapping list
13:59 Ayo joined #salt
13:59 XenophonF this is how i do it: https://github.com/irtnog/salt-pillar-example/blob/master/top.sls#L89
14:00 XenophonF might not scale beyond a few tens of hosts, though
14:00 teatime yeah I looked
14:00 teatime but yeah, it doesn't address the question.
14:00 XenophonF ah well
14:00 teatime nice repo though, looks handy
14:01 XenophonF it's my mockup for work
14:01 _JZ_ joined #salt
14:05 west575 joined #salt
14:05 XenophonF so if i refer to a turbo encabulator in a pillar.example file, y'all will get the joke, right?
14:06 teatime XenophonF: would you prefer com/example/mx1 over mx1/example/com
14:07 teatime or does that give you PTSD-like flashbacks to Java and XML
14:07 teatime also there are private keys in there.
14:07 teatime I hope they're fakes :)
14:07 catpig joined #salt
14:08 rem5 joined #salt
14:09 ALLmightySPIFF joined #salt
14:13 punkoivan joined #salt
14:14 ecdhe joined #salt
14:15 tharkun joined #salt
14:17 flowstate joined #salt
14:18 knine joined #salt
14:20 rem5 joined #salt
14:23 cpowell joined #salt
14:23 tharkun joined #salt
14:24 cnk joined #salt
14:25 irctc971 joined #salt
14:26 mapu joined #salt
14:29 edrocks joined #salt
14:31 rem5 joined #salt
14:33 kawa2014 joined #salt
14:34 west575_ joined #salt
14:35 ferbla joined #salt
14:37 XenophonF they are fakes!
14:37 XenophonF i much prefer mx1/example/com
14:37 XenophonF i really hate the java/xml backwards domain name thing
14:37 teatime really though, it's the "mx1.example.com" form that is backwards
14:38 flowstate joined #salt
14:38 XenophonF i'm glad microsoft didn't adopt something similar when they did .net
14:38 XenophonF well, to quote obi wan, that's true from a certain point of view
14:38 rem5 joined #salt
14:39 XenophonF my native language reads left to right, and generally the hostname is the most significant bit, so i prefer that it's first
14:39 teatime yeah, I suppose that is just a matter of opinion / viewpoint
14:39 XenophonF def
14:39 XenophonF tbh i structured it that way because i think it makes it easier for people that are not you and not me
14:40 teatime but 'com/example/mx1' keeps the correspondence from general/superset to specific/subset for both the directory-tree and DNS-tree aspects
14:40 Brew joined #salt
14:40 XenophonF i just wanted a pillar SLS to look like a domain name
14:40 fracklen joined #salt
14:41 XenophonF there really isn't any structure to the pillar directories beyond that
14:44 XenophonF my math prof always quoted "ontology recapitulates phylogeny" but i think that sometimes, it's better to design data structures that are easy to understand, even if that means losing certain kinds of detail
14:44 mpanetta_ joined #salt
14:46 teatime that is an interesting saying
14:47 AndreasLutro if a saying requires you to look up all of its words to understand it, I don't think it's a very good one
14:47 teatime lol I am literally doing that right now.  but I only said it was interesting :)
14:48 evle joined #salt
14:52 Drew_ joined #salt
14:52 Drew_ left #salt
14:56 renaissancedev joined #salt
15:03 teryx510 joined #salt
15:05 kshlm joined #salt
15:06 Hybrid joined #salt
15:07 Vishvendra joined #salt
15:07 flowstate joined #salt
15:08 ferbla joined #salt
15:08 noraatepernos joined #salt
15:09 pdayton joined #salt
15:11 netzvieh Hi, when a reactor is triggered I want to run single state on the minion triggering the reactor. so I now have http://pastie.org/private/skbklarcvxkehqjisbuxmq in the reactor sls file, but somehow that state apply isn't triggered
15:15 crVsh joined #salt
15:15 PeterO joined #salt
15:16 fracklen joined #salt
15:17 bshelton229 joined #salt
15:19 hasues joined #salt
15:20 hasues left #salt
15:20 jimklo joined #salt
15:20 XenophonF AndreasLutro: that's exactly how i felt about it
15:21 west575 joined #salt
15:21 komputes joined #salt
15:23 ssplatt netzvieh: https://docs.saltstack.com/en/latest/topics/reactor/#knowing-what-event-is-being-fired  have youw atched for the events to make sure it’s firing?
15:24 netzvieh ssplatt: yeah, done that now, and it's firing but I'm reacting on salt/key when act == accept, so it probably fires to early, since the minion start event comes after that
15:24 ssplatt https://docs.saltstack.com/en/latest/topics/reactor/#syncing-custom-types-on-minion-start  something like that?
15:25 ssplatt or like this https://docs.saltstack.com/en/latest/topics/reactor/#a-complete-example, watch for - 'salt/minion/ink*/start':
15:26 west575_ joined #salt
15:26 jeddi joined #salt
15:27 netzvieh ssplatt: that might help yes, thank you
15:29 brotatochip joined #salt
15:33 impi joined #salt
15:34 dezertol joined #salt
15:41 dfinn joined #salt
15:41 Fiber^ joined #salt
15:46 mpanetta_ Has anyone here used salt-cloud with OVH?
15:46 edrocks joined #salt
15:51 Vishvendra joined #salt
15:53 rbjorklin joined #salt
15:54 farblue joined #salt
16:02 ssplatt joined #salt
16:03 PepperIndustries joined #salt
16:06 onlyanegg joined #salt
16:08 ajw0100 joined #salt
16:13 flowstate joined #salt
16:13 telecode joined #salt
16:16 kawa2014 joined #salt
16:19 pipps joined #salt
16:21 spuder joined #salt
16:22 garphy joined #salt
16:23 nate_c joined #salt
16:24 cpowell joined #salt
16:25 cpowell joined #salt
16:25 viq joined #salt
16:29 armguy joined #salt
16:35 flowstate joined #salt
16:35 rem5 joined #salt
16:35 bluenemo joined #salt
16:36 foundatron is it possible to set multiple pillar roots ofr the same saltenv?
16:36 foundatron for*
16:37 foundatron i've been trying to get something like this to work: https://gist.github.com/foundatron/b09841f942f5ecd392a59ecbdcfc2cdc
16:38 foundatron but the pillar items only seem to work for the first pillar defined
16:40 foundatron the second pillar should be matching all minions with '*'
16:41 foundatron or at least thats what i thought would happen...
16:41 tpaul joined #salt
16:42 rem5 joined #salt
16:46 rihannon joined #salt
16:48 flowstate joined #salt
16:51 LordOfLA|Weechat joined #salt
16:52 ageorgop joined #salt
16:53 flowstate joined #salt
16:53 west575 joined #salt
16:55 bshelton229 foundatron: I'm playing with something similar right now. Do both pillar roots have a top.sls? We had something exactly like that working by the first root including a top.sls which had a '*' that included an sls from the second root.
16:56 foundatron Yeah they both do
16:56 dmaiocchi joined #salt
16:56 teatime foundatron: yes, you can, can you show the pillar files as well?
16:56 teatime feel free to redact secrets but don't change structure
16:58 flowstate joined #salt
16:59 ecdhe I'd like to build a home vm lab controlled by salt.  What software should I use as a provider so that I can spin up new nodes from salt?
16:59 LordOfLA|Weechat joined #salt
17:00 moloney joined #salt
17:00 LordOfLA|Weechat joined #salt
17:02 moloney I am trying to run some orchestration off a reactor to a key being accepted (for a new minion).  It seems like salt is not completely prepared for the minion at this poing though. I get an error saying: No such file or directory: '/var/cache/salt/master/minions'
17:03 foundatron teatime, i've added them in a commet
17:03 foundatron https://gist.github.com/foundatron/b09841f942f5ecd392a59ecbdcfc2cdc
17:03 foundatron pretty simple
17:03 ivanjaros joined #salt
17:04 foundatron i've made it it increasingly simple to figure this out
17:04 flowstate joined #salt
17:05 teatime ecdhe: so you already know you want to use salt-cloud, you just need to decide on a backend?
17:06 LordOfLA|Weechat joined #salt
17:07 onlyanegg joined #salt
17:07 LordOfLA|Weechat joined #salt
17:08 bshelton229 foundatron: I'm very new to salt but when we had a set up that looked like that, top.sls in /srv/base/pillars/ included common2.sls directly and /srv/base/secrets didn't have a top.
17:08 ecdhe teatime, yes.
17:08 bshelton229 I'm just now moving this to two git based ext_pillars and have discovered this set up seems to want a top.sls in each root.
17:08 foundatron at bshelton229 thanks
17:08 foundatron testing taht now
17:09 LordOfLA|Weechat joined #salt
17:10 flowstate joined #salt
17:11 teatime foundatron: this may be a bug or NYI related to https://github.com/saltstack/salt/issues/30487 and/or some of the bugs linked from the comments there.
17:11 saltstackbot [#30487]title: pillar top files not merging cleanly. | The pillar top file merge strategy doesn't seem to be working as cleanly as it should....
17:13 foundatron huh
17:14 teatime or, perhaps not.  I dunno.
17:14 teatime I am curious if not setting top_file_merging_strategy=same changes the behavior.
17:15 foundatron That include strategy works
17:15 teatime docs make it sound like it only affects conflicts among different envs, but then, the docs generally don't consider the case of multiple pillar roots in one env either.
17:15 foundatron thanks
17:15 foundatron at least i'm unblocked now
17:15 teatime hrm?  what changed?
17:16 foundatron I added your include
17:16 hal58th bshelton229: I made another git repo that just had a top.sls file in it. That way you don't have multiple top.sls files merging and causing errors.
17:16 foundatron rather than relying on the top files
17:16 foundatron "hey: ho
17:16 foundatron include:
17:16 foundatron - common2
17:16 foundatron "
17:16 flowstate joined #salt
17:16 teatime so you're doing one top file for all roots now, then, rather than a top file for each root?
17:17 foundatron so one top file for all roots pillar
17:17 foundatron yes I guess so
17:17 foundatron and then using includes
17:18 foundatron here is my use case: basically we have one pillar that is more secure (secrets) and the other which we check into git
17:18 foundatron so we need to seperate them
17:18 teatime right
17:20 teatime ecdhe: so, I'm kindof surprised that there are not salt-cloud providers for libvirt, raw kvm and xen, or vagrant.  I feel like I must be missing something.
17:21 Tanta there is one for Xen... it's called EC2 :P
17:21 pipps joined #salt
17:22 MTecknology foundatron: I've always just gone with a single pillar that I still check into git, but it's a very limited of group that can see it. At $last_employer it was me and my boss that had access.
17:22 bshelton229 foundatron: I couldn't get multiple top files to work either. And now that we're using two external git based pillars, I need multiple top files, which seem to merge together just fine.
17:22 MTecknology I can see the value, though..
17:23 flowstate joined #salt
17:23 teatime I most definitely see the value, certainly in separating public and sensitive pillars within the same env, and also with each having its own top file.
17:24 MTecknology multiple top.sls files get merged in, I think, a non-deterministic way. If you have a states repo with multiple branches (prod,dev,test,stage) and a top.sls file, they'll all be merged and break horribly.
17:25 MTecknology for states, I did exactly what hal58th mentioned.. a separate file with top.sls and empty.sls
17:25 MTecknology separate repo *  .. it's early :(
17:27 aagbds joined #salt
17:27 ALLmightySPIFF joined #salt
17:27 bftm joined #salt
17:28 ferbla joined #salt
17:29 flowstate joined #salt
17:29 pipps joined #salt
17:30 ALLmight_ joined #salt
17:33 xxjparkerxx joined #salt
17:34 edrocks joined #salt
17:34 xxjparkerxx hello, I am trying to find a way to provision vm's on a vCloud Director cloud using salt, does anyone know if this is possible?
17:36 LordOfLA|Weechat joined #salt
17:39 dmaiocchi joined #salt
17:42 flowstate joined #salt
17:44 komputes joined #salt
17:45 writtenoff joined #salt
17:45 rovar I'm trying to come up with a way to name a minion id from a CloudFormation in a group of servers.
17:45 ssplatt joined #salt
17:46 rovar e.g. I'm creating a group of servers at a time, then preseeding them to salt-master
17:46 rovar but I don't know of a good way to name them uniquely...
17:48 rovar if I could ask the salt-master for an incrementing number for a base id, that would be sweet..
17:49 aw110f joined #salt
17:51 brotatochip joined #salt
17:52 rovar maybe /etc/machine-id is my best option
17:53 moloney Can I look up pillar data for a minion inside an orchestration sls on the master?
17:53 DanyC joined #salt
17:54 urda joined #salt
17:56 telecode joined #salt
17:56 urda left #salt
17:57 Garo_ joined #salt
17:58 ahammond is there an easy way to use file.managed from the cli?
17:58 ahammond or... even a somewhat ugly way?
17:59 demura joined #salt
17:59 ahammond I have a file on my salt master, I want to put it on a few dozen minions. I don't want to commit it to my salt or pillar repo
17:59 jfindlay ahammond: state.single
18:00 flowstate joined #salt
18:00 ahammond jfindlay perfect! :)
18:01 TyrfingMjolnir joined #salt
18:04 quasiben joined #salt
18:05 flowstate joined #salt
18:08 mpanetta_ Has anyone here used salt-cloud with OVH?  I thought they had an openstack compatible API but that does not seem to be the case?
18:11 LordOfLA|Weechat joined #salt
18:15 manji joined #salt
18:15 pipps joined #salt
18:17 mowntan joined #salt
18:17 west575_ joined #salt
18:18 flowstate joined #salt
18:21 MadHatter42 joined #salt
18:22 west575 joined #salt
18:24 keimlink joined #salt
18:24 LordOfLA|Weechat joined #salt
18:27 moloney Is it a bug if I am seeing jobs return with 'retcode != 0' and 'success == True'?
18:28 edrocks joined #salt
18:34 hasues joined #salt
18:36 armguy joined #salt
18:38 xxjparkerxx joined #salt
18:38 hasues left #salt
18:40 noraatepernos joined #salt
18:46 onlyanegg joined #salt
18:50 mapu joined #salt
18:54 onlyanegg joined #salt
18:55 pipps joined #salt
19:04 Netwizard joined #salt
19:06 perfectsine joined #salt
19:08 hasues joined #salt
19:09 LordOfLA|Weechat joined #salt
19:10 onlyanegg joined #salt
19:11 pipps joined #salt
19:13 tehsu joined #salt
19:13 rawzone joined #salt
19:14 telecode joined #salt
19:17 edrocks joined #salt
19:18 coleman joined #salt
19:20 hasues left #salt
19:21 DammitJim joined #salt
19:21 onlyanegg joined #salt
19:23 flowstate joined #salt
19:25 perfectsine_ joined #salt
19:27 pipps joined #salt
19:28 BigBear joined #salt
19:29 pipps99 joined #salt
19:30 flowstate joined #salt
19:32 MindDrive joined #salt
19:41 fracklen joined #salt
19:42 sagerdearia joined #salt
19:42 LordOfLA joined #salt
19:42 zsoftich moloney: I can't find the bug atm, but exit codes are unfortunately a crap shoot with salt
19:43 zmalone There are a few of them, I'll try
19:43 zsoftich I've just returned json and parsed that for the status of the run
19:43 jfindlay zsoftich: https://github.com/saltstack/salt/issues/18510?
19:43 saltstackbot [#18510]title: salt exit codes | is there a reason why test.* returns False and exits with bash exit code 0 instead of 1 ? ...
19:44 zmalone That's a good entry into the nest of exit code tickets
19:45 zsoftich jfindlay: thanks...I'm gonna bookmark it this time
19:45 zmalone https://github.com/saltstack/salt/issues/18510#issuecomment-217446933 oof, that must be a pain
19:45 saltstackbot [#18510]title: salt exit codes | is there a reason why test.* returns False and exits with bash exit code 0 instead of 1 ? ...
19:46 StolenToast joined #salt
19:47 StolenToast can I do something like "if A: import B else: import C"?
19:47 StolenToast I have two mostly complete states and want to direct nodes to one or the other based on a grain
19:48 jfindlay StolenToast: I think you could do that with jinja
19:48 pipps joined #salt
19:49 StolenToast yeah in a parent state
19:49 flowstate joined #salt
19:49 zsoftich https://docs.saltstack.com/en/latest/topics/tutorials/states_pt3.html#using-grains-in-sls-modules <-- like this but in the include: section
19:49 StolenToast I was just wondering if the presence of multiple "import"s would cause it to error out
19:49 StolenToast and yeah "include"
19:49 StolenToast not import
19:49 zsoftich you can only have one include
19:50 zsoftich so just use jinja conditional to add to the list or not
19:50 ssplatt trying to writ emy own external pillar. it apparently loads fine but then i get “specified ext_pillar is unavailable”
19:50 StolenToast ok I got it now, thanks zsoftich
19:50 ssplatt it’s listed in sys.list_modules
19:50 moloney zsoftich: Well in my particular case the "retcode" seems to be correct and the "success" seems to be wrong.  I am getting a jinja rendering error and I end up with "success == True" and "retcode == 1"
19:50 ssplatt any idea how i can get some more info on what’s goign on other than it’s just unavailable?
19:51 ssplatt the code works fine on it’s own when run by hand in python cli
19:53 Opti99 joined #salt
19:53 moloney zsoftich: I should have been more clear, I am talking about the "retcode" that is part of the job completion event (I am using a reactor to send out emails on errors/changes)
19:54 gh34 joined #salt
19:54 systeem joined #salt
19:55 Opti99 I have the following jinja variable in a state file: {% set allow = '*.example.com' %} When I go to use it in a context it is telling me "expected alphabetic or numeric character, but found '.'  Is there some way I should be escaping the *. ?
19:56 squishypebble joined #salt
19:57 pipps joined #salt
20:00 west575 joined #salt
20:01 nZac joined #salt
20:03 josuebrunel joined #salt
20:04 keimlink joined #salt
20:06 ajw0100 joined #salt
20:10 Ayo joined #salt
20:14 onlyanegg joined #salt
20:14 dayid joined #salt
20:17 teryx5101 joined #salt
20:26 flowstate joined #salt
20:28 GreatSnoopy joined #salt
20:28 pryorda joined #salt
20:29 pryorda https://gist.github.com/anonymous/dcf276c654591787a80539f16dc5c7c9 can I do that inner jinja in the set?
20:29 pryorda or is there a betterway
20:33 ssplatt if i throw a bunch of log.debug()’s in my external pilla rmodule i should see those output when i -l debug right?
20:34 jghazally joined #salt
20:39 MadHatter42 joined #salt
20:41 sagerdearia joined #salt
20:44 slav0nic joined #salt
20:51 LordOfLA joined #salt
20:58 iggy pryorda: you don't need the {{ }} inside {% %}
21:01 Hybrid joined #salt
21:06 pryorda oh really?
21:06 pryorda so get rid of those and in theory it will work
21:09 brianfeister joined #salt
21:10 iggy pryorda: I commented with something approximating the correcting format
21:10 CaptTofu joined #salt
21:12 ajw0100 joined #salt
21:13 flowstate joined #salt
21:13 pryorda Ah cool
21:13 pryorda what does ~ mean in jinja land?
21:16 ALLmightySPIFF joined #salt
21:17 bltmiller joined #salt
21:19 tracphil joined #salt
21:25 sauces joined #salt
21:26 ZiLi0n_ joined #salt
21:27 linjan joined #salt
21:27 ZiLi0n_ Hello everyone, is someone using Test Kitchen with the kitchen-salt provider? I am getting errors because TestKitchen is not able to install Salt in Fedora... haven't found the root cause yet
21:29 sauces Hi all! Trying out SaltStack on Windows. Both master and minions are latest version. Using the built in Windows repo, I'm getting some errors on install/uninstall that I'm having issues troubleshooting. Windows clients have the 64bit version installed on Windows Server 2012 R2.  Master is Ubuntu 14.04. Errors include "Registry not updated" during uninstall or "Software not found in the registry" when in fact the application
21:29 sauces successfully installed. Any ideas?
21:34 iggy pryorda: convert to string and concatenate
21:37 jdhore joined #salt
21:37 jghazally joined #salt
21:38 Adam__ left #salt
21:39 jdhore In the Salt getting started guide, it recommends putting my state file in /srv/salt, but I installed using the packages on a live Ubuntu node and there is no /srv/salt directory...Any idea where I should be putting my states?
21:39 Adam__ joined #salt
21:40 rem5 joined #salt
21:40 Adam__ joined #salt
21:41 pryorda So is there a way to import variables from another sls file?
21:41 majikman joined #salt
21:41 pryorda {% from 'init.sls' import ENVIRONMENT, ENDPOINT, TEMPLATE, DESTINATION %}
21:42 majikman joined #salt
21:44 rim-k joined #salt
21:44 sauces pryorda: you can set those variables in pillars to use across multiple files
21:44 jfindlay jdhore: `mkdir -p /srv/salt`
21:45 hasues joined #salt
21:45 hasues left #salt
21:45 jfindlay should probably be in the guide
21:45 jfindlay to make that dir if it's not there
21:45 jdhore jfindlay: Thanks...I didn't know if a different directory is used if you use the packages
21:47 jfindlay jdhore: it is the same in any case, but you can change it with the file_roots config in /etc/salt/master
21:47 jfindlay https://docs.saltstack.com/en/latest/ref/file_server/file_roots.html#directory-overlay
21:48 zsoftich joined #salt
21:52 ajw0100 joined #salt
21:53 s_kunk joined #salt
21:53 s_kunk joined #salt
21:55 jeddi joined #salt
21:57 invalidexception joined #salt
22:04 CeBe joined #salt
22:06 CeBe1 joined #salt
22:07 quasiben joined #salt
22:08 sauces Trying out SaltStack on Windows. Both master and minions are latest version. Using the built in Windows repo, I'm getting some errors on install/uninstall that I'm having issues troubleshooting. Windows clients have the 64bit version installed on Windows Server 2012 R2.  Master is Ubuntu 14.04. Errors include "Registry not updated" during uninstall or "Software not found in the registry" when in fact the app installed. Any ideas?
22:10 flowstate joined #salt
22:13 moloney Can I get the full configuration somehow inside my custom runner.  I see that "__salt__['config.get']" returns one value for a specific key.
22:13 irctc867 joined #salt
22:14 irctc867 I am looking for info on get_cli_returns method of LocalClient
22:14 irctc867 it does not seem to respect the timeout I give it
22:14 irctc867 I will set timeout to 600 seconds but still within much less than that get minion not responding return
22:18 irctc867 this is on 2015.8.3
22:18 irctc867 zmq 4
22:21 nidr0x joined #salt
22:22 moloney hmm, seemd "__salt__['config.get']" doesn't work at all in a custom runner...
22:24 bluenemo joined #salt
22:25 irctc867 so continuing to look through the code I saw that it will stop watching for events when it gets returns from all job minions
22:25 irctc867 only return is {'ret': True} from a state call
22:26 irctc867 why is it returning that? It would be preferable to return nothing until the timeout has ended
22:26 irctc867 especially since job is still running
22:26 zmalone joined #salt
22:27 pipps joined #salt
22:28 jghazally joined #salt
22:33 ajw0100 joined #salt
22:33 moloney So I guess you have direct access to __opts__ in a runner, even though the docs don't say that here: https://docs.saltstack.com/en/latest/topics/development/dunder_dictionaries.html
22:36 tracphil joined #salt
22:37 zmalone left #salt
22:37 zenlot6 joined #salt
22:37 kevinquinnyo1 joined #salt
22:39 jerredbell joined #salt
22:45 lorengordon any chance anyone understands `mod_aggregate`? i've gotten it working for a custom state, but while it does aggregate the states as i expect, it also continue to execute the aggregated states which i did not expect
22:46 AdamSewell joined #salt
22:48 pipps joined #salt
22:49 ssplatt joined #salt
22:49 ageorgop1 joined #salt
22:49 nZac joined #salt
22:49 tristianc joined #salt
22:50 noraatepernos joined #salt
22:51 tracphil joined #salt
22:55 tracphil joined #salt
23:04 ronrib joined #salt
23:04 ssplatt is there a special folder where I’m supposed to put external pillar modules vs execution modules?
23:05 ninjada joined #salt
23:05 rawzone joined #salt
23:06 ninjada joined #salt
23:07 ssplatt derp of course.  _modules/pillar
23:08 keimlink_ joined #salt
23:11 flowstate joined #salt
23:13 Phil-Work` joined #salt
23:13 Jimlad_ joined #salt
23:13 opdude_ joined #salt
23:15 Score_Under joined #salt
23:15 cyraxjoe joined #salt
23:15 ssplatt now how does my dict of items actually merge...
23:16 mariusv joined #salt
23:16 mariusv joined #salt
23:17 jghazally joined #salt
23:17 irctc867 left #salt
23:17 arlo joined #salt
23:17 ssplatt if i have mypillar.py, and i return data, should i be able to do ‘salt-call pillar.get mypillar’  and it would all be under mypillar:?
23:20 telecode joined #salt
23:21 manji joined #salt
23:24 dendazen joined #salt
23:25 ajw0100 joined #salt
23:29 ssplatt joined #salt
23:31 sagerdearia joined #salt
23:35 watersoul_ joined #salt
23:35 estahn joined #salt
23:36 SheetiS1 joined #salt
23:37 zenlot6 joined #salt
23:40 marie1972 joined #salt
23:40 Sammichmaker joined #salt
23:40 AdamSewell joined #salt
23:41 keimlink joined #salt
23:43 mosen joined #salt
23:49 N-Mi joined #salt
23:49 flowstate joined #salt
23:50 linjan joined #salt
23:51 N-Mi joined #salt
23:51 N-Mi joined #salt
23:59 ninjada joined #salt

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