Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-05-03

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

All times shown according to UTC.

Time Nick Message
00:00 zemm joined #salt
00:01 scbunn joined #salt
00:08 otter768 joined #salt
00:09 ajw0100 joined #salt
00:13 bfoxwell joined #salt
00:19 aquassaut joined #salt
00:23 dalexander joined #salt
00:27 scbunn joined #salt
00:42 markm joined #salt
00:51 clintberry joined #salt
00:56 scbunn joined #salt
01:01 markm_ joined #salt
01:02 cornfeedhobo joined #salt
01:03 cornfeedhobo howdy. i am finding plenty of info about running salt "masterless", but since that is the term used for a single node, i can't find anything about running masterless meaning off a git repo. i was hoping someone here could point me in the right direction
01:08 hemebond cornfeedhobo: What do you mean by "off a git repo"?
01:09 hemebond Masterless means no Salt Master, just a minion with a local config.
01:10 markm joined #salt
01:10 cornfeedhobo i see
01:11 bhosmer_ joined #salt
01:13 markm_ joined #salt
01:14 cornfeedhobo i am inheriting a sprawling puppet code base and trying to explore salt for the first time. still trying to grab a hold of the general concepts
01:14 thayne joined #salt
01:20 cornfeedhobo hemebond: i think what i am looking for is gitfs
01:24 markm_ joined #salt
01:38 edrocks joined #salt
01:40 thayne joined #salt
01:45 scoates joined #salt
01:45 ajw0100 joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt | 2014.7.5 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
01:54 ajw0100 joined #salt
01:57 hemebond You want to store your states in a Git repository?
01:58 hemebond *in Git repositories?
02:07 ajw0100 joined #salt
02:12 cornfeedhobo as understand things so far, yes.
02:16 ajw0100 joined #salt
02:29 matthew-1arlette joined #salt
02:36 ajw0100 joined #salt
02:37 favadi joined #salt
02:38 otter768 joined #salt
02:47 jY joined #salt
02:49 donmichelangelo joined #salt
02:50 fusionx86 joined #salt
02:55 cberndt joined #salt
02:57 pdayton joined #salt
03:00 dendazen joined #salt
03:02 ajw0100 joined #salt
03:04 FeatherKing joined #salt
03:05 otter768 joined #salt
03:05 Hell_Fire joined #salt
03:20 pdayton joined #salt
03:20 favadi left #salt
03:47 AlexStraunoff joined #salt
03:47 theproxy joined #salt
03:48 bhosmer_ joined #salt
03:57 ajw0100 joined #salt
03:58 theproxy joined #salt
04:01 writtenoff joined #salt
04:02 markm joined #salt
04:02 echo joined #salt
04:11 fusionx86 joined #salt
04:29 bash124512 joined #salt
04:49 thayne joined #salt
05:08 beneggett joined #salt
05:11 synestine joined #salt
05:12 theproxy joined #salt
05:21 zions joined #salt
05:43 steffo joined #salt
05:47 stoogenmeyer joined #salt
06:11 steffo joined #salt
06:23 evle joined #salt
06:35 a7xr joined #salt
06:36 catpig joined #salt
06:52 synestine joined #salt
06:59 Auroch joined #salt
07:04 MK_FG joined #salt
07:04 MK_FG joined #salt
07:11 _JZ_ joined #salt
07:25 cberndt joined #salt
07:31 theproxy joined #salt
07:32 linjan joined #salt
07:33 c10 joined #salt
07:43 steffo joined #salt
07:44 Fiber^ joined #salt
07:50 bhosmer_ joined #salt
07:56 Hell_Fire joined #salt
08:17 steffo joined #salt
08:33 JayFK joined #salt
08:44 ph8 joined #salt
08:48 theproxy joined #salt
08:56 viq_ joined #salt
09:01 echo joined #salt
09:06 CeBe joined #salt
09:13 steffo joined #salt
09:24 viq joined #salt
09:29 otter768 joined #salt
09:35 jasonrm joined #salt
09:41 peters-tx joined #salt
09:51 bhosmer_ joined #salt
09:56 steffo joined #salt
09:56 thomaschaaf joined #salt
09:57 thomaschaaf hello is it possible to use gitfs_remotes with file_client local?
09:57 thomaschaaf I am using varnish + salt and would like to use the https://github.com/saltstack-formulas/postgres-formula
10:06 ndrei joined #salt
10:15 linjan joined #salt
10:16 jasonrm joined #salt
10:27 babilen thomaschaaf: sure, just list "- git" and "- roots" in fileserver_backend (cf. http://docs.saltstack.com/en/latest/ref/configuration/master.html#fileserver-backend )
10:28 babilen Ah ... sorry, misunderstood.
10:28 philpep joined #salt
10:29 fbergroth joined #salt
10:29 babilen I don't think that works, but nothing stops you from checking out the formula locally and defining appropriate file_roots entries
10:48 farcaller is it possible to reuse output of one state in other state?
10:49 hemebond farcaller: Probably not without a lot of work.
10:49 hemebond That's not really how states are meant to work.
10:49 hemebond You'd probably need a custom runner or something.
10:49 hemebond Or maybe update the mine data in the first state/
10:50 farcaller can I give a practical example of what I'm trying to achieve for a better suggestion?
10:51 farcaller I'm trying to move over to salt from a very weird ansible configuration, that I actually can hardly read :)
10:52 farcaller the first issue I had is that lots of state changes depend on `ceph osd dump|grep $uuid` invocation (i.e. apply states iff grep fails)
10:53 farcaller I think it's solvable with pyobjects and salt.cmd.run_all, and then defining states based on the output
10:53 farcaller the problem I'm facing now is a state that does `ceph osd create $uuid` and returns the numeric id in the output
10:53 farcaller which is used for all other commands
10:54 farcaller I can surely make `ceph osd create` call with salt.cmd.run, and go on with that
10:54 farcaller but really, it's an actual state change
10:55 keimlink joined #salt
10:57 hemebond Unfortunately I can't really help further as I've never used Ansible and I don't understand your situation.
10:57 hemebond e.g., `ceph osd create` is jibberish to me :-)
10:58 farcaller basically, there's a recipe to set up ceph, which is mostly based on executing commands in order
10:58 farcaller ceph osds are identified by index, but are created based on uuid
10:59 farcaller so, e.g. given uuid1 and uuid2 on a clean machine, two calls to `ceph osd create` will return 0 and 1
10:59 farcaller and those indices could later be used for next steps
11:00 hemebond I'm not sure but I'd probably use a script to do those commands.
11:00 farcaller if I need to add more osds, I provide new uuids, and `ceph osd create` will return 2, ... and I can operate on them
11:00 farcaller well, I used to have a shell script before ansible :)
11:02 hemebond If commands depend on the output of previous commands and are executed sequentially I would use a script. But then I'm fairly new to Salt.
11:03 farcaller well, at that point I can make a salt module ceph_osd and script it in python
11:04 hemebond That too.
11:04 farcaller I'm not sure if it's a proper "salt" way of solving my issue though
11:04 hemebond Usually a module for installing and configuring stuff is the way to go.
11:04 hemebond I've written a couple of very simple modules so far for managing some software.
11:07 farcaller there's no way to test salt other than running highstate and observing the results, right? i.e. is there something like ChefSpec for chef?
11:07 hemebond hmm, you can run highstate with a switch to test it.
11:08 hemebond test=True apparently
11:08 hemebond salt 'server' state.highstate test=True
11:09 hemebond That doesn't look right. Lemme check the docs.
11:12 hemebond Apparently that's the correct parameter.
11:14 bhosmer_ joined #salt
11:15 Guest15 joined #salt
11:17 farcaller yes, but if I incapsulate all logic into my module code, it's up to me to makes stubs for test=True
11:24 CeBe1 joined #salt
11:30 otter768 joined #salt
11:31 Guest15 joined #salt
11:31 keimlink joined #salt
11:53 mapu joined #salt
12:02 stoogenmeyer joined #salt
12:04 JayFK joined #salt
12:07 bhosmer_ joined #salt
12:19 aquassaut joined #salt
12:25 notnotpeter joined #salt
12:40 dendazen joined #salt
12:55 JDiPierro joined #salt
13:14 thomaschaaf joined #salt
13:15 thomaschaaf how would I go about adding a custom apt source with salt? I found one solution which would simply copy a file but that is probably not the right solution
13:19 farcaller there's pkgrepo.managed
13:20 nkuttler thomaschaaf: i'd probably add a file somewhere in /etc/apt/sources.list.d/
13:21 thomaschaaf I will try the pkgrepo thx :)
13:27 Nebraskka there is no easy way to migrate from 2014 ver to 2015? using deb repository
13:27 Nebraskka or it's in dev branch currently?
13:31 otter768 joined #salt
13:40 Berty_ joined #salt
13:42 sandah joined #salt
13:44 scoates joined #salt
13:46 bhosmer_ joined #salt
13:48 scbunn joined #salt
13:56 Setsuna666__ joined #salt
14:05 bhosmer_ joined #salt
14:08 scoates joined #salt
14:15 tmh1999 joined #salt
14:16 tmh1999 joined #salt
14:18 johnzorn joined #salt
14:19 tmh1999 joined #salt
14:20 ek6 it possible to include a specific id ?  you can exclude one easily enough but what about include?
14:22 tmh1999 joined #salt
14:23 tmh1999 joined #salt
14:25 tmh1999 left #salt
14:29 JDiPierro joined #salt
14:36 rojem joined #salt
14:47 JDiPierro joined #salt
14:47 anotherZero joined #salt
14:50 Berty_ joined #salt
14:51 bfoxwell joined #salt
14:58 bhosmer_ joined #salt
15:06 zemm joined #salt
15:28 Berty_ joined #salt
15:32 otter768 joined #salt
15:36 ndrei joined #salt
15:39 iggy Nebraskka: 2015.2 isn't out yet
15:40 Nebraskka iggy, thanks :)
15:40 ek6 feb 65 was a sad guess..just sad
15:43 ndrei joined #salt
15:52 cadelete joined #salt
15:53 cadelete joined #salt
16:01 ajw0100 joined #salt
16:06 cadelete joined #salt
16:11 fusionx86 joined #salt
16:11 iggy :(
16:12 jngd joined #salt
16:15 ek6 iggy: you happen to see my include question ?
16:15 iggy I didn't understand it
16:16 ek6 i just want to include a specific id from a given sls    think   state.sls_id except as part of include:
16:17 iggy I personally would break it up, and include the single state wherever it was needed
16:18 ek6 yeah thats the fallback of course...i just dont like having state pieces that small if i can avoid it..so was hoping to avoid it
16:18 ek6 there is the way to exclude specific id's so was just hoping for the reverse
16:18 ek6 but thx anyway
16:20 iggy include + exclude everythinge else?
16:23 thayne joined #salt
16:23 ek6 yeah also doable...  i just have a bunch of states that have ordering 1,2,3,4,5 (no not with order) for a certain setup but for others i just need '3'  I cant include '3' in the larger state because then the ordering is a pita and harder for others to parse.  and i prefer not to duplicate '3' in sep smaller state
16:23 ek6 if that babble made any sense....
16:28 hasues joined #salt
16:29 rojem joined #salt
16:33 JDiPierro joined #salt
16:36 hasues left #salt
16:38 ckao joined #salt
16:38 keimlink joined #salt
16:39 joeto joined #salt
16:39 ek6 ok totally different subject... bug or no bug? if on user.present you set createhome: false that in the salt output it still shows home: /home/bgp003   it doesnt CREATE /home/bgp003  but I think its odd that shows up in the change list
16:51 linjan joined #salt
16:54 mordonez joined #salt
16:56 iggy oddity?
16:57 ek6 exactly...id call it odd..which i didnt just auto file a bug...
16:57 ek6 but if others started saying it was a bug id go ahead and file it not really having a strong opinion
16:59 iggy clarification issue?
17:00 primechuck joined #salt
17:00 Nazca__ joined #salt
17:01 ek6 shrug  doesnt sound like its even worthy...i mean it just caused me all of 10 seconds of WTF and to double check the dirs were not in fact created
17:04 stoogenmeyer joined #salt
17:05 primechuck joined #salt
17:24 ageorgop joined #salt
17:25 scbunn joined #salt
17:25 MatthewsFace joined #salt
17:42 otter768 joined #salt
17:42 Berty_ joined #salt
17:47 joren joined #salt
17:47 Guest15 joined #salt
17:50 clintberry joined #salt
17:58 stoogenmeyer joined #salt
17:58 rideh joined #salt
18:14 otter768 joined #salt
18:23 primechuck joined #salt
18:25 primechu_ joined #salt
18:27 primechuck joined #salt
18:32 _JZ_ joined #salt
18:37 dalexander joined #salt
18:39 farcaller I'm not exactly sure how to use grains in top.sls, any example file?
18:40 _JZ_ joined #salt
18:40 srazzell joined #salt
18:40 bdf_ farcaller: http://docs.saltstack.com/en/latest/ref/states/top.html#other-ways-of-targeting-minions
18:41 farcaller ah
18:41 farcaller what is the base anyway?
18:41 bdf_ just another environment
18:41 bdf_ personally I don't use it
18:43 bdf_ an example use case is if you have states common to dev and prod environments
18:44 bdf_ I use gitfs for state management though, and actually merge from dev to prod
18:44 bdf_ I dont like the idea that there are a class of states that dont go through a lifecycle.
18:45 srazzell Hey everyone, just started looking into salt. Is there a way to get live output from running a python process on a minion?
18:48 bdf_ srazzell: perhaps one of the other returners other than the default (such as the elasticsearch returner) could handle that for you
18:49 bdf_ but in all honesty, I would personally go around salt for that and use something like logstash :)
18:50 bdf_ or zeromq or rabbitmq... or a message bus
18:50 bdf_ the python script itself could send salt events across the message bus if written to do so.
18:54 srazzell hmm. i'll check those out
18:55 kermit joined #salt
18:56 srazzell thanks!
19:08 kermit joined #salt
19:09 djinni` joined #salt
19:19 brianfeister joined #salt
19:52 _JZ_ joined #salt
19:56 cedwards I just discovered that two of my systems are populating the 'fqdn_ip4' grain with '127.0.0.1' instead of the eth0 IP.
19:56 cedwards any guesses on how that's determined or how to resolve it?
19:57 fusionx86 joined #salt
20:07 primechuck joined #salt
20:18 clintberry joined #salt
20:19 dingo cedwards: your /etc/hosts, combined with what it considers its 'hostname'
20:20 dingo if you name your system 'devbox' and /etc/hosts has a 127.0.0.1 entry for 'devbox', then its fqdn_ip4 would be 127.0.0.1
20:20 clintber_ joined #salt
20:20 brianfei_ joined #salt
20:22 cedwards thanks. i'll check that.
20:24 otter768 joined #salt
20:31 thayne joined #salt
20:36 echo_ joined #salt
20:38 BlackFX left #salt
20:47 chiui joined #salt
21:00 bhosmer_ joined #salt
21:02 Berty_ joined #salt
21:10 FeatherKing joined #salt
21:15 echo joined #salt
21:19 thayne joined #salt
21:22 syed joined #salt
21:24 syed I'm trying to create an app cluster using salt-cloud on ec2. I need to access the public IP of one of the VMs to include it in a config file, I found https://github.com/saltstack/salt-contrib/blob/master/grains/external_ip.py but not sure how I use it
21:25 syed salt '*' grains.external_ip does not give me anything
21:25 catpigger joined #salt
21:27 syed neither does salt -G 'roles:demo' grains.item external_ip
21:27 syed I guess I need some way of installing the contrib pkg on the minion
21:35 syed I just copy/pasted that file in the minion's /usr/lib/python2.7/dist-packages/salt/grains directory .... the grain external_ip now shows up with the public IP
21:38 echo joined #salt
21:51 anotherZero joined #salt
21:52 pmcg joined #salt
22:01 ndrei joined #salt
22:19 cberndt joined #salt
22:25 otter768 joined #salt
22:28 c10 joined #salt
22:38 viq joined #salt
22:40 ajw0100_ joined #salt
22:48 Singularo joined #salt
22:48 Singularo joined #salt
22:51 thayne joined #salt
22:52 scbunn joined #salt
23:01 bhosmer_ joined #salt
23:07 thayne joined #salt
23:09 otter768 joined #salt
23:09 keimlink_ joined #salt
23:20 bfoxwell joined #salt
23:22 scoates joined #salt
23:24 brianfeister joined #salt
23:27 bluenemo joined #salt
23:28 murrdoc joined #salt
23:39 JDiPierro joined #salt
23:44 c10 joined #salt
23:51 echo joined #salt
23:57 kermit joined #salt

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