Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-10-25

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

All times shown according to UTC.

Time Nick Message
00:03 UtahDave nice
00:04 wibberwock joined #salt
00:05 wibberwock what's the canonical way of sharing grains among a nodegroup
00:05 wibberwock for example, i have 3 nodes that are part of a node group, and i need to set up iptables to allow port 80 traffic between all 3
00:06 log0ymxm joined #salt
00:08 ctdawe joined #salt
00:09 gildegoma joined #salt
00:23 UtahDave wibberwock: Hey, I have to leave right now, but here's an example using the live peer interface: https://gist.github.com/UtahDave/5217462
00:23 wibberwock Thanks!
00:36 taylorgumgum is there a way to force file.copy to overwrite?
00:41 forrest taylorgumgum, use the force option
00:41 forrest http://docs.saltstack.com/ref/states/all/salt.states.file.html#salt.states.file.copy
00:43 taylorgumgum ahh, i was looking at the modules docs, not state docs - modules doc doesn't advertise a force option. Thanks!
00:44 forrest yea np
00:44 jdenning joined #salt
00:44 forrest you're using it in a state right?
00:45 wibberwock we can't use jinja in pillars, right?
00:46 kula i use jinja in pillars all the time. just remember that its executed on the master, not on the minion.
00:48 wibberwock does it make sense to use jinja in pillar to count the number of nodes to use in state files?
00:48 forrest what do you mean wibberwock?
00:49 xmltok anyone using salty vagrant? what do you do if you depend on another state, for example if you have an ldap state that needs to be applied before you install an application, and that ldap state is in another repo. also, what do you do if you depend on data in a custom grain?
00:50 wibberwock so i have a set of nodes.  when i execute high state, i want my state files to be conditional on the number of nodes with a given grain value
00:51 forrest wibberwock, oh I see, Hmm I haven't seen something like that done, for what purpose do you need to do that? You can't apply changes based on other grain data?
00:52 wibberwock i bring up/down dev clusters often.  some of them have 3 db nodes, so i need to set up replication.  some only have 1 db node, so i don't need to do that step
00:53 forrest Hmm, well I can't think of why you couldn't do that, but I also haven't seen it done, so I'm not sure
00:53 druonysuse joined #salt
00:53 wibberwock also, the minions in each cluster need to know each others ip/dns, so i'd like to collect that once on the master, then publish it as pillars to each minion
00:54 forrest ahh ok
00:54 kula the only hard part i can see is getting the count of all the hosts that have a particular grain set into something you can read during the pillar creation. your second thing, though, sounds like a salt mine task
00:54 mafrosis xmltok: you can define grains in the salt-minion config for when you start the vagrant VM
00:54 forrest kula, yea I agree on the salt mine. I wonder if you could work around the node building via usage of reactor?
00:55 xmltok mafrosis: aha thanks
00:55 wibberwock yeah utahdave's example would work fine for the second thing, but it would be nice to have that as static data (pillar) versus called every time
00:55 Teknix joined #salt
00:55 wibberwock so each minion in a cluster would have pillar data on all the other minions int he clutster
00:56 mafrosis xmltok: you can also install multiple paths in the file_roots option in your salt-minion conf
00:56 xmltok mafrosis: ok, so the idea would be to clone the dependencies into other directories and configure those paths in file_roots
00:56 mafrosis that way you can reference several repos of salt states by configuring Vagrantfile to import them all
00:56 mafrosis does that make sense?
00:56 mafrosis s/import/mount/
00:57 xmltok thats not too different than chef, i think. berkshelf in chef is pretty awesome for that, i can see that as a gap to fill for salt
00:57 xmltok you can specify git repos or chef servers to pull down dependency cookbooks
00:57 mafrosis I'm actually doing both that things you're asking for in my setup here
00:57 UtahDave wibberwock: you can also use the Salt Mine
00:58 xmltok with a tool or just manually cloning/configuring the dependencies?
00:58 Gifflen joined #salt
00:59 mafrosis my setup is fairly simple so I've been doing it manually
01:00 mafrosis for multi-server tests I've been running in EC2 with salt-cloud
01:02 xmltok as long as i can work around it, i can worry about developing a tool to manage it later if it becomes a burden
01:02 xmltok thanks
01:02 mafrosis no probs
01:03 Furao joined #salt
01:06 ajw0100 joined #salt
01:09 wibberwock so what does jinja look like in pillars? i'm trying to do it like in utahdave's iptables example, and pillar.data returns an _error saying render failed
01:09 wibberwock my pillar sls is just loadbalancer: {{ salt['publish.publish']('myserver.mydomain', 'test.ping') }}
01:10 wibberwock myvar: {{ salt['publish.publish']('myserver.mydomain', 'test.ping') }}
01:10 louse joined #salt
01:12 louse Does salt integrate well with google compute engine?
01:15 oz_akan_ joined #salt
01:16 forrest louse, all I see is this issue from a few months back
01:16 forrest https://github.com/saltstack/salt-cloud/issues/751
01:16 mafrosis louse: I haven't heard of anyone using it there
01:17 mafrosis salt-cloud doesn't have it yet
01:18 louse okay, thanks
01:20 boltbolt Quick question: is there a way to print arbitrary output in a salt state and/or force a failure if a particular condition isn't met?
01:20 oz_akan_ joined #salt
01:21 mafrosis boltbolt: I dont think so - I think by definition you server is put into a certain "state" by your SLS states, and failure would be in inability to do so
01:22 Teknix joined #salt
01:22 mafrosis can you be more specific about what you're trying to do? there's probably another way
01:22 boltbolt mafrosis: sure
01:23 boltbolt I'm setting up a database.  By definition, my database servers are either masters or slaves.
01:24 boltbolt I'm sharing some state between the two database states, roles.db.master, roles.db.slave.
01:24 boltbolt they both include roles.db
01:24 boltbolt Actually, I have a better idea.
01:24 boltbolt Nevermind.
01:24 boltbolt Thanks!
01:24 boltbolt But there's no equivalent to Puppet's fail()?
01:24 boltbolt Which blows up with a specified message.
01:25 mafrosis I'm not familiar with puppet - but no, I don't think so
01:25 wibberwock joined #salt
01:25 mafrosis might be worth asking again when there's more people about :)
01:26 boltbolt Sho' nuff.
01:26 boltbolt Thanks!
01:34 Nexpro joined #salt
01:37 Drawsmcgraw joined #salt
01:41 mwillhite joined #salt
01:44 mgw joined #salt
01:49 druonysus joined #salt
01:51 mwillhite joined #salt
01:51 jdenning joined #salt
01:56 abe_music joined #salt
02:04 pdayton joined #salt
02:16 ninkotech joined #salt
02:23 mua joined #salt
02:41 xl1 joined #salt
02:44 xmltok joined #salt
02:44 bhosmer joined #salt
02:51 danremix joined #salt
02:53 danremix What is the best practice for renaming salt minions?
02:55 Drawsmcgraw danremix: Good question... I imagine you'd have to delete the minion's key from the Master and accept a new one after renaming it.
02:56 dccc joined #salt
02:57 danremix Drawsmcgraw: Ah. Thats what I will do then, thanks.
02:58 Drawsmcgraw danremix: Glad to help. You should know that I've not done that myself. But that's how I imagine it would go down.
02:58 pdayton joined #salt
03:02 rgbkrk joined #salt
03:03 avienu joined #salt
03:09 danremix Drawsmcgraw: Drawsmcgraw: Yeah. It more or less did what I was looking for. :)
03:09 Drawsmcgraw danremix: Oh cool! Good to know that actually works.
03:10 tulu joined #salt
03:16 mgw joined #salt
03:18 dthom91 joined #salt
03:29 dcrouch joined #salt
03:44 noob2 joined #salt
03:47 smccarthy joined #salt
03:56 Furao someone ever got this: http://salt.readthedocs.org/en/latest/topics/pillar/index.html#including-other-pillars (2nd include way) to works?
03:56 alunduil joined #salt
03:58 packeteer guys, has anybody got a working salt-ssh in 0.17.1 ?
03:59 summernguyen joined #salt
04:05 packeteer nm, found the bug
04:05 packeteer i guess I should grab a git version instead
04:06 dthom91 joined #salt
04:07 mr_chris joined #salt
04:20 noob2 could you use salt-ssh to bootstrap a node?
04:22 joehh noob2: i don't see why not
04:23 noob2 can't decide whether to run that or just ssh and use the salt bootstrap script :)
04:37 circ-user-pVox0 joined #salt
04:46 jalbretsen joined #salt
04:50 cachedout joined #salt
04:55 pipps1 joined #salt
05:01 Ryan_Lane joined #salt
05:04 Gifflen joined #salt
05:13 dthom911 joined #salt
05:15 druonysus joined #salt
05:22 noob2 joehh: i'm working on porting deis over to salt and i'm stuck on the part regarding chef data-bag's.  https://github.com/cholcombe973/deis/blob/master/cm/chef.py
05:22 noob2 are salt pillars the same thing?
05:42 spicyWith joined #salt
05:50 anuvrat joined #salt
05:58 akio I scrounged this somewhere off the net, wondering what its doing and how I can learn the foo:     - name: {{ pillar['pkg']['vim'] }}
05:59 akio Or actually I'm trying to use salt's knowledge of the package to have it install on EL and deb systems.
05:59 akio I don't think I should have to add pillar data to do this, am I wrong?
06:02 jcockhren akio: it's defining a state's name argument with the value of a 'vim' sub key
06:03 akio somehow this was used to install both vim-enhanced and vim on EL or Deb
06:04 akio I did it using grains, I just wanted to know how to do it this way to see if I can avoid too much matching work.
06:04 akio I should say vim-enhanced OR vim, as it depends on which system.
06:04 jcockhren with many of ther packages you'll get lucky, like vim
06:04 taylorgumgum joined #salt
06:05 jcockhren there are salt formulas that have mappings all ready included
06:05 akio for instance? where can i see?
06:06 jcockhren for example
06:06 jcockhren https://github.com/saltstack-formulas/apache-formula
06:06 jcockhren here's the map
06:06 jcockhren https://github.com/saltstack-formulas/apache-formula/blob/master/apache/map.jinja
06:08 akio thanks
06:09 akio are the formulas included?
06:10 jcockhren http://docs.saltstack.com/topics/conventions/formulas.html
06:11 jcockhren you have to use salt 0.17.x
06:12 akio 0.16.4 from epel
06:12 akio ill stick to epel for now, unless there are good reasons to stray
06:24 falican joined #salt
06:29 elfixit joined #salt
06:37 ausmarton joined #salt
06:40 ajw0100 joined #salt
07:00 carlos joined #salt
07:01 malinoff joined #salt
07:04 malinoff Hi guys
07:07 bds joined #salt
07:12 bud Morning malinoff.
07:12 malinoff bud, it's 14.12 PM :) Not actually a morning :)
07:13 bud Time zones...
07:13 balboah joined #salt
07:15 MK_FG joined #salt
07:15 MK_FG joined #salt
07:32 Furao t's 15hxx!
07:40 ajw0100 joined #salt
07:48 networkpadawan joined #salt
07:50 linjan joined #salt
08:02 elfixit joined #salt
08:09 bhosmer joined #salt
08:24 VSpike UtahDave: what i don't really get about salt cloud is how you hand over the results of what it does to salt. For example, if I let it create the master and minions
08:25 VSpike meh. ignore that. it was left in the buffer when I detached screen.
08:27 spicyWith joined #salt
08:32 pviktori joined #salt
08:37 aleszoulek joined #salt
08:38 pipps1 joined #salt
08:49 permalac joined #salt
08:55 whiskybar joined #salt
08:57 asdasdasd joined #salt
08:58 rroa joined #salt
09:06 permalac morning
09:06 permalac I've started using salt on phisical machines for oracle deployments
09:07 permalac each machine has a 'replica' on another datacenter
09:07 permalac is there any way to clone an existing machine using salt ?
09:08 permalac I've already have the same kernel running, and what I want to clone is the rpm repository, installed and configured software, and also clone de users.
09:08 permalac is that possible?
09:15 rroa_ joined #salt
09:18 nn0101 joined #salt
09:29 jcsp joined #salt
09:33 hazzadous joined #salt
09:40 bhosmer joined #salt
09:41 pkimber joined #salt
09:44 bhosmer_ joined #salt
09:49 giantlock joined #salt
10:00 bds joined #salt
10:00 VSpike Could anyone give me a clue how to do this? I want to bootstrap a cloud environment with salt-cloud, which I can mostly do. But I want to take the private IPs of the newly created machines and feed it into a zone file for an internal DNS server created as part of step 1
10:02 VSpike Also wondering how you collect and keep and process the useful bits of salt-cloud output. I saw some references to the outputter system. Is the code the documentation there at the moment?
10:08 Furao VSpike: mine.data
10:10 canci joined #salt
10:24 sgviking joined #salt
10:28 VSpike Furao: lightbulb!
10:28 VSpike Thanks
10:38 higgs001 joined #salt
10:43 andersb permalac: Hmm, that kind of is the "opposite" of how salt works. What you do with salt, is that you specify what packages and users you want on your computers, and salt enforces/installes that state.
10:44 andersb permalac: So instead of copying users, you specify that you want this/these users to exsist on this/these machines (configured by you) and run salt. Then you know that the deployment will be consistent.
10:44 malinoff Guys, can somebody help? I'm a bit frustrated with include statement
10:47 ramteid joined #salt
10:48 honestly include doesn't call the included states
10:48 malinoff honestly, I haven't asked my question yet.
10:48 honestly you need to require them from the states in your file
10:49 honestly well, you should've.
10:49 malinoff honestly, I'm using salt for 4 months, i know such things :) Okay, here we go
10:50 malinoff I'm trying to include a state from the base env that's in the 'db' folder
10:50 malinoff So, i think this should work
10:50 malinoff include:
10:50 malinoff - base: db.mystate
10:50 malinoff But it is not working
10:50 malinoff Salt says that this state is not found in 'base' env
10:51 andersb I normally use:
10:51 andersb include:
10:51 andersb - db.mystate
10:52 malinoff andersb, I must specify the environment, I can't use the default one
10:52 andersb without the base. But you have different lvl's maybe?
10:52 andersb I see. I haven't tried that...
10:54 malinoff Okay, I'll ask in the mailing list
10:58 jpcw joined #salt
11:11 bhosmer joined #salt
11:14 cron0 joined #salt
11:19 bhosmer joined #salt
11:29 bds joined #salt
11:45 xl1 left #salt
11:51 VSpike This might be an odd question, but where do you normally put your saltmaster? If you're mainly doing colo, do you put it in the colo? If cloud, do you put it in the cloud? What about if you have both? Or do you just always have it in the office?
11:57 srage joined #salt
11:58 srage joined #salt
12:04 donatello joined #salt
12:05 donatello hi all
12:05 donatello is it possible to provide pillar data via the execution of a program/script?
12:07 carlos joined #salt
12:08 dcrouch joined #salt
12:09 enertek joined #salt
12:11 bogdanbu joined #salt
12:15 bbunix left #salt
12:15 bbunix joined #salt
12:17 bbunix left #salt
12:17 Furao donatello: ext_pillar
12:18 donatello Furao: i'll check it out
12:18 enertek hi all - i just discovered that 'sls' is a valid requisite type (can be used in a require statement). This is in addition to the other states such as pkg, file, etc. which are oft mentioned in the docs. I have started an edit on doc/ref/states/ordering.rst to mention this.
12:18 blee joined #salt
12:19 bbnix joined #salt
12:19 Furao enertek: it's a kwargs
12:19 scott_w joined #salt
12:19 Furao oh, maybe it's not the same bug as I found 6 months ago
12:20 Furao nvm
12:20 scott_w just had a thought
12:20 scott_w is it possible to make salt run a command for multiple machines at different times?
12:21 Furao scott_w: overstate
12:21 scott_w overstate?
12:21 bhosmer joined #salt
12:21 enertek furao: not a bug, just an oversight in the docs that it wasn't mentioned anywhere. now that my formulas are getting more complex and i'm splitting them into separate sls files, i needed a way to chain them up in proper sequence and require: - sls: my_essential_state does it, but it's not documented
12:21 Furao not really time specific
12:22 Furao but you can make some state run after some others
12:22 scott_w ah, that's not what i want
12:22 Furao such as install backend on minionA when minionB is up
12:23 m_george joined #salt
12:23 scott_w basically, i have 3 nodes behind ELB and they need to all be updated then rebooted, so i want to do them one at a time
12:23 scott_w hm, is there docs for that?
12:23 Furao overstate
12:23 Furao search that in doc
12:29 malinoff joined #salt
12:30 bbnix joined #salt
12:46 az87c joined #salt
12:47 az87c_ joined #salt
12:57 scott_w cheers
13:03 mapu joined #salt
13:03 rjc joined #salt
13:03 wkf joined #salt
13:04 linjan joined #salt
13:04 oz_akan_ joined #salt
13:06 oz_akan_ joined #salt
13:07 mpanetta joined #salt
13:08 HeadAIX joined #salt
13:09 anteaya joined #salt
13:09 mpanetta joined #salt
13:10 mpanetta joined #salt
13:10 Gifflen joined #salt
13:12 malinoff Hi. Where can i get the information about rendering states? I'm figuring out how state.py:render_state works, especially who's calling this function.
13:17 logix812 joined #salt
13:17 juicer2 joined #salt
13:18 andrewclegg does anyone know if it's possible to deploy a single state (and anything it depends on) from an sls file? not supplied on the command line like with state.high, but with a "path" to a state in an existing file
13:19 enertek andrewclegg: have you tried
13:19 enertek andrewclegg: have you tried include: - my_state_to_run
13:19 alunduil joined #salt
13:20 brianhicks joined #salt
13:20 andrewclegg enertek: no, I'll give that a try though, hang on
13:23 andrewclegg enertek: I don't think that works, the master output shows a whole bunch of states that aren't in the sls I included, and aren't in the upstream dependencies for that sls either
13:26 enertek what command are you running on the master?
13:28 Khollowa_ joined #salt
13:28 andrewclegg salt -v -t 10000 'lo1*' state.highstate include=conf.common.nagios
13:29 andrewclegg where conf/common/nagios/init.sls is the file I'm trying to install, following the pattern for exclude in the salt modules state docs
13:30 andrewclegg those docs are very vague about syntax tho!
13:33 enertek ahh well if you run state.highstate you will always try to push the minion to the full state
13:33 enertek try salt -v -t 10000 'lo1*' state.sls conf.common.nagios base
13:33 enertek you have to provide the environment when you run state.sls
13:33 enertek and i'm assuming that the sls is conf/common/nagios.sls
13:35 enertek *you have to provide the environment when you run state.sls, hence base
13:35 andrewclegg ok, thanks, I'll try that. it's a little confusing, as highstate takes an *exclude* parameter
13:36 enertek hmm i've never used exclude but i can see hwo it would be useful to say 'go to full highstate EXCEPT blahblah', but what you want is 'go only to nagios state' so you use state.sls
13:38 andrewclegg enertek: that did it! thanks. one for my "salt tips" collection :-)
13:38 racooper joined #salt
13:39 ipmb joined #salt
13:40 tyler-baker joined #salt
13:41 andrewclegg enertek: do you know if you can also use that to select an *individual* key from within that sls? so e.g. if I had a managed file within conf/common/nagios.sls and I just wanted to deploy that and ignore everything else in nagios.sls?
13:42 mua joined #salt
13:43 enertek i think you again are only able to exclude all the others, rather than just specify/include the one you want:
13:43 enertek salt '*' state.sls conf.common.nagios exclude="[{'id': 'id_to_exclude'}]"
13:44 logix812 in a state file, how does pillar.get()  differ from salt['pillar.get']()  Tracking down an issue I am having they appear not to be the same thing
13:45 logix812 pillar looks like it's an actual dict
13:45 logix812 and responds like one
13:45 logix812 but salt['pillar.get'] can handle the magic 'key:key' syntax
13:45 enertek andrewclegg: looking at the code for modules/state.py it looks like you can provide a list of ids to exclude: salt '*' state.sls conf.common.nagios exclude=this,that,other
13:46 andrewclegg ok, thanks enertek - that'll help in a lot of cases
13:46 enertek :)
13:47 bhosmer joined #salt
13:48 pdayton joined #salt
13:49 cmthornton joined #salt
13:51 logix812 I'm aslo seeing people use pillar.get(..., {}).get(...,{})
13:52 kaptk2 joined #salt
13:53 Brew joined #salt
13:55 malinoff logix812: There's no other difference except ':' magic
13:55 malinoff logix812: https://github.com/saltstack/salt/blob/develop/salt/modules/pillar.py#L14-L37
13:56 logix812 malinoff: but the pillar object you get in your sls is the literal dict correct? where as to use the magic you need to go though salt['pillar:get'] ya?
13:57 logix812 in other words the method: pillar.get != salt['pillar.get']
13:58 malinoff logix812: Do you want to understand when pillar.get will not be the same as salt['pillar.get'] ?
13:58 logix812 Well I just looked at them both in the debugger
13:58 logix812 they are indeed different. pillar.get is dict's  builtin get
13:58 logix812 so it makes sense now
13:58 logix812 I was confusing them thinking they were the same because of the name
13:59 logix812 I was under the impressions: oh, piller was some kind of Pillar(dict):
13:59 logix812 they patched get
13:59 logix812 not the case
14:00 malinoff logix812: https://github.com/saltstack/salt/blob/develop/salt/utils/__init__.py#L996-L1009
14:00 malinoff logix812: There are a lot of interesting thing in the source code
14:00 malinoff logix812: Yes, salt is trying to operate with builtins as much as possible
14:01 logix812 Yup, the name was all that was confusing me, I got it sorted out now
14:01 logix812 'pillar.get' vs pillar.get
14:02 jared_ joined #salt
14:02 jschairb is there a preferred way to set roles on minions? i'm new to salt and have been using pillar data matching minion id to generate grains in the minion conf file. it seems like there's maybe a better way.
14:04 pdayton joined #salt
14:05 micah_chatt joined #salt
14:05 tulu joined #salt
14:06 HeadAIX joined #salt
14:12 rgbkrk joined #salt
14:13 aberant joined #salt
14:16 malinoff jschairb: Grains
14:16 * Furao use pillars :)
14:18 jschairb malinoff: grains in /etc/salt/minion or /etc/salt/grains?
14:19 mgw joined #salt
14:19 Guest10656 when i make a module and put it in the _modules directory it is only available to the minions and the master thinks it doesnt exist, apparently from what ive been reading this is the desired behavior. Since pillars are run on the master i do not have access to that module…. is there a way to make a master module that is available to the master and the minions like all of the built in default salt modules?  Thanks for any help gu
14:20 malinoff jschairb: If you can connect to a minion once via ssh, you can type your grains right in /etc/salt/minion, but you can use salt minion-id grains.setval key val
14:20 malinoff jschairb: http://docs.saltstack.com/ref/modules/all/salt.modules.grains.html?highlight=grains.set#salt.modules.grains.setval
14:20 jschairb malinoff: awesome, thanks!
14:22 malinoff jschairb: And as Furao said, of course you can use pillars :) But as i see, grains were created right for this purpose
14:22 seanz Good morning. Is there any work underway for automatically installing a sandboxed version of python for servers that don't have it, as part of the SSH mode of operation?
14:23 UtahDave joined #salt
14:23 derelm joined #salt
14:26 sim___ joined #salt
14:27 mwillhite joined #salt
14:29 srage joined #salt
14:29 srage joined #salt
14:30 cnelsonsic joined #salt
14:34 avienu joined #salt
14:38 simeo joined #salt
14:38 simeo hello
14:40 simeo anyone heard of recursive directory copy issues with the ubuntu precise package (0.17.0.1-1precise)?
14:44 simeo_ joined #salt
14:44 m_george left #salt
14:46 simeo_ after upgrading minion machines from 0.15.1-1precise to 0.17.0.1-1precise, *everything* under my single file_root gets copied to '/' on the minions
14:46 aleszoulek joined #salt
14:47 sebgoa joined #salt
14:48 noob2 joined #salt
14:48 abe_music joined #salt
14:52 noob21 joined #salt
14:52 bhosmer joined #salt
14:53 HeadAIX joined #salt
14:57 UtahDave joined #salt
14:58 aberant_ joined #salt
14:58 gildegoma joined #salt
14:59 redondos joined #salt
14:59 soukihei joined #salt
14:59 danielbachhuber joined #salt
15:00 soukihei left #salt
15:00 mau_ joined #salt
15:00 simeo_ ahh, looks like an apt issue. can't upgrade or uninstall the salt-minion and salt-common packages. disregard my last post until i have a chance to get the latest
15:05 colinbits joined #salt
15:07 aberant joined #salt
15:07 tyler-baker joined #salt
15:07 tyler-baker joined #salt
15:09 cachedout joined #salt
15:11 jalbretsen joined #salt
15:13 bhosmer joined #salt
15:14 jergerber joined #salt
15:21 mgw joined #salt
15:24 pmcg joined #salt
15:27 dthom91 joined #salt
15:29 Psi-Jack joined #salt
15:34 druonysus joined #salt
15:36 Psi-Jack joined #salt
15:39 smccarthy joined #salt
15:39 log0ymxm joined #salt
15:41 srage joined #salt
15:46 ricardo_ joined #salt
15:47 ricardo_ hey salt newb here, is it possible to manage a folder in the same way you manage files using the salt:// uri?
15:50 patrek ricardo_, yes there is a recursive option to managed file
15:50 backjlack joined #salt
15:51 patrek ricardo_ : http://docs.saltstack.com/ref/states/all/salt.states.file.html#salt.states.file.recurse
15:51 ricardo_ patrek: thanks
15:51 dthom91 joined #salt
15:52 kermit joined #salt
15:53 pipps1 joined #salt
15:53 forrest joined #salt
15:56 on joined #salt
15:59 noob21 salt: I'm trying to port deis over to use salt and I'm having trouble figuring out what to replace chef's databag functionality with in this file: https://github.com/cholcombe973/deis/blob/master/cm/chef.py
15:59 noob21 anyone want to have a quick look?
15:59 noob21 i'm thinking maybe the pillar system but i'm not certain
16:00 colinbits joined #salt
16:02 Marion joined #salt
16:03 dthom91 joined #salt
16:04 forrest noob21, for the actual configuration values, yea I would say pillar
16:05 noob2 forrest: yeah i was thinking that would be what to use
16:05 noob2 chef has this concept where you can mark a server as being part of config management
16:05 bbnix joined #salt
16:05 noob2 i think for the salt setup i won't need to do anything like that.  just make sure the new docker container name matches an existing top selector
16:06 forrest similar to just joining to the master?
16:06 noob2 yeah
16:06 forrest yea I'd use globbing in the top file to match
16:06 noob2 this port might not be all that bad
16:06 forrest hopefully!
16:06 noob2 for the purge, i'm not sure what to do.  maybe just remove the host's key from the salt-master
16:07 forrest yep
16:07 noob2 forrest: here's where i'm at so far: https://github.com/cholcombe973/deis/blob/master/cm/salt.py
16:07 forrest once you remove the minion from the server, even if you re-add it, it won't add the same key
16:07 noob2 oh cool
16:07 noob2 i didn't know that
16:07 forrest unless I am mistaken and just got lucky, when I reinstalled the minion, it created a new key, which I then had to add.
16:08 noob2 i think for the run_node function i may change what they have for the chef setup.  they're using ssh but we all know we don't need that in salt land
16:08 forrest yea
16:08 forrest so you're just trying to automate the process of adding the node to the master?
16:09 noob2 deis is an automation framework that spins up docker containers
16:09 forrest looking at this file, some of the stuff that was needed for chef seems a bit redundant.
16:09 forrest oh ok, I haven't used deis before
16:09 noob2 yeah i think a lot of it is redundant
16:10 forrest yea, you can use salt-cloud with docker
16:10 noob2 hmm maybe i should use that instead
16:10 forrest or at least I thought you could, there is a closed issue on it, and then an open issue :P
16:10 jcockhren forrest: there's docs on that?
16:11 forrest jcockhren, not that I see. I'm just googling it, looking at issues and such
16:11 forrest I may have spoken too soon noob2, got excited when I saw the closed issue but there is a giant open one
16:11 noob2 haha
16:11 noob2 615?
16:11 forrest yep
16:11 jcockhren forrest out here getting everyone's hopes up
16:11 jcockhren then crushing them
16:11 forrest I know :(
16:13 jcockhren noob2: I took a peek at deis. if the containers can be talked to with ssh, salt-ssh may be a good match for controlling them
16:13 noob2 yeah it gives you the ssh params you need to talk to it
16:13 noob2 i don't have any experience using salt-ssh yet
16:14 noob2 jcockhren: want to collaborate with me? :)  it's a pretty easy port i think
16:14 jcockhren If there was a way to consider a host as a master and the containers as minions that would be the bomb
16:14 noob2 yeah then we'd be rocking
16:15 jcockhren noob2: I can't queue is too full
16:15 jcockhren :(
16:15 jcockhren at least until Nov 10th
16:15 noob2 it's cool no worries :)
16:15 ze- joined #salt
16:16 noob2 i'm at line 221 on the chef side looking at how to make publish_user work
16:17 noob2 it all seems to tie into the data bag
16:18 jcockhren noob2: I don't know chef. but pillar is meant for storing data
16:18 noob2 is there a python api to tie into pillar?
16:18 renoirb Hey guys, regarding state in master config file while using gifts, can we define a branch like we can with pillars?
16:18 noob2 or maybe i could just edit the yaml file
16:18 carmony joined #salt
16:19 jcockhren yep. yaml
16:19 noob2 pyaml for the win :D
16:19 Marion Hi jcockhren:  no questions for you today.  Breathe easy!
16:19 jcockhren Marion: got it working though?
16:20 Marion Just want to share with you … can't get it working on my desktop.  Weirdest thing.  when I issue, apt-get update in the VM, it blows the VM away.
16:20 jcockhren ?
16:20 jcockhren hmmm
16:20 noob2 nice!  python yaml is already installed on my ubuntu salt server. i wonder if that's one of the salt requirements.  prob is right?
16:21 jcockhren Marion: have enough RAM?
16:21 Marion I've compared my iMac and macbook, OS, vagrant version, etc, etc.  They seem to be the same.
16:22 jcockhren Marion: works on the macbook but not the desktop? That is weird
16:22 Marion I think I have more RAM on my iMac than my macbook, but I will have to check.  I have no problems running vagrant/puppet VMs, and I run VMWare Fusion with Windows.
16:22 Marion it is really, really weird.
16:22 forrest noob2, yea the python-yaml package is a git deps install on the bootstrap
16:23 jcockhren if that desktop is inherited, I'm sure there was some funkiness going on with custom libs b/c that's what power users do
16:23 noob2 nice
16:23 noob2 i'm reading the pyYaml docs.  this doesn't look bad at all
16:23 Marion If I bring up the VM w/o provisioning.  I can issue apt-get update, and it kills the VM.
16:24 jcockhren noob2: except yaml lists in pillar. but no one here believes me
16:24 Marion SO, I just bought a Auria 27" WQHD monitor and connected it to my laptop.  :-)
16:24 throwanexception joined #salt
16:25 noob2 jcockhren: difficult to manipulate in python?
16:25 noob2 i should setup a pillar file to see how they work.  i only have a vague idea currently
16:25 tallpaul joined #salt
16:26 noob2 why yaml and not json?  just curious
16:26 jcockhren noob2: nah. I ran into some issues when the pillar is compiled. Like I said, no one here believes me.
16:26 noob2 oh
16:26 UtahDave jcockhren: we've got an open bug on that right now. We're working on it.
16:28 forrest jcockhren, I still don't believe you, don't worry
16:29 taylorgumgum joined #salt
16:30 jcockhren forrest: lol
16:31 jcockhren UtahDave: I opened an issue about that a while back. It's in the queue for me to fix it
16:31 jcockhren b/c I was the one complaining
16:32 noob2 no takers on my yaml vs json? :D
16:32 jcockhren noob2: I have a guess
16:32 noob2 go for it
16:32 noob2 i think yaml is easier to understand for less technical people
16:32 jcockhren python-people love their whitespace
16:32 forrest let's not get into the yaml vs. json discussion :\
16:33 noob2 lol sorry forrest
16:33 noob2 i was just curious
16:33 noob2 yaml is fine
16:33 mwillhite joined #salt
16:33 jcockhren I always though it was a parsing issue
16:33 jdenning joined #salt
16:33 noob2 so if i want to write out yaml i just make a list and dump it?
16:33 forrest noob2, I don't mine, some people are just very passionate
16:34 jcockhren "passionate"
16:34 noob2 i'm not passionate about it
16:34 noob2 this is my first exp with yaml coming to salt
16:34 forrest it's really easy noob2
16:34 noob2 yeah i'm finding it very easy
16:34 noob2 just like json
16:34 noob2 both are easy
16:35 forrest yea
16:35 jslatts joined #salt
16:36 jacksontj joined #salt
16:37 taylorgumgum joined #salt
16:37 mattmtl joined #salt
16:37 aberant joined #salt
16:37 noob2 are there some good load/dump yaml examples in the salt code?
16:39 jcockhren noob2: http://docs.saltstack.com/topics/tutorials/pillar.html
16:39 jcockhren really just any valid yaml
16:39 noob2 oh sorry i meant in python
16:39 noob2 ok
16:39 felixhummel joined #salt
16:39 noob2 i'll figure it out :)
16:40 jcockhren noob2: what do you mean by "in python"?
16:40 jcockhren noob2: external pillars?
16:40 noob2 i think i just got it
16:40 noob2 i was just wondering if there's any yaml loading code in the salt code that i could look at
16:41 noob2 i think i just got my python code working.  took a little playing around
16:41 noob2 when i do yaml.dump it looks different than the top.sls file that i'm used to
16:41 jdenning noob2: Take a look at PyYAML - http://pyyaml.org/wiki/PyYAMLDocumentation
16:41 noob2 jdenning: yeah i'm working my way through that
16:42 jdenning ah, sorry late to the discussion :)
16:42 dthom91 joined #salt
16:42 noob2 jdenning: want to help with the deis porting? :D
16:43 jdenning noob2: Not familiar with deis - it's heroku-like?
16:43 noob2 it is
16:43 noob2 it uses chef and i'm adding salt support for it: https://github.com/cholcombe973/deis/blob/master/cm/salt.py
16:43 noob2 i'm porting this file: https://github.com/cholcombe973/deis/blob/master/cm/chef.py
16:44 UtahDave noob2: that's pretty cool
16:44 noob2 thanks :)
16:44 noob2 when the docker support gets merged into salt this'll be cake
16:45 ninkotech joined #salt
16:45 UtahDave I think we've already got some docker support going.
16:45 noob2 UtahDave: i thought about rolling my own thing with zerorpc and then i stopped myself before i got too crazy
16:45 UtahDave :)
16:46 troyready joined #salt
16:47 noob2 so it looks like pyYaml dumps out yaml files in a different format than what i have in my sls files
16:47 noob2 for instance: http://fpaste.org/49501/19670138/
16:48 KyleG joined #salt
16:48 KyleG joined #salt
16:51 jdenning noob2: try it like this:
16:51 noob2 jdenning: I think i need to set the formatting options
16:51 jdenning yaml.dump(t, default_flow_style=False)
16:51 noob2 ok
16:51 noob2 jdenning: oo yeah that's pretty
16:51 noob2 i like that
16:52 jdenning cool :)
16:52 jergerber joined #salt
16:52 srage joined #salt
16:53 log0ymxm joined #salt
16:54 bhosmer joined #salt
16:54 abe_music joined #salt
17:02 taylorgumgum joined #salt
17:06 TheRealBill_ joined #salt
17:06 VSpike UtahDave: hi. I'm getting some stack traces from salt-cloud w/ rackspace http://sprunge.us/GXLR ... any idea? Rackspace glitch or something else?
17:06 oz_akan_ joined #salt
17:06 donatello joined #salt
17:07 elfixit joined #salt
17:07 donatello hi
17:07 donatello is it possible to provide arguments to the grains system to generate grains based on some arguments and then sending it to the minion?
17:08 jankowiak joined #salt
17:08 VSpike UtahDave: the attempt before, I tried using salt-cloud -P -m <mapfile> and it created all the servers but threw an error on the Windows ones and removed them again http://sprunge.us/AhFY
17:09 donatello for example i want to add info based on instance info got from aws
17:10 amckinley joined #salt
17:11 carlos__ joined #salt
17:19 torandu joined #salt
17:20 ninkotech joined #salt
17:21 aleszoulek joined #salt
17:25 pipps1 joined #salt
17:28 * Gareth waves
17:29 taylorgumgum joined #salt
17:31 brimpa joined #salt
17:32 patrek_ joined #salt
17:33 patrek joined #salt
17:36 higgs001 joined #salt
17:40 luminous on ubuntu, what is the proper way to get the FULL fqdn? on my _default_ 12.04 VMs I see fqdn, and host grains returning the same, and a blank domain
17:45 oz_akan_ joined #salt
17:46 dpoirier joined #salt
17:47 Gareth nice.  salt 0.17.1 in the debian repos this morning.
17:48 bemehow joined #salt
17:49 poirier joined #salt
17:51 aberant joined #salt
17:52 jcsp luminous: salt is using socket.getfqdn(), which isn't necessarily the same as "hostname -f"
17:52 jcsp and the manpage for hostname says you should really use --all-fqdns instead
17:53 * luminous *forehead smack*
17:53 ajw0100 joined #salt
17:54 luminous so what should one do? cmd.run with {% set %} ?
17:54 luminous feels icky
17:57 poirier Does anyone know whether 0.17.1 is going to be added to the PPA for Ubuntu raring?
17:58 forrest there was an issue building it for raring last time I heard poirier
17:58 forrest joehh might be able to provide an update.
17:58 poirier I wonder if that was just a packaging issue or if it has problems on raring
17:59 dthom91 joined #salt
17:59 ninkotech joined #salt
18:00 srage joined #salt
18:01 patrek_ joined #salt
18:01 srage joined #salt
18:01 mwillhite joined #salt
18:03 pipps1 joined #salt
18:03 dcolish joined #salt
18:04 wibberwock joined #salt
18:05 patrek joined #salt
18:06 bhosmer joined #salt
18:06 ajw0100 joined #salt
18:06 renoirb Hi all, I am trying to figure the appropriate way to configure git remotes for both states and pillars.
18:06 renoirb fileserver_backend: has a key 'git'
18:07 renoirb And the other config are unclear though:   gitfs_remotes, ext_pillar?
18:08 renoirb ext_pillar: -git: branch-name git+ssh://user@host:~/git/folder/path
18:08 renoirb But in the case of states, documentation gives contradictions
18:08 poirier renoirb: there's a tiny example here: http://docs.saltstack.com/ref/pillar/all/salt.pillar.git_pillar.html
18:08 renoirb poirier: this one is fine, i think
18:08 renoirb but the state is not
18:09 renoirb I ran 'salt-call pkg.install python-git version=0.3.2'
18:09 renoirb too
18:09 renoirb but when i restart it fails to find both my states and pillars from git
18:10 poirier I think I did something like "sudo pip install GitPython"
18:11 ckao joined #salt
18:13 ninkotech joined #salt
18:14 Ryan_Lane joined #salt
18:14 forrest renoirb, you made sure to install gitpython on the minion right?
18:14 renoirb on the minion too?
18:14 renoirb I ran them on the master only
18:17 forrest you need to have git/gitpython installed on the minion.
18:18 renoirb ok, running it now :)
18:21 renoirb forrest, poirier do you think I got something wrong with my lines?
18:21 renoirb - git+ssh://renoirb@jay.w3.org/home2/renoirb/git/wpd/deployment/salt
18:21 renoirb in gitfs_remotes
18:21 renoirb and in ext_pillar:
18:21 forrest well, you need to referencing the .git
18:21 renoirb - git: branch-name git+ssh://renoirb@jay.w3.org/home2/renoirb/git/wpd/deployment/pillar
18:22 renoirb sure forrest, i know. I am talking about the fact that one has '- git: branch-name' and the other not.
18:22 bemehow joined #salt
18:22 forrest you should be able to do a checkout from a branch, but I don't know if you can use the ssh transport protocol
18:22 renoirb (sorry for the tone, I just wanted to tell what I am worried about :)  )
18:22 poirier yeah, that's kind of confusing
18:22 forrest can't remember
18:22 fys yeah you need to specify the .git
18:23 poirier I'm using the same syntax in my gitfs_remotes (git+ssh://user@host...) plus the .git
18:23 fys git+ssh://git@git.noneofyourbusiness.net/config-mgmt.git
18:23 renoirb filesystem do not have folder name with .git. It is my shell host and I created my own bare there… it is not using any other wrapper
18:23 bemehow joined #salt
18:23 forrest yea but you're using git_fs
18:23 renoirb I thought that I needed to create the repo folder name with .git
18:24 ninkotech joined #salt
18:24 renoirb in fileserver_backend: i have roots, git
18:24 renoirb should I have something different?
18:24 log0ymxm joined #salt
18:25 renoirb oh poirier and even though on your user@host:~/folder path, the 'folder' folder has no '.git' in its name?
18:26 forrest the .git is referencing the actual configuration data renoirb.
18:26 arnoldB joined #salt
18:26 forrest if you do an ls -la, there should be a .git dir
18:26 poirier the folder does have .git in its name
18:27 poirier it's a bare repo
18:28 arnoldB could someone tell me how to use quota.set ( http://docs.saltstack.com/ref/modules/all/salt.modules.quota.html ) ? the example doesn't work ;) => TypeError encountered executing quota.set: set_() takes exactly 1 argument (10 given).
18:28 renoirb poirier: that's my point then.  On my remote host, I created a repository folder (e.g. ~/git/wpd/deployment/pillar)   **without** any .git (i.e. NOT pillar.git)  in its name.
18:28 renoirb So, it would be confusing to add in my salt master config file a .git at the end
18:28 poirier then I'd guess you wouldn't want a .git in the path
18:28 renoirb :)
18:28 arnoldB I don't know python that much, but are there args missing in the function definition ? http://gh.codehum.com/saltstack/salt/pull/4036/files
18:29 arnoldB (row 84)
18:29 arnoldB or how to set kwargs?
18:30 poirier arnoldB: kwargs are keyword args.  it looks like set() requires one bare arg, and can accept any number of named args (foo=1, bar=2, ...)
18:30 UtahDave arnoldB: when there's **kwargs in the function definition that means you can have an arbitrary number of keyword arguments
18:30 UtahDave like poirier said!
18:31 bhosmer joined #salt
18:33 arnoldB how to set these kwargs in the CLI? the example in the doc of quota.set does n-o-t w-o-r-k :)
18:35 UtahDave arnoldB: Are you getting an error or stacktrace?
18:35 arnoldB [DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20131025203518980776', 'tgt': 'hostname', 'ret': '', 'user': 'root', 'arg': ['/', 'user=u98779975', 'block-hard-limit=524288000'], 'fun': 'quota.set'}
18:36 arnoldB UtahDave: error on the salt master, both in the debug log on the minion
18:37 arnoldB stack trace: https://np.adm.sx/view/81076712
18:37 arnoldB using latest stable version of stalt on debian wheezy x64
18:37 enertek left #salt
18:38 taylorgumgum joined #salt
18:38 giantlock joined #salt
18:38 UtahDave arnoldB: is quota installed on the system?
18:39 abe_music joined #salt
18:39 arnoldB UtahDave: it is. those parameters (user+limit) is already set with setquota
18:40 UtahDave what's the output of   salt 'hostname' quota.get_mode '/'
18:40 arnoldB I'm currently using cmd.run as state and execute '/usr/sbin/setquota -u {{ user['name'] }} 0 {{ user['quota'] * 1024 * 1024 }} 0 0 /' for every user. it would be nice if I could replace it by a salt module. AFAIR the quota state doesn't provide setting quota for users/groups
18:41 arnoldB UtahDave: the correct UUID for the device and group + user = on (for /)
18:42 UtahDave have you looked at the quota state docs?  http://docs.saltstack.com/ref/states/all/salt.states.quota.html#module-salt.states.quota
18:42 UtahDave I haven't used quota at all, but it looks like the state only turns user and group quotas on or off.
18:43 arnoldB UtahDave: if I see it right there's only quota.mode ?
18:43 arnoldB UtahDave: yep
18:43 UtahDave Yeah, that appears to be the case.  I don't think the quota module and state have seen much (or any) attention in quite a while
18:43 arnoldB you may also interested in: [WARNING ] TypeError encountered executing quota.set: set_() takes exactly 1 argument (10 given). See debug log for more info.  Possibly a missing arguments issue:  ArgSpec(args=['device'], varargs=None, keywords='kwargs', defaults=None)
18:43 arnoldB :)
18:44 arnoldB unit tests might be useful for this module
18:44 UtahDave arnoldB: what's the cli command you used that gave you that result
18:45 simeo left #salt
18:45 arnoldB UtahDave: salt hostname quota.set / user=u98779975 block-hard-limit=524288000
18:45 pentabular joined #salt
18:47 arnoldB quota.report and quota.stats work
18:48 UtahDave arnoldB: Could you open an issue on those?  There's obviously some bit rot going on there and you're exactly right that some unit tests are in order
18:49 arnoldB UtahDave: I'll do
18:49 arnoldB thanks for the feedback
18:49 UtahDave thanks for your help, arnoldB!
18:52 pipps1 joined #salt
18:54 noob2 joined #salt
18:58 Thiggy joined #salt
19:00 ctdawe joined #salt
19:02 bemehow joined #salt
19:02 carmony joined #salt
19:03 carmony grrr, what the heck
19:04 [ilin] joined #salt
19:04 UtahDave carmony: New York 1 is gone
19:04 carmony UtahDave: lol, I'm on New York 2
19:05 carmony UtahDave: I was going to say, I might have some time to come swing by and say hi
19:05 amckinley joined #salt
19:05 UtahDave dude, come by!
19:05 linjan joined #salt
19:05 carmony who all is there today?
19:05 fys Yeah, New York is a small town.
19:05 fys Should be easy to find.
19:05 fys ;)
19:08 UtahDave pretty much everyone but redbeard. He's flying home from a customer site
19:08 UtahDave when do you think you'd  want to come by?
19:09 forrest You guys are in NY this week UtahDave?
19:09 carmony UtahDave: I might jsut come over in 30
19:11 UtahDave forrest: nope.  I was just guessing that carmony might have been having a DigitalOcean issue since I just noticed that their New York 1 datacenter isn't showing up in the api
19:11 carmony lol
19:11 forrest ahh ok
19:11 carmony my IRC keeps dropping out
19:12 UtahDave weird, they're saying they are having networking issues in New York 2 datacenter
19:13 pmrowla joined #salt
19:13 jcsp joined #salt
19:17 carmonyWeb joined #salt
19:17 diegows joined #salt
19:17 carmonyWeb oooookay, grrrr
19:18 carmonyWeb looks like my New York 2 servers are having an issue :P
19:18 throwanexception joined #salt
19:18 UtahDave yeah,  NYC2 has been having issues
19:20 hjubal joined #salt
19:22 carmony joined #salt
19:22 [ilin] joined #salt
19:22 Gareth UtahDave: did you get a chance to ask Thomas that pillar question from yesterday?
19:24 UtahDave Not yet. He's been inundated with meetings since he got back.  I'll make sure he sees it today.  Did you open an issue on that, by chance?
19:24 Gareth Nope.  But I can. :)  Github issue?
19:24 UtahDave yeah. That would help make sure it gets investigated.
19:25 Gareth will do that now.
19:25 UtahDave thanks!
19:27 Ryan_Lane1 joined #salt
19:28 mwmnj joined #salt
19:28 Ryan_Lane joined #salt
19:28 tallpaul joined #salt
19:28 m_george|away joined #salt
19:30 bemehow joined #salt
19:32 carmony joined #salt
19:32 [ilin] joined #salt
19:32 [ilin] joined #salt
19:34 mofomikes joined #salt
19:37 ninkotech joined #salt
19:38 juicer2 left #salt
19:40 pdayton joined #salt
19:40 bhosmer joined #salt
19:41 MTecknology joined #salt
19:41 mprymek joined #salt
19:44 pmrowla joined #salt
19:44 dthom91 joined #salt
19:44 Gareth UtahDave: done.
19:46 anuvrat joined #salt
19:46 UtahDave thanks, Gareth!
19:48 mprymek joined #salt
19:49 Gareth no worries
19:49 carmony joined #salt
19:51 bemehow joined #salt
19:51 woebtz joined #salt
19:54 taylorgumgum joined #salt
19:54 pentabular joined #salt
19:56 ipmb joined #salt
19:56 VertigoRay_ joined #salt
19:57 VertigoRay_ does saltstack have a CA management state?
19:57 pipps1 joined #salt
19:58 cjh973 joined #salt
19:58 UtahDave VertigoRay_: there's a  module, but not a state yet: http://docs.saltstack.com/ref/modules/all/salt.modules.tls.html#module-salt.modules.tls
19:58 srage joined #salt
19:58 Brew joined #salt
19:58 VertigoRay_ UtahDave: Thanks so much.  Wasn't able to dig it out of google.
19:59 UtahDave You're welcome!
19:59 bezaban joined #salt
20:00 luminous something about pillar that's bothering me.. there's this thing kenneth once said about python libs.. that if you found yourself checking the doc everytime you want to go use it, you should get a new lib.. this rings in my ears every time I try to remember _which_ pillar.get I should use
20:02 mapu joined #salt
20:02 pipps2 joined #salt
20:04 pipps5 joined #salt
20:05 pipps6 joined #salt
20:07 ldlework joined #salt
20:07 brianhicks joined #salt
20:07 pentabular joined #salt
20:08 UtahDave luminous: ouch!    :)
20:08 luminous UtahDave: there are TOO many ways to do that
20:08 pentabular joined #salt
20:09 UtahDave salt['pillar.get']('stuff')
20:09 pentabular left #salt
20:11 luminous part of the confusion stems from grains[]
20:11 luminous we should access the two through similar interfaces
20:11 luminous they're essentially the same thing, with minor differences
20:12 UtahDave that's a valid point
20:13 luminous the other bit of confusion stems from the docs showing you different methods of accessing pillar keys right off the bat
20:13 luminous UtahDave: or rather, the method you noted above is NOT the first you see
20:14 arnoldB quota:groups contains a list. I'm using   {% for group in salt['pillar.get']['quota:groups'] %}    in a SLS file, and getting the error "Undefined jinja variable;"
20:14 arnoldB any idea why?
20:15 pentabular joined #salt
20:15 arnoldB I can run the salt command on the CLI
20:16 arnoldB syntax: https://np.adm.sx/view/9c58366a
20:16 xmltok joined #salt
20:17 VertigoRay joined #salt
20:17 premera arnoldB, what salt version ?
20:17 arnoldB latest (17.1)
20:17 arnoldB +0. ^^
20:18 premera see if this bug applies to you https://github.com/saltstack/salt/issues/8066
20:18 premera or print salt['pillar.get']['quota:groups'] to a file and see how it looks like
20:20 premera the lastest stable version for me is 0.16.4, anything above that proved to be frustrating
20:21 arnoldB haha +1
20:22 wibberwock is 0.17 supposed to be stable?
20:22 arnoldB AFAIR no version was stable yes :D
20:23 luminous wibberwock: yea, there's no such thing
20:23 wibberwock :|
20:24 wibberwock so if I actually want to use this for production, should i be using 0.17 or 0.16.4?  i haven't run into any problems on 0.17 so far
20:25 premera use whatever works for you, for me 0.17.x does not work properly
20:25 forrest agreed with premera
20:26 luminous wibberwock: use 0.16.4
20:26 luminous wibberwock: or make ssure you don't run into a bug
20:27 luminous you need a sufficiently complex setup to run into bugs in salt
20:27 luminous saltstack's testing / CI setup is not sophisticated enough yet, unfortunately
20:27 luminous it'll get there
20:28 rgbkrk joined #salt
20:28 luminous wibberwock: there's super super awesome stuff in v0.17.x
20:28 luminous so yea, use it if you can
20:28 bhosmer joined #salt
20:28 luminous you'll likely not see it break
20:28 luminous not before there's another release :)
20:29 bhosmer_ joined #salt
20:30 arnoldB omfg. ====> salt['pillar.get']['quota:groups']  <===== do you see it? :D
20:30 cbloss How are you guys controlling what version you are installing? the apt repo only has 0.17.1
20:30 arnoldB ===> salt['pillar.get']('quota:groups')
20:30 arnoldB was using pillar[][][] too often..^^
20:30 arnoldB cbloss: you can make apt-pinning
20:31 premera cbloss one way: wget -O - http://bootstrap.saltstack.org | sh -s -- -P git v0.16.4
20:32 cbloss i'm not sure waht apt-pinning is...premera, yeah, but then how to do upgrade/downgrade?
20:33 premera cbloss this worked for me at some point too sudo apt-get install salt-master=0.16.4-1precise salt-common=0.16.4-1precise
20:33 pentabular joined #salt
20:34 premera cbloss: I use the bootstrap script successfully to downgrade /upgrade with no issues
20:35 cbloss what does the -P do? i've found using the bootstrap over an already existing install it overwrites the config scripts as well
20:35 cbloss so then causes a manual process of adding the master back into the config
20:35 cbloss not very scalable
20:36 premera cbloss: and if I am not mistaken for core salt packages the boostrapscript uses apt-get with its own repo, so you can install it first on throaway system to check what repo it uses and configure that where you need
20:36 mr_chris joined #salt
20:36 luminous cbloss: there are other ppa's if on ubuntu
20:36 luminous I just learned about this..
20:36 luminous https://launchpad.net/~saltstack/+archive/salt16
20:41 pipps joined #salt
20:45 cowmix UtahDave: I'm good on the testing for masterless mode: https://groups.google.com/forum/#!topic/salt-users/6aJcXPniJXo   thanks!
20:45 patrek_ joined #salt
20:46 xmltok joined #salt
20:47 forrest Has anyone seen this functionality yet in 0.17.1? https://groups.google.com/forum/#!topic/salt-users/z-TpUWsz1qQ
20:51 felixhummel joined #salt
20:54 bhosmer joined #salt
20:55 arnoldB forrest: yes. it made me already look on the wrong lines :D
20:55 forrest hah
20:55 Ryan_Lane joined #salt
20:59 vespakoen joined #salt
21:00 vespakoen Hey guys, I am having some difficulties with spaces in paths, what is the recommended way to handle them, is this different per module (file.managed, git.latest, cmd.run etc) or is there a "general"  way to go about them?
21:03 arnoldB vespakoen: spaces... paths... quotes?
21:03 vespakoen Yeh sorry, that probably sounded very vague, let me try again
21:03 vespakoen I need to checkout a git repository, it has a space character in it's name  and unfortunately it's name has to be preseved
21:04 vespakoen after I have checked out the repository, I change a file (with file.managed) and run some commands
21:04 forrest Step 1. Go slap whoever put a space in a file name, Step 2. Try either quotes, or maybe a forward slash?
21:04 vespakoen a forward slash... I have only tried backward slashes until now =P ?
21:05 forrest well, in regex I would do asdf\ asdf2
21:05 forrest just like when you cancel out a special character
21:05 forrest maybe that? I'm not sure
21:06 vespakoen yeh that sortof works, not all the time though, it's really frustrating haha
21:06 arnoldB ACK
21:06 pipps joined #salt
21:08 vespakoen so here is one issue I can pinpoint: when cloning a git repo with a space in the name, It will only work if i escape the space characters
21:09 arnoldB vespakoen: show examples
21:09 vespakoen but then, once it is checked out, the path cannot be found (because of the escape characters)
21:09 vespakoen yeh I will do that, sec
21:09 arnoldB if you need more than 1 line. use https://np.adm.sx/
21:09 vespakoen will do
21:12 vespakoen init.sls
21:12 vespakoen woops
21:16 Thiggy joined #salt
21:17 vespakoen so here is my pillar and state in question: https://np.adm.sx/view/54ad64e6
21:18 vespakoen running this gives me: https://np.adm.sx/view/63c6423f
21:19 vespakoen now if I change "Theme - Flatland:"  in my pillar to "Theme\ -\ Flatland:" I get https://np.adm.sx/view/954ca231
21:20 lemao joined #salt
21:20 vespakoen another interesting fact, if I do not use jinja, and just put the path in the git command immediately, it works
21:20 pears joined #salt
21:25 younqcass joined #salt
21:29 redondos joined #salt
21:31 dcrouch joined #salt
21:33 ajw0100 anyone using gitfs with a private github repo?
21:34 m0hit joined #salt
21:36 vespakoen ajw0100, I have not, but I am guessing you are having authentication problems, and my guess would be that to solve this, you have to make sure the private key is present (/home/youruser/.ssh/id_rsa
21:40 pentabular joined #salt
21:43 lesnail joined #salt
21:44 lesnail I was wondering if overstate files have any templating capabilities?
21:47 ajw0100 vespakoen well I haven't actually tried it yet but I was just wondering how to automate authentication. If I use ssh-agent it will ask for the key's passphrase and I'm not sure I can automate a response to this. Same goes for git's credential cache I believe. Am I missing something?
21:47 pdayton joined #salt
21:47 lesnail What I want to do is executing multiple states on multiple hosts in a certain order as a reaction to an event. So it might also help if require would be available in reactor files
21:48 ajw0100 vespakoen I guess I could use a key without a passphrase but that's not too secure
21:48 vespakoen adding the pub key to known_hosts should suffice no?
21:49 vespakoen I have a git state that sets up my keys, known_hosts and a config gile
21:49 vespakoen my keys are actually in pillar
21:50 ajw0100 vespakoen I have passphrases on my keys. If I didn't then yes just adding the pub key to github would be good enough
21:50 vespakoen Ahh I see
21:51 ajw0100 so whenever I pull from github over ssh it asks me for my passphrase
21:51 arnoldB vespakoen: I guess there are missing 2 white spaces at the beginning of the lines 3-9
21:51 vespakoen well I guess you will just have to enter it everytime then =P
21:51 vespakoen arnoldB, checking
21:51 arnoldB hm wait
21:52 arnoldB vespakoen: what's line 8 for?
21:52 ajw0100 vespakoen haha yea. with ssh-agent you only have to enter it once and it remembers it. I was hoping to find some way to automate that one instance of entering it into ssh-agent
21:52 vespakoen arnoldB, yeh that's correct but the errors happen before it even tries to execute that
21:52 oz_akan_ joined #salt
21:52 vespakoen arnoldB, I use it to simply list some files that I want to load from the salt master and parse with jinja
21:53 vespakoen ajw0100, I see, unfortunately I am unfamiliar with that behavior so I cannot help you there
21:54 arnoldB vespakoen: I'll rewrite that and post my solution
21:54 blee joined #salt
21:54 vespakoen Awesome =D
21:54 HeadAIX joined #salt
21:54 c0bra joined #salt
21:57 c0bra joined #salt
21:58 taylorgumgum joined #salt
21:59 kermit joined #salt
22:00 pentabular joined #salt
22:02 arnoldB vespakoen: you want the file flatland-dark.sublime-theme placed in /home/{{ pillar['username'] }}/.config/sublime-text-3/Packages/. correct?
22:02 Ryan_Lane1 joined #salt
22:02 Ryan_Lane joined #salt
22:03 arnoldB vespakoen: why not use only the file state with '- source: https://raw.github.com/thinkpixellab/flatland/master/Flatland%20Dark.sublime-theme' ?
22:03 arnoldB vespakoen: wait. there are pictures ..
22:05 CheKoLyN joined #salt
22:06 dccc joined #salt
22:06 vespakoen arnoldB, indeed, I need the whole thing, and I am actually changing the color of the pictures later in my state =)
22:13 jimallman joined #salt
22:13 arnoldB vespakoen: salt version?
22:13 vespakoen salt 0.17.1
22:16 arnoldB vespakoen: check this: https://np.adm.sx/view/dd8d6843
22:17 vespakoen single quotes is the magic here?
22:18 bemehow joined #salt
22:18 arnoldB vespakoen: https://np.adm.sx/view/30ab901c with a requisite
22:18 arnoldB vespakoen: no another concept
22:18 vespakoen I see
22:18 arnoldB vespakoen: your was to complex
22:18 arnoldB *code
22:19 arnoldB I wrote tons of such loops
22:19 fxhp If it possible for one state formula to know if another state formula exixst for a target minion ?
22:20 yejun joined #salt
22:21 blee_ joined #salt
22:22 fxhp For instance, do a bunch of work then if another state formula exists, do one more test, else don't do that task
22:22 fxhp task*
22:22 arnoldB fxhp: what do you want to do?
22:22 fxhp I guess that came out like non-sense
22:25 fxhp arnoldB - I have a formula that installs trac, who listens on port 8800
22:25 Ryan_Lane joined #salt
22:25 fxhp Oh I think I know what to do
22:25 fxhp but I'm going to ask anyways because you might have a better solution
22:26 m_george left #salt
22:26 fxhp arnoldB - if and only if the apache state is installed, the trac state should install a vhost conf
22:26 pentabular joined #salt
22:26 ctdawe joined #salt
22:27 fxhp What I should do is have another formula that handles that condition and only apply it to a minion who has those circumstances
22:27 m0hit hey salt. wondering what is the best way to run just a single state declaration/id declaration from an sls file.
22:27 taylorgumgum joined #salt
22:27 fxhp for example:
22:28 m0hit I usually use "salt "target" state.sls app.state" but need to run just the file states from a particular sls file due to a derp
22:28 wibberwock is there an easy way to share variables across state files?  for example, i have 10 sls files who need the ips of the same group of minions.  i'm using publish, but i don't want to do 10 publish calls, and would like to do it just once and persist the data across the els files
22:28 vespakoen arnoldB, thanks so much for the effort, but it still doesn't work over here, I am getting the "too many arguments" again, when I use "-l debug" the result of the rendered state looks perfect, I think this issue lies deeper
22:28 pentabular1 joined #salt
22:28 m0hit wibberwock: checkout pillar http://docs.saltstack.com/topics/pillar/index.html
22:29 wibberwock pillar apparently doesn't work with publish module?
22:29 bemehow joined #salt
22:29 jslatts joined #salt
22:29 m0hit wibberwock: you can use pillar to keep configuration strings in a central place. It'll also help when you start to use different ips for development vs staging vs production environments
22:29 arnoldB vespakoen: post it
22:31 m0hit wibberwock: i think pillar data shared with the minions using pillar/top.sls should be available using publish
22:31 vespakoen salt tells me this is the result of rendering the state file (with -l debug) http://pastebin.com/v2HVseef
22:32 m0hit wibberwock: but I haven't tried using it with publish so not sure. apologie
22:32 wibberwock m0hit: i mean, if i try to create a pillar file that has a jinja template calling publish, it doesn't work
22:32 pipps joined #salt
22:32 vespakoen actually, when I execute that bit of YAML, I also get the error
22:33 m0hit wibberwock: can you show me an example of how you are calling publish in pillar
22:33 vespakoen even with quotes (single or double)
22:33 arnoldB vespakoen: what is the full error message?
22:33 vespakoen http://paste.laravel.com/11Ri/raw
22:34 vespakoen [ERROR   ] Command 'git clone https://github.com/thinkpixellab/flatland.git /home/koen/.config/sublime-text-3/Packages/Theme - Flatland ' failed with return code: 129
22:34 taylorgumgum joined #salt
22:34 avienu joined #salt
22:34 Thiggy joined #salt
22:35 arnoldB vespakoen: so you have tried         - target: "/home/{{ pillar['username'] }}/.config/sublime-text-3/Packages/{{ theme['name_full'] }}"          ?
22:35 vespakoen correct
22:35 arnoldB vespakoen: and         - target: "'/home/{{ pillar['username'] }}/.config/sublime-text-3/Packages/{{ theme['name_full'] }}'"          ?
22:35 vespakoen not that I think
22:36 vespakoen Comment:   Specified cwd "'/home/koen/.config/sublime-text-3/Packages/Theme - Flatland'" either not absolute or does not exist
22:36 vespakoen so, I am testing without all the variables, and single quotes seem to work
22:37 vespakoen let me try a bit more I'll report back in a bit
22:37 arnoldB vespakoen: ?
22:37 wibberwock m0hit: test: {{ salt['publish.publish']('*', 'test.ping') }}
22:38 vespakoen Ahhhhhh man! It works
22:38 vespakoen kindof
22:38 wibberwock m0hit: error when you use the pillar: http://paste.laravel.com/11Rp
22:38 arnoldB vespakoen: did /home/koen/.config/sublime-text-3 exist before the first run?
22:38 vespakoen yes
22:38 arnoldB k
22:39 berto- joined #salt
22:39 vespakoen actually it still doesn' t work haha
22:40 redondos joined #salt
22:40 arnoldB vespakoen: by the way: do you really want to use salt for this task?
22:40 vespakoen actually, it does now, haha
22:40 vespakoen this did it:     - target: '/home/{{ pillar['username'] }}/.config/sublime-text-3/Packages/{{ args.get('dir') }}'
22:41 vespakoen I was thinking this would never work, but I does
22:41 arnoldB ok it's 0:41 am here. gn8
22:42 vespakoen Thanks a lot for the help! you got me on the right track, sleep well!
22:45 Ryan_Lane joined #salt
22:45 pdayton joined #salt
22:46 Marion joined #salt
22:46 ctdawe joined #salt
22:48 pipps1 joined #salt
22:50 taylorgumgum joined #salt
22:52 pears has anyone used cmd in salt states to deploy things from tar files?  I'm wondering if I should just use the "unless" argument to keep tar from extracting over and over
22:52 alunduil joined #salt
22:53 wibberwock anyone know how to use salt modules inside pillars that require globs?  trying to use salt.modules.network.ipaddrs, but don't know how to pass it a glob
22:56 redondos joined #salt
22:56 redondos joined #salt
22:57 ctdawe joined #salt
23:02 Ryan_Lane joined #salt
23:04 woebtz joined #salt
23:04 ctdawe joined #salt
23:06 vymos joined #salt
23:07 vymos has anyone had any luck creating a windows instance on ec2 and having salt configure it?
23:08 timb joined #salt
23:11 timb hi.  can someone give me an example of how to use the python api call salt.client.SSHClient for 0.17.1?  salt.client.LocalClient works fine, but i get an obscure error "AttributeError: 'module' object has no attribute 'ssh'"  trying to use SSHClient.  thx!
23:15 snappingturtle left #salt
23:15 snappingturtle joined #salt
23:15 ajw0100 joined #salt
23:16 taylorgumgum joined #salt
23:17 snappingturtle joined #salt
23:20 ctdawe joined #salt
23:25 pipps joined #salt
23:27 redondos joined #salt
23:27 redondos joined #salt
23:33 goldeye joined #salt
23:38 ctdawe joined #salt
23:38 nocturn joined #salt
23:45 m0hit joined #salt
23:49 xmltok joined #salt
23:49 pdayton joined #salt
23:49 mwillhite joined #salt
23:53 cwarner joined #salt
23:54 Ryan_Lane joined #salt

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