Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-10-20

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

All times shown according to UTC.

Time Nick Message
00:04 rgbkrk joined #salt
00:07 bhosmer joined #salt
00:13 jfchevrette_ joined #salt
00:13 Ryan_Lane linuxnewbie: if you can't add them via salt directly, you can use cli equivalents like && or ||
00:14 Ryan_Lane onlyif: 'rm /tmp/test && touch /tmp/test'
00:14 Ryan_Lane for instance
00:14 Ryan_Lane of course, that's a terrible example ;)
00:14 linuxnewbie :)
00:14 [ilin] joined #salt
00:14 mua joined #salt
00:15 Ryan_Lane I'd imagine you could also chain execs using require
00:15 Ryan_Lane that's non-ideal, though
00:16 linuxnewbie i have another problem now :( ...i include git package (that should be installed) but it does not and i can't find why
00:16 rgbkrk Hey all. What's the difference between pillar.item and pillar.get?
00:16 linuxnewbie http://pastebin.com/wfttRUaf
00:17 linuxnewbie this is the code
00:17 linuxnewbie Ryan_Lane,
00:18 linuxnewbie the problem is that git is not installed even tho it is included in my sls and i can't understand it why :(
00:18 Ryan_Lane linuxnewbie: ah
00:18 Ryan_Lane you should require: pkg['git']
00:18 Ryan_Lane or whatever the require statement is
00:19 Ryan_Lane also, your unless isn't good
00:19 Ryan_Lane you need to use && rather than ;
00:19 Ryan_Lane you're running two separate statements that will both return a return value
00:19 Ryan_Lane you need to ensure only a single return value is returned
00:19 linuxnewbie Ryan_Lane, ok
00:20 linuxnewbie unless was just to test and make sure the problem is with the git that is not installed
00:21 linuxnewbie if i manage to install git using that include git (which is a git.sls that contain pkg.installed)
00:21 linuxnewbie then i should be ok without unless
00:21 micah_chatt joined #salt
00:23 Ryan_Lane if you use a require on the cmd.script, then it'll ensure git is installed before it runs
00:23 Ryan_Lane or are you only installing that if git doesn't exist?
00:24 Ryan_Lane the git include you're adding will include git/init.sls
00:24 linuxnewbie i need git and vim ...but i don't want to run the autoinstall script unless vim and git are installed
00:24 Ryan_Lane does that file add a pkg: definition for git?
00:24 Ryan_Lane ah, right
00:24 Ryan_Lane add require statementa
00:24 Ryan_Lane *statements
00:25 Ryan_Lane this will make a dependency tree that'll ensure that vim and git are installed
00:25 linuxnewbie where should i put that require ...since i can't put it on the cmd.script ( http://docs.saltstack.com/ref/states/all/salt.states.cmd.html?highlight=cmd.script#salt.states.cmd.script)
00:34 mwillhite joined #salt
00:42 alunduil_ joined #salt
01:00 ajw0100 joined #salt
01:02 rgbkrk joined #salt
01:07 abe_music joined #salt
01:21 mgw joined #salt
01:28 jalbretsen joined #salt
01:30 redondos joined #salt
01:31 puppet joined #salt
01:48 deepakmd_oc joined #salt
01:49 pdayton joined #salt
01:53 indymike joined #salt
02:05 Lue_4911 joined #salt
02:13 Lue_4911 joined #salt
02:18 mgw joined #salt
02:28 josephholsten joined #salt
02:34 redondos joined #salt
02:36 elfixit joined #salt
02:38 octagonal joined #salt
02:46 rgbkrk joined #salt
02:48 DredTiger joined #salt
02:52 ccase joined #salt
03:13 Gareth l/w 6
03:13 Gareth erm
03:35 redondos joined #salt
03:35 redondos joined #salt
03:43 DredTiger joined #salt
03:54 Nexpro1 joined #salt
04:13 jslatts joined #salt
04:13 gadams joined #salt
04:35 elfixit joined #salt
04:37 redondos joined #salt
04:49 carmony Finally making some progress on my vagrant-salt-cloud setup
05:04 josephholsten joined #salt
05:37 anuvrat joined #salt
05:42 Lue_4911 joined #salt
06:04 redondos joined #salt
06:07 mohshami joined #salt
06:08 mohshami Hey guys, I'm new to salt and loving it. I was just wondering, would it be possible to generate some nagios configuration files based on minion grains?
06:11 forrest mohshami, sure why not?
06:12 forrest you could even create your own grains if you wanted, and create them based on that
06:12 mohshami thanks forrest
06:13 mohshami I've been searching for days and have no idea where to start
06:13 mohshami can you please point me?
06:13 forrest start by taking a look at the grain docs
06:13 forrest http://docs.saltstack.com/topics/targeting/grains.html
06:13 mohshami that I've already gone through, I already wrote my.cnf files with jinja based on grains
06:14 forrest so the files get populated based on grain data?
06:14 mohshami yep. the thing is, I'm not sure how to collect minion names and generate the files on the master server
06:15 mohshami I can store a file with minion a data on minion a, but not another minion or the master
06:15 mohshami that's what I'm looking for
06:15 mohshami or am I going in the wrong direction?
06:15 forrest oh I see... hmm I can't think of a project that does that...
06:15 forrest a lot of the time data like that is stored in the pillar file
06:16 mohshami there were times when I just forget to add a new server to nagios
06:16 mohshami I'm too lazy :D
06:16 forrest yea I don't blame you
06:17 mohshami I was looking at a cluster I co administer with another guy
06:17 forrest Yea I honestly don't know how to do that where you'd actually 'build' a list of machines based off collecting the information...
06:17 mohshami the DR site is totally out of sync with production :'(
06:17 forrest I mean you could try something like http://docs.saltstack.com/topics/reactor/index.html
06:18 forrest yea DR is always out of sync heh
06:18 mohshami I'll check it out, thanks a million mate :)
06:18 forrest yea, if you can't figure it out, post on the google group mailing list
06:18 forrest lots of activity on there, and the devs are there all the time
06:18 mohshami will do
06:18 mohshami awesome
06:18 forrest then I can see the answer too :P
06:18 mohshami :)
06:18 mohshami I've been out of the system administration loop for 3 years
06:19 mohshami it feels great to be back
06:19 forrest haha, yea it's a good time to be in
06:19 forrest Depending on where you live, if you can, try to attend a 'devopsdays' conference
06:19 mohshami sadly I live in the middle east
06:19 forrest most of them are done for the year, but there should be some more kicking off
06:19 mohshami only thing we have going well here is internet connectivity :D
06:20 forrest Ahh yea, the closest one would have been in Tel Aviv then, which still isn't really close
06:20 forrest Hey, internet = infinite knowledge!
06:20 mohshami it's a few hours by car
06:20 forrest could be worse
06:20 mohshami but I need a visa
06:21 forrest Ahh ok, which coultrny are you in? Only, Syria, Iran, and Egypt are a few hours away I think? My knowledge of that area isn't great for driving distances.
06:21 anuvrat joined #salt
06:21 mohshami Jordan
06:21 forrest Oh ok cool
06:21 mohshami Egypt and syria are almost as close
06:21 mohshami but we're the closest
06:21 forrest yea just next door
06:22 ccase_ joined #salt
06:22 mohshami awesome man, thanks a lot for your help :)
06:22 ajw0100 joined #salt
06:23 forrest yea np, good luck! You might try back tomorrow/Monday (in the states) during the day, UtahDave works at SaltStack and is a helpful dude.
06:23 mohshami will do
06:23 mohshami thanks again :)
06:23 forrest np
06:54 ajw0100 joined #salt
06:58 Vivek joined #salt
07:05 crashmag joined #salt
07:10 Lue_4911 joined #salt
07:16 ajw0100 joined #salt
07:30 ajw0100 joined #salt
07:40 jefimenko joined #salt
08:00 Boohbah joined #salt
08:18 hjubal joined #salt
08:24 berto- joined #salt
08:25 matanya joined #salt
08:30 matanya joined #salt
08:33 pentabular joined #salt
08:45 tomeff joined #salt
08:51 ramteid joined #salt
09:03 jeblair joined #salt
09:06 redondos joined #salt
09:26 redondos joined #salt
09:26 redondos joined #salt
09:32 jeblair joined #salt
09:36 sebgoa joined #salt
09:38 druonysuse joined #salt
09:46 zooz joined #salt
10:04 taylorgumgum joined #salt
10:17 jumperswitch joined #salt
10:24 josephholsten joined #salt
10:32 taylorgumgum joined #salt
10:56 bhosmer joined #salt
10:57 joehh acsir: working on it now - couple of packaging issues to resolve (non dfsg files in original tar.gz)
11:00 joehh it being 0.17.1 for debian
11:10 linjan joined #salt
11:37 acsir joined #salt
11:42 kiorky utahcon: s0undt3ch any chance you can have a look to https://github.com/saltstack/salt/issues/7987
11:42 kiorky basepi: ^
11:42 kiorky (hi) :)
12:04 the_drow joined #salt
12:04 the_drow basepi: ping?
12:14 TJ1980 joined #salt
12:21 monokrome joined #salt
12:27 monokrome joined #salt
12:28 monokrome joined #salt
12:44 TJ1980 joined #salt
12:55 TJ1980 joined #salt
12:58 TJ1980 joined #salt
13:06 NV oh yeah, that bug mentioned above minds me of a situation i've run into a few times - when using salt to manage a minions config (and autorestart salt afterwards) it makes the running state.highstate command hang when the minion restarts
13:06 NV any chance of a smarter restart model that finishes currently executing jobs before restarting? (ie, close listener socket, start new instance, but dont terminate until already running tasks all complete)
13:06 NV or some other way around the behaviour?
13:07 NV or isn't it possible to do just yet (feature request?)
13:08 rgbkrk joined #salt
13:12 jslatts joined #salt
13:18 NV aww sad, no mips binaries (at least not in the debian repo)
13:18 NV (well, for the dependancies anyway)
13:19 pdayton joined #salt
13:19 anuvrat joined #salt
13:27 qba73 joined #salt
13:28 the_drow joined #salt
13:29 the_drow basepi: ping?
13:34 ninkotech joined #salt
13:37 __number5__ quick question: Can I use s3fs and roots as fileserver_backends as the same time?
13:44 anuvrat joined #salt
13:53 rgbkrk joined #salt
13:58 jbunting joined #salt
14:11 gildegoma joined #salt
14:15 icarus joined #salt
14:24 anuvrat joined #salt
14:29 rgbkrk joined #salt
14:36 elfixit joined #salt
14:37 teebes joined #salt
14:44 matanya joined #salt
14:44 matanya joined #salt
15:06 anuvrat joined #salt
15:15 jumperswitch_ joined #salt
15:15 cnelsonsic joined #salt
15:18 avienu joined #salt
15:18 avienu Good morning, anyone here?
15:18 cnelsonsic left #salt
15:39 acsir joined #salt
15:50 the_drow avienu: yup
15:50 the_drow avienu: kinda :)
15:50 cshuman joined #salt
15:56 cshuman joined #salt
15:58 redondos joined #salt
16:20 mwillhite joined #salt
16:24 yidhra joined #salt
16:32 felixhummel joined #salt
16:39 ricicle left #salt
16:42 xmltok joined #salt
16:44 mwillhite joined #salt
16:50 felixhummel_ joined #salt
16:51 m0hit joined #salt
16:59 elfixit joined #salt
17:04 Gareth If I want to set specific data for one node.  What is the best place to set that?  Pillar?  Grains?  Something else?
17:12 cachedout joined #salt
17:13 NV Gareth: depends on the data and where you want to set it
17:13 NV pillars are set master-side
17:13 NV grains are set minion-side
17:13 NV so grains are where you would set things about the vm (ideally when the vm is built)
17:13 NV whereas pillar is where you would set configuration data values, etc for the host
17:14 Gareth Yeah. I was thinking pillar would be the best place to set it.
17:15 NV that said though I keep role data in pillar, even though most folk keep it in grains
17:15 NV because i like to keep it managed centrally
17:16 Gareth yeah.  agreed.  I like to keep most data central.  thanks.
17:20 ajw0100 joined #salt
17:22 SpX joined #salt
17:30 cachedout joined #salt
17:39 Damoun joined #salt
17:40 jcsp joined #salt
17:50 xinkeT joined #salt
17:52 xmltok joined #salt
17:54 basepi the_drow: still need me? I'm on briefly.
17:54 basepi kiorky: what did you want me to look at?
17:58 kiorky basepi: already merge by thomas :p
17:59 basepi Cool. =)
17:59 basepi Tom is pretty quick like that.
18:02 krissaxton joined #salt
18:06 DredTiger joined #salt
18:07 ckao joined #salt
18:09 fllr joined #salt
18:11 fllr Hey guys. What is wrong with this postgres state? https://gist.github.com/anonymous/5643cbe29276681d9517 It's telling me that it can't find role bkpk, except I created it one step before...
18:18 Lue_4911 joined #salt
18:22 cachedout joined #salt
18:23 berto- joined #salt
18:33 TJ1980 joined #salt
18:34 krissaxton joined #salt
18:45 zooz joined #salt
18:59 ajw0100 joined #salt
19:01 cachedout joined #salt
19:07 TheCodeAssassin joined #salt
19:10 ajw0100 joined #salt
19:17 redondos joined #salt
19:17 redondos joined #salt
19:18 pdayton joined #salt
19:30 rawzone joined #salt
19:32 pentabular joined #salt
19:36 steveoliver i'm just getting started with salt — master accepted only minion's key, but $ salt '*' test.ping doesn't return anything from that minion, and minion continues to say "Waiting for minion key to be accepted by the master"
19:37 steveoliver salt-key p <minion_id> matches minion key
19:40 ajw0100 joined #salt
19:54 elfixit joined #salt
20:00 v0id_ joined #salt
20:09 kiorky steveoliver: launch them in foreground
20:09 kiorky to debug
20:09 kiorky steveoliver: (salt-<master | minion> -l all)
20:09 steveoliver kiorky: k...
20:10 kiorky (in 3 shells, one with the master, one with the minion, and one where you do the salt '*' test.ping
20:10 kiorky )
20:10 kiorky steveoliver: or check also the logs in /var/log/salt
20:10 steveoliver python still has port 4505 after service salt-master stop… ?
20:11 kiorky steveoliver: ps -> kill -9
20:12 kiorky steveoliver:
20:12 steveoliver kiorky: why all the multiple python salt-master -d ?
20:12 steveoliver something i did on my end?
20:13 steveoliver ok, both loaded fg
20:14 steveoliver kiorky: k, issued salt '*' test.ping again — still nothing output...
20:15 steveoliver what should i be looking for on master?
20:15 jbub joined #salt
20:16 steveoliver still waiting for minion key to be accepted by master….  should i deny that key and try again?
20:17 steveoliver (master already accepted it)
20:18 steveoliver it must be something on my end..  deleted key, then ran minion again… key doesn't show up pending on master...
20:18 bhosmer joined #salt
20:18 steveoliver the only warning on minion is "The function 'grains()' defined in '/usr/lib/python2.7/dist-packages/salt/loader.py' is not yet using the new 'default_path' argument to `salt.config.load_config()`. As such, the 'SALT_MINION_CONFIG' environment variable will be ignored"
20:19 Ryan_Lane joined #salt
20:20 elfixit joined #salt
20:24 linjan joined #salt
20:27 steveoliver kiorky: ^^
20:30 druonysuse joined #salt
20:32 SpX left #salt
20:34 steveoliver i think something's wrong with the master — rebuilding
20:35 ajw0100 joined #salt
20:42 steveoliver rebuilt master — salt-key -L ==> empty
20:53 isomorphic joined #salt
20:55 elfixit joined #salt
21:04 cewood joined #salt
21:17 steveoliver grr… salt-master is in a coma
21:29 rgbkrk joined #salt
21:39 ajw0100 joined #salt
21:39 krissaxton joined #salt
21:41 ronc joined #salt
21:48 krissaxton joined #salt
21:49 jbub joined #salt
22:01 ajw0100 joined #salt
22:05 pdayton joined #salt
22:18 ronc joined #salt
22:18 jbunting joined #salt
22:24 cshuman joined #salt
22:30 brutasse joined #salt
22:30 derelm joined #salt
22:31 isomorphic joined #salt
22:34 cshuman joined #salt
22:43 isomorphic joined #salt
22:59 cshuman joined #salt
23:02 raadad joined #salt
23:02 raadad hey guys
23:02 raadad I have a masterless minion
23:03 raadad and I want a way I can use jinja templates in my sls files to change from dev to prod configurations
23:03 raadad whats the best way to do this
23:16 futureboy joined #salt
23:16 futureboy left #salt
23:30 jbunting joined #salt
23:30 troyready joined #salt
23:40 MohShami joined #salt
23:41 MohShami hey guys, I was wondering if salt master can gather information about minions and generate some config files (hosts file, nagios files, ... etc) based on minion grains or pillars or some other system. I've been googling for days with no luck
23:42 robawt MohShami: i think that'd be possible, how do you plan to gather the material?
23:43 robawt it sounds like a custom module might be the ticket, or even a script that takes advantage of the salt API to do it for you
23:43 MohShami robawt, that's where I'm stumbed. I can for example set a role grain and use that
23:43 robawt MohShami: most definitely you can set a grain, either via a file.managed file or setting a grain over the network
23:44 MohShami that way I can for example configure nagios to add new hosts automatically, right?
23:44 robawt MohShami: that's just my question: what mechanism is going to take this data and generate the proper file for nagios?
23:44 robawt if you have a mature nagios config, there will be a drop directory that you can put host info
23:45 MohShami lets say I have a bunch of web, postfix, and mysql servers
23:45 MohShami I'd just have a jinja template for each, and use that
23:46 robawt MohShami: perhaps you could look into generating pillar from grains, and utilzing that to generate the configs with jinja loops
23:46 MohShami robawt, that would mean I have to install salt-minion on the master server, or am I mitaken?
23:47 robawt MohShami: it could, but it is common practice to have the master as its own minion
23:47 robawt that way you can run the same users/groups/basic settings on ALL machines
23:48 MohShami can you point me to the location of some docs to get me started?
23:50 avienu joined #salt
23:55 robawt MohShami: at this point I would say to start getting familiar with the grains system, (http://docs.saltstack.com/topics/targeting/grains.html) and then tomorrow when more of the Salt guys are online, ask about "generating pillar"
23:55 MohShami will do
23:55 MohShami thanks a million robawt :)
23:56 robawt don't thank me yet :D
23:56 MohShami :D
23:56 MohShami I'm familiar with grains
23:56 MohShami I'll double check the docs and research generating pillar till I manage to talk to some of the Salt guys
23:57 robawt MohShami: http://docs.saltstack.com/ref/modules/all/salt.modules.grains.html#module-salt.modules.grains might be a good next step
23:57 robawt seeing how to use grains within the "executable modules" vs the salt state ones
23:59 __number5__ AFAIK, pillar is static unless you have ext_pillar modules

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