Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-06-18

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

All times shown according to UTC.

Time Nick Message
00:11 Eugene Can you specify multiple values for onlyif? https://docs.saltstack.com/en/latest/ref/states/requisites.html#onlyif
00:12 Eugene Eg, run multiple test commands
00:13 ivanjaros joined #salt
00:13 iggy Eugene: yes
00:14 Eugene Awesome. Are they run in series, until a failure occurs?
00:14 iggy "The onlyif requisite specifies that if each command listed in onlyif returns True"
00:15 Eugene I mean, how is it processed? Will all of them always be run, or will the first one bailing cause the second to not run?
00:15 iggy maybe not totally explicit from that, but yeah, it runs top down and returns as soon as one fails
00:15 Eugene Great, thanks.
00:16 Eugene I'm assembling a state for some crummy software that has pre-install tasks to run
00:24 nmadhok1 joined #salt
00:26 nmadhok joined #salt
00:38 flowstate joined #salt
00:38 TaiSHi left #salt
00:40 rem5 joined #salt
00:54 rem5 joined #salt
00:57 rem5_ joined #salt
01:00 nmadhok joined #salt
01:12 keimlink joined #salt
01:14 subsignal joined #salt
01:14 rodr1c joined #salt
01:15 subsigna_ joined #salt
01:16 nmadhok joined #salt
01:21 amcorreia joined #salt
01:24 subsignal joined #salt
01:24 MeltedLux joined #salt
01:26 Nahual joined #salt
01:36 flowstate joined #salt
01:46 ahmed_devops joined #salt
01:46 ahmed_devops I have a question about salt-cloud .. can I deal with provider/profiler/map files as SLS files that would get rendered and use vars?
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.10, 2015.8.10, 2016.3.1 | 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:50 jalbretsen joined #salt
01:51 catpigger joined #salt
01:53 Nahual left #salt
01:53 iggy man, that wait must have just been too long
01:55 DEger joined #salt
01:59 nmadhok joined #salt
02:01 nmadhok1 joined #salt
02:02 iceyao joined #salt
02:04 nmadhok joined #salt
02:12 ahmed_devops joined #salt
02:14 zmalone joined #salt
02:18 ahmed_devops Aaround for a quick question about salt-cloud conf files?
02:18 ahmed_devops Any one*
02:36 flowstate joined #salt
02:36 stooj joined #salt
02:41 ntropy ahmed_devops: its best to just ask the question and hang around for an answer
02:55 tuxx joined #salt
02:55 ahmed_devops is there a way to render the .conf files in salt-cloud or use variables in them?
03:35 flowstate joined #salt
04:21 DEger joined #salt
04:31 justanotheruser joined #salt
04:32 SpX joined #salt
04:36 flowstate joined #salt
04:37 zmalone joined #salt
04:44 nmadhok1 joined #salt
04:54 cliluw joined #salt
04:57 I_AM_EJACULATING joined #salt
05:05 I_AM_EJACULATING left #salt
05:05 I_AM_EJACULATING joined #salt
05:12 sauvin joined #salt
05:14 manji joined #salt
05:24 nmadhok joined #salt
05:25 manji joined #salt
05:26 ajv joined #salt
05:34 cprior joined #salt
05:34 aidin joined #salt
05:35 flowstate joined #salt
05:48 fannet_ joined #salt
05:57 druonysus joined #salt
05:59 beneggett joined #salt
06:04 nmadhok joined #salt
06:14 DarkKnightCZ joined #salt
06:18 moth joined #salt
06:19 nmadhok1 joined #salt
06:23 manji joined #salt
06:32 Ayo_ joined #salt
06:34 aidin joined #salt
06:37 flowstate joined #salt
06:39 beneggett joined #salt
06:39 nmadhok joined #salt
06:45 beneggett joined #salt
06:46 aidin joined #salt
06:50 KajiMaster joined #salt
06:54 nmadhok joined #salt
06:57 nmadhok1 joined #salt
06:57 beneggett joined #salt
07:01 beneggett joined #salt
07:02 impi joined #salt
07:03 Ashald joined #salt
07:10 aidin joined #salt
07:22 subsigna_ joined #salt
07:30 upb joined #salt
07:31 Edgan joined #salt
07:35 aidin joined #salt
07:35 flowstate joined #salt
07:41 subsignal joined #salt
07:42 toanju joined #salt
07:42 Edgan joined #salt
07:49 fannet_ joined #salt
08:03 whaity joined #salt
08:06 LordOfLA joined #salt
08:11 Rumbles joined #salt
08:12 slav0nic joined #salt
08:13 evle1 joined #salt
08:31 Rumbles joined #salt
08:33 iceyao joined #salt
08:35 flowstate joined #salt
08:51 jeddi joined #salt
08:53 jeddi joined #salt
08:56 stooj Uhm... I've updated the hash_type on my minion config, and now the master key doesn't match any more. I'm getting the same value on all minions, but `sudo salt-key -F` still gives the original value. I don't *think* someone can be MITM-ing all my minions.
08:57 bantone how did change the values
08:58 bantone and did you do a highstate on the minions afterwards?
08:59 bantone I'm trying to think of reasons why the master doesn't match anymore..
09:01 stooj The key length is much longer, if that helps?
09:01 Edgan joined #salt
09:01 stooj I did do a highstate, yeah
09:01 stooj I cleared the caches first though
09:01 Trauma joined #salt
09:01 bantone hmm
09:02 bantone well that's the correct thing to do..
09:02 stooj :( I have to go - I will return and ask later. Thanks
09:03 bantone okay
09:05 Edgan_ joined #salt
09:08 Edgan_ joined #salt
09:15 Edgan_ joined #salt
09:16 jeddi joined #salt
09:22 Edgan_ joined #salt
09:26 Ayo_ joined #salt
09:31 Edgan_ joined #salt
09:35 flowstate joined #salt
09:35 Edgan_ joined #salt
09:36 liviudm joined #salt
09:46 ronnix joined #salt
10:10 iceyao joined #salt
10:14 dmaiocchi joined #salt
10:18 subsignal joined #salt
10:29 fannet_ joined #salt
10:40 DarkKnightCZ joined #salt
10:43 fracklen joined #salt
11:00 keimlink joined #salt
11:04 aidin joined #salt
11:06 Edgan_ joined #salt
11:11 macheck left #salt
11:11 macheck joined #salt
11:12 Muchoz joined #salt
11:14 poopsplat4 joined #salt
11:17 fracklen joined #salt
11:21 subsignal joined #salt
11:22 TyrfingMjolnir joined #salt
11:25 hopthrisC joined #salt
11:45 fannet_ joined #salt
11:46 cyborg-one joined #salt
11:50 Fiber^ joined #salt
11:55 mapu joined #salt
11:55 cprior There are some examples on the web on how to have "role-based" state applied. My question is: How would I elegantly target all minions, if a role is present at all?
11:56 cprior I am thinking that I probably want to add a pillar key:value when I actually do apply a state based on a "role" (which is a grain in my case)
11:57 cprior Then I could check for the presence of such a pillar item and do apply states
11:58 cprior (The exact usecase is that in a Raspberry Pi cluster I want to have a nginx as reverse proxy to cache all Arch Linux packages for pacman. This works fine already.)
11:58 cprior If you know ITIL, I am looking for elegant ways to put "config items" somewhere within Salt.
12:00 cprior Because obviously I do not want to macke changes to /etc/pacman/mirrorlist if no such mirror does exist in my "cluster".
12:01 abednarik joined #salt
12:02 cprior And an approach must be non-nginx specific, as I have several roles (see http://helotism.de/business/marketing/images/helotism-scope.png ). So I think it is probably best to put this logic in Jinja if/else constructs.
12:02 cprior But maybe someone has other ideas?
12:13 arif-ali joined #salt
12:17 aidin joined #salt
12:18 babilen cprior: Why don't you just use pillars to begin with? What do grains add ?
12:18 babilen How do you assign "roles" to begin with?
12:19 babilen Maybe put them in an externa datasource and use one of the many external pillars as authoritative datasource (cf. https://docs.saltstack.com/en/latest/ref/pillar/all/)
12:20 aidin joined #salt
12:24 slav0nic joined #salt
12:24 subsignal joined #salt
12:28 ronnix joined #salt
12:32 subsignal joined #salt
12:42 cprior I just salt '*' grains.append key val
12:42 cprior and then I run a highstate against a top file with
12:42 cprior 'roles:dhcp-server':
12:42 cprior - match: grain
12:42 cprior - dhcp-server
12:53 evle1 joined #salt
12:58 Miouge joined #salt
13:26 iceyao joined #salt
13:30 arif-ali_ joined #salt
13:31 amcorreia joined #salt
13:32 abednarik joined #salt
13:33 Miouge joined #salt
13:35 Miouge joined #salt
13:38 barmaley joined #salt
13:39 om joined #salt
14:02 cprior joined #salt
14:04 west575 joined #salt
14:07 cprior joined #salt
14:09 Miouge joined #salt
14:14 garphy`aw joined #salt
14:16 aidin joined #salt
14:19 garphy joined #salt
14:30 DEger joined #salt
14:35 Guest55548 joined #salt
14:52 fannet_ joined #salt
15:10 flowstate joined #salt
15:23 riftman joined #salt
15:24 lorengordon joined #salt
15:26 riftman joined #salt
15:31 riftman joined #salt
15:54 Muchoz joined #salt
16:06 brucewang joined #salt
16:22 squishypebble1 joined #salt
16:33 writtenoff joined #salt
16:38 AnalogLifestyle joined #salt
16:51 shawnbutts joined #salt
16:54 mTeK joined #salt
17:09 DarkKnightCZ joined #salt
17:25 arif-ali joined #salt
17:26 nmadhok joined #salt
17:37 west575 joined #salt
17:42 amcorreia joined #salt
17:42 komputes_ joined #salt
17:42 Muchoz joined #salt
17:47 flowstate joined #salt
17:47 dendazen joined #salt
17:54 Edgan_ joined #salt
17:55 danielcb joined #salt
17:55 armyriad joined #salt
18:08 DEger joined #salt
18:20 nmadhok joined #salt
18:24 DEger joined #salt
18:29 DarkKnightCZ joined #salt
18:35 fracklen joined #salt
18:36 flowstate joined #salt
18:40 p3rror joined #salt
18:41 p3rror left #salt
18:41 p3rror joined #salt
18:55 Netwizard joined #salt
18:58 Edgan_ joined #salt
19:09 viq cprior: personally, I'd prefer more "authoritative" approach of managing that via pillars
19:14 Edgan_ joined #salt
19:15 aidin joined #salt
19:20 catpig joined #salt
19:23 apofis joined #salt
19:24 apofis joined #salt
19:36 flowstate joined #salt
19:46 cprior viq: Does your approach base on the hostname of the minion? My main "quest" is to somehow separate hostname from the services that I will be providing on it.
19:49 viq cprior: you assign pillars on master, preferably by minion ID (which is hostname, yes). And then you can act on pillars instead of hostnames
19:54 cprior Yes, the hostname/minion_id features quite prominently everywhere.  My hobby project is basically a bootstrap script for a Raspberry Pi cluster. And the user of that bootstrap script gets asked to supply a) the hostname for what will become the salt master and b) the prefix for the nodes like node0 which then get appended by 1-9
19:55 cprior So I am poking around to find a concept where I might later "move" e.g. storage to another minion. My set of roles is DHCP, DNS, storage, NTP server, proxy/cache for the packetmanager and so on
19:57 cprior RIght now all the "roles" are on the "master". But the "storage" role is a good candidate to be moved about. Also the NTP server, because of space constraints with a RTC board
19:58 cprior THat's why I want to see if I could break out of hostname/naming/conventions
19:59 viq cprior: grains are local info, and manageable "locally" (so whoever has root on machine can change it). pillars are managed on server, and given access to only to minions matching definitions in top.sls (that's why it's not really a good idea to grant pillars based on grain data if they contain sensitive info)
20:01 viq But yes, once you've defined that node0 and node7 are to have roles:ntp, then you could for example do "salt -I roles:ntp state.sls ntpd" (or use it in top.sls to assign states)
20:04 cprior What is noce about roles in pillar, now that I think about it, is that they live mostly on the master. Right now my bash bootstrap script writes into the SD card
20:05 cprior 's file system at creation time of the SD card, what roles it is supposed to start with.
20:05 cprior If I move all aspects about roles into the pillar system, then I need potentially only manipulate a file on the master.
20:06 viq exactly
20:06 viq And you have a single, consistent point of information about who does what
20:07 cprior Yep, I am kind of an IT operations guy, I love that, because you could query it for "inventory"
20:08 cprior And the other interesting thing about "roles" it to write "anti-roles" that clean up when a role get moved away ;)
20:10 viq indeed, yes :)
20:10 viq Also, as people already mentioned, there are external pillar systems, where you could have something possibly making more sense for you managing the data fed into machines. reclass is one of examples, though I don't know much about it.
20:14 cprior I started to finally read into external pillars an hour ago, and it has changed my mind indeed.
20:33 abednarik joined #salt
20:35 onlyanegg joined #salt
20:36 flowstate joined #salt
20:39 cprior Haha, via reclass I came to "sudo insults" which must be activated right away! ROFL
20:55 aasirc joined #salt
21:03 Rumbles joined #salt
21:14 abednarik joined #salt
21:22 Rumbles joined #salt
21:25 onlyanegg joined #salt
21:34 flowstate joined #salt
21:40 onlyanegg joined #salt
21:50 Rumbles joined #salt
21:56 kus joined #salt
22:01 fracklen joined #salt
22:11 linjan_ joined #salt
22:16 haaj joined #salt
22:16 zmalone joined #salt
22:23 west575_ joined #salt
22:24 catpig joined #salt
22:28 west575 joined #salt
22:36 flowstate joined #salt
22:36 zenlot6 joined #salt
22:43 onlyanegg joined #salt
22:53 zmalone joined #salt
22:56 Edgan__ joined #salt
23:10 flowstate joined #salt
23:15 Edgan__ joined #salt
23:40 chutzpah joined #salt
23:41 Edgan__ joined #salt
23:42 keldwud_ joined #salt
23:47 onlyanegg joined #salt
23:47 chutzpah joined #salt
23:47 chutzpah joined #salt
23:53 Edgan__ joined #salt
23:56 Edgan__ joined #salt

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