Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-10-15

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

All times shown according to UTC.

Time Nick Message
00:00 druonysuse you can use a custom grain, in an if statement within a jinja templated file, right? (please forgive me if I already asked this but I was having connection issues)
00:01 druonysuse {%- if grains['roles'] == 'customrole' %}
00:01 druonysuse something like this^
00:05 jslatts joined #salt
00:10 UtahDave druonysuse: yep!
00:12 redondos joined #salt
00:12 redondos joined #salt
00:13 redondos joined #salt
00:13 redondos joined #salt
00:16 pentabular joined #salt
00:16 druonysuse I have a templated iptables config and it is not getting rendered. it looks something like this: http://paste.opensuse.org/32807772
00:16 druonysuse perhaps I am doing something wrong?
00:17 Corey druonysuse: What's the state look like for that file?
00:18 druonysuse Corey:  let me get that for you
00:18 Corey I'm betting you forgot template: jinja
00:18 g4rlic nope
00:18 g4rlic remembered that part.
00:19 Corey *ponder*
00:19 mlanner- joined #salt
00:20 druonysuse Corey:  no I am remembering the template: jinja bit
00:20 druonysuse Corey: http://paste.opensuse.org/71613606
00:20 Corey It's suspicious that the first bit of Jinja in that file is an endif.
00:20 Corey Pastebin the source file, plz. It lives in - source: salt://common/files/etc/sysconfig/iptables.template
00:22 druonysuse Corey: the endif was a mispast
00:23 druonysuse Corey: may a pm you the whole pastebin of the actual file?
00:23 Corey I'm also not sure what a cusomrole is. :-)
00:23 Corey druonysuse: Go nuts.
00:27 taylorgumgum joined #salt
00:27 ingwaem joined #salt
00:28 bhosmer joined #salt
00:30 cshuman joined #salt
00:36 pentabular joined #salt
00:37 xmltok are there any good formulas to use as a reference for writing a formula? https://github.com/saltstack-formulas appears to have a lot of empty repositories
00:40 v0id_ joined #salt
00:41 mlanner_ joined #salt
00:52 xmltok_ joined #salt
00:54 bhosmer joined #salt
01:02 cachedout joined #salt
01:08 druonysuse joined #salt
01:09 ingwaem xmltok_: check out https://github.com/saltstack/formulae, and https://github.com/saltstack/salt-states, both should have ample examples for you
01:10 shinylasers joined #salt
01:23 redondos joined #salt
01:23 redondos joined #salt
01:26 logix812 joined #salt
01:26 mlanner_ joined #salt
01:28 pdayton joined #salt
01:32 m0hit joined #salt
01:33 m0hit are there any known issues with minion targetting in 0.17.0 in --local mode
01:34 m0hit I'm getting an "No Top file or external nodes data matches found" when using v0.17.0 but it works on HEAD of 'develop'
01:36 deepakmd_oc joined #salt
01:36 m_george joined #salt
01:36 m0hit unfortunately develop/HEAD is not connecting to the salt-master and throwing an exception with KeyError:'ext_job_cache'
01:36 m0hit this has made salt completely unusable for our systems.
01:36 m0hit any ideas?
01:36 AdamSewell joined #salt
01:36 m_george left #salt
01:38 __number5__ m0hit: are you running masterless minion?
01:39 shinylasers joined #salt
01:39 AdamSewell I'm rather new at salt and i'm trying to setup my master to install nginx across multiple web servers. I'd like to use the nginx to do this but i'm having a difficult time figuring out where to put the salt.states.pkgrepo.managed directive. Would this go in the top.sls or the webserver.sls file?
01:39 __number5__ AdamSewell: normally webserver.sls
01:40 m0hit __number5__: sometimes yes. I use Masterless minions for pre-baking images
01:40 AdamSewell __number5__, got ya, you wouldn't have an example of this would you?
01:40 middleman_ joined #salt
01:40 m0hit AdamSewell: I can provide you with some gist for this.
01:41 AdamSewell m0hit, sure, that would be helpful
01:41 __number5__ m0hit: do you mean running salt-call --local failed?
01:41 amckinley joined #salt
01:44 m0hit AdamSewell: https://gist.github.com/m0hit/6985313
01:44 mua joined #salt
01:44 m0hit __number5__: salt-call --local state.highstate does not fail but it does not match any targets
01:44 m0hit the same top.sls file matches with targets when using develop. I've tried to look through commits, but could not identify what caused this. I'm using match:pcre
01:44 ingwaem AdamSewell: There are some nginx states out there already that could do this for you without you reinventing the wheel. I can dig it up if you like
01:45 AdamSewell ingwaem, i'll take all the examples i can get. one issue i foresee coming is that I'd like to modify the nginx config based on the hostname, not sure if that's even possible
01:45 ingwaem AdamSewell: Yes it is possible. You can use grains to fill them in for you
01:46 AdamSewell ok, i haven't gotten to the grains part yet then.
01:46 ingwaem AdamSewell: The first mention of nginx in the documentation is at: http://docs.saltstack.com/topics/tutorials/walkthrough.html
01:46 ingwaem it's a tidy walkthrough but also a good example of an nginx install
01:47 ingwaem Just trying to find other references. You want to use a combination of installing the package, enabling the service, making sure it's on, and copying the config file from a central location, coupled with the use of grains to pull in the machine name as part of the file name
01:48 pdayton joined #salt
01:48 ingwaem AdamSewell: This shows a good example about half way down on how to pull in grains: http://docs.saltstack.com/topics/tutorials/pillar.html
01:48 m0hit AdamSewell: I've updated the gist with some examples of how to use templating to create different site configurations.
01:49 m0hit though ingwaem's is pointing to the tutorials that might be more useful to learn :)
01:50 AdamSewell I've always learned better through examples, the saltstack tutorials are good but they don't work well for me for some reason
01:51 m0hit AdamSewell: you can see in the gist how grains can be used to pass data to templates
01:52 AdamSewell m0hit, was just looking over that. i have a basic config based on your first gist but i'm getting errors that looks like they're related to syntax. python is just uses spaces for separation correct?
01:53 m0hit AdamSewell: can you look over the gist again. made some changes. Also let me know what line is causing the issue
01:53 AdamSewell m0hit, http://d.pr/i/vxaB
01:55 ingwaem Ahh, here's the example I remember seeing: https://github.com/saltstack-formulas/nginx-formula
01:56 ingwaem nice example m0hit
02:00 malinoff joined #salt
02:01 tinytub joined #salt
02:05 berto- joined #salt
02:05 cowmix joined #salt
02:07 charlton joined #salt
02:08 chuffpdx joined #salt
02:16 Katafalkas joined #salt
02:25 xl1 joined #salt
02:26 liamc joined #salt
02:27 goodwill okie who here is from or around Los Angeles
02:27 cnelsonsic joined #salt
02:27 cnelsonsic left #salt
02:41 mafro joined #salt
02:45 blee joined #salt
02:49 redondos joined #salt
02:50 redondos joined #salt
02:59 Nexpro joined #salt
03:01 * malinoff high fives from Russia
03:02 packeteer < Syndey
03:04 Gifflen joined #salt
03:13 cro joined #salt
03:18 packeteer doh, i spel gud
03:18 pass_by_value joined #salt
03:18 packeteer Sydney even
03:18 redondos joined #salt
03:18 redondos joined #salt
03:25 blee joined #salt
03:26 idkfa joined #salt
03:33 hvn joined #salt
03:37 vipul joined #salt
03:42 Furao goodwill: why?
03:42 goodwill just wondering if folks are coming to the hackathon
03:43 malinoff Привет, Furao :)
03:45 Furao malinoff: да, I'm there but I never received your msg
03:45 malinoff Furao: strange thing
03:46 josephholsten joined #salt
03:48 Furao oh, well I'm in actually in Malaysia, no plan to get to US. I don't want to be raped at custom
03:48 goodwill o_O
03:48 goodwill ну ну
03:49 Furao an other russian? :)
03:49 goodwill ага как оказывается тут нас полно
03:51 malinoff Я бы не сказал, что полно. Furao в Болгарии подучил русский, но он канадец :)
03:52 goodwill хорошо, не полно ... но мы так стратегически раставлены что встречаемся на каждом углу
03:52 Furao канадец hehe
03:53 malinoff Определенно :) Кстати, godwill, не хочешь принять участие в переводе доков на русский?
03:53 malinoff Furao: Yeah, canadian -> канадец
03:54 josephholsten joined #salt
03:55 Furao yes I understood enough from the phrase to figure that
03:55 Jahkeup joined #salt
03:56 goodwill а что переводим?
03:56 malinoff Furao: I didn't mean that you can't undersand that :) Just wanted to make things more clearer
03:57 malinoff godwill: https://groups.google.com/forum/#!topic/salt-users/TALQZLcKPWM
03:58 goodwill не ... врядли ... я технический жаргон только на английском рублю
03:59 malinoff godwill: Любая помощь будет кстати - даже если сможешь перевести только заголовки :)
04:01 ifnull_ joined #salt
04:04 __number5__ wtf?
04:04 mgw joined #salt
04:06 Furao __number5__: ?
04:08 malinoff __number5__: "RUSSIANS EVERYWHERE"?
04:08 Furao __number5__: just watch that http://www.youtube.com/watch?v=OnrT4G7ux5U and think it's her talking to you
04:09 Furao in russian
04:16 malinoff LOL
04:18 __number5__ my weechat don't like Russian apparently, it's all broken
04:18 malinoff __number5__: blank squares? Or what?
04:19 jefimenko joined #salt
04:19 matanya_ joined #salt
04:25 __number5__ malinoff: like this http://i.imgur.com/LWzderb.png
04:26 malinoff __number5__: Lol, it's 2013, it's time to use unicode finally
04:26 Furao __number5__: there is just extra spaces between chars
04:28 malinoff Furao: It's all about encodings. Latin letters takes 1 byte, cyrillic - 2 bytes
04:28 Furao anyway, the important thing here is Angina
04:29 malinoff :D
04:30 lesnail joined #salt
04:37 amahon joined #salt
05:03 Lue_4911 joined #salt
05:21 Katafalkas joined #salt
05:25 Katafalk_ joined #salt
05:33 ramteid joined #salt
05:36 TheCodeAssassin joined #salt
05:38 redondos joined #salt
05:41 druonysus joined #salt
05:41 druonysus joined #salt
05:47 malinoff joined #salt
05:50 Psi-Jack joined #salt
05:51 xl1 left #salt
05:54 druonysus joined #salt
05:54 druonysus joined #salt
05:55 redondos joined #salt
05:56 xl1 joined #salt
05:58 justlooks joined #salt
06:02 gildegoma joined #salt
06:32 az87c joined #salt
06:33 az87c_ joined #salt
06:43 dmalinovsky joined #salt
06:43 ml_1 joined #salt
06:44 dmalinovsky left #salt
06:44 malinoff joined #salt
06:44 malinoff ping
06:45 redondos joined #salt
06:46 packeteer pong
06:48 malinoff nice
06:48 malinoff it works
06:53 druonysuse joined #salt
07:00 tomspur joined #salt
07:06 ml_11 joined #salt
07:08 Iwirada joined #salt
07:11 anuvrat joined #salt
07:11 SpX joined #salt
07:18 ckao joined #salt
07:19 balboah joined #salt
07:20 jonet joined #salt
07:20 jonet left #salt
07:20 adepasquale joined #salt
07:21 agentofkaos joined #salt
07:22 agentofkaos left #salt
07:22 [M7] joined #salt
07:23 justlooks anyone can help this https://gist.github.com/justlooks/6947011
07:25 Furao justlooks: check carefully line 8
07:25 _ikke_ justlooks: Aparently tmp.mylocals already exists as a dir
07:25 Furao you probably want to use file.directory and not file.managed
07:26 qba73 joined #salt
07:29 jasonrm_ joined #salt
07:44 justlooks i changed(what i created are all directory),  still have problem
07:44 justlooks https://gist.github.com/justlooks/6947011
07:45 ndrei joined #salt
07:45 Furao justlooks: it's not the same problem
07:46 Furao directory /tmp/mylocal/mytest don't exists
07:46 justlooks Furao:  but i already set makedirs: True ,/tmp/mylocal/mytest should be created automaticly
07:47 Furao https://gist.github.com/justlooks/6947011#file-gistfile1-txt-L2
07:47 Furao no you don't
07:47 Furao you do it only for /tmp/mylocal
07:47 Furao not subdir mytest
07:48 justlooks Furao: got it
07:48 rawzone soo lets say i wanted to run: salt '*' cmd.run "uname -a | awk '{ print $1 }'", i would expect to get only the first "word" back from all the minions, but i get the full string from uname, any hints on what im doing wrong..?
07:51 Furao rawzone grains.item kernel
07:51 justlooks how to split dir name ?  if i define path= yarn/logs  ,i want get yarn and logs from path ,how to write in jinjia template
07:52 rawzone Furao: well its not that i need to get the running kernel as much as i dont understand why the pipe > awk aint working. Thanks tho
07:53 lil_cain joined #salt
07:53 RR_ joined #salt
07:54 RR_ hi all
07:54 RR_ how to maintain saltstack state file
07:54 RR_ multiple state file
07:55 rmt_ RR_, text editor & git repository?
07:55 ndrei joined #salt
07:56 RR_ multiple state file
07:56 RR_ can u please explain briefly
07:57 RR_ i m new to thisone
07:57 RR_ thanks for your response
07:57 Corey Store /srv/salt in a git repository.
07:57 Corey The end? :-)
07:58 RR_ we have multiple components with multiple state files. every day chanes to anyone of component's state file...
07:58 RR_ is it git one is right way?
07:58 _ikke_ And what do you want to achieve?
07:58 RR_ or otherthan git?
07:59 _ikke_ RR_: You explain a situation, but not the problem you are having
07:59 _ikke_ What is the problem you want to get solved?
08:00 rmt_ RR_, you can use one git repository, or multiple.. (or subversion, or anything else..).. but there is built in support for git tags and branches, which should work fine with a small trusted development team..
08:01 RR_ we have several environmnet to test out components. each environmnet having same component with different version.each environment has corresponding state file chnages. finally we need to consolidate  these changes  and finalyy push these  into production enviornment
08:01 middleman_ joined #salt
08:01 rmt_ If you're using Salt today, it probably means that you have a small trusted team already (because it's not out-of-the-box suitable for a less-than-fully-trusted environment)
08:02 RR_ whenever we push changes into production , we are missing several state file changes  and salt's monitoring file changes as well
08:02 ndrei joined #salt
08:03 rmt_ RR_, ah, individual versioning of components... http://docs.saltstack.com/topics/conventions/formulas.html might be interesting..
08:03 RR_ need a quick guide from you guys forsaltstack
08:04 rmt_ RR_, I'm also relatively new to SaltStack, and I have been wondering about the same/a similar issue...  https://github.com/saltstack/salt/issues/7556 is my feature request for it.
08:04 rmt_ Change control always seems to be an afterthought...
08:06 RR_ anyother suggestion plz
08:08 scott_w joined #salt
08:09 middleman_ joined #salt
08:09 RR_ ok. how  to learn saltstack for beginner
08:10 ndrei joined #salt
08:12 Furao RR_: same way for all FOSS projects: read, test, try
08:12 RR_ from here to start. im having system admin back ground.. new to coding part
08:13 RR_ can u suggest me rightway to start
08:13 Furao no need to be a coder to use salt
08:13 RR_ ok
08:13 Furao salt.readthedocs.org
08:13 Furao http://www.youtube.com/channel/UCpveTIucFx9ljGelW63-BWg
08:14 rmt_ RR_, look into using environments...
08:14 RR_ ok
08:14 scott_w wor tom is loving a YT channel
08:15 scott_w RR_: for salt, i started by putting master/minion on the same machine (obviously not recommended now), and just built up from there
08:15 gldnspud_ joined #salt
08:16 scott_w then threw pillars into the mix to simplify things
08:17 RR_ ok thx scott_w
08:17 ndrei joined #salt
08:17 scott_w then started putting more complex top files together
08:20 gildegoma joined #salt
08:20 qba73 joined #salt
08:22 ndrei joined #salt
08:24 felixhummel joined #salt
08:25 zooz joined #salt
08:27 justlooks how to split dir name ?  if i define path= yarn/logs  ,i want get yarn and logs from path ,how to write in jinjia template
08:28 Boohbah joined #salt
08:30 malinoff {{ path.split('/') }} ?
08:31 middleman_ joined #salt
08:32 dpac|away joined #salt
08:32 justlooks malinoff: are you sure? i am not find split function in jinjia doc
08:32 malinoff It's a string method
08:35 _ikke_ isn't os.path.split better?
08:35 _ikke_ ie, more robust
08:36 justlooks malinoff:  i can do assignment?
08:36 ddv :)
08:37 justlooks _ikke_:  the string is part of the path
08:37 _ikke_ os.path is a python module, it has a split method that is specially for splitting paths
08:37 justlooks malinoff:  like this ? set [dir1 ,dir2] = path.split('/') ?
08:38 whiskybar joined #salt
08:38 justlooks _ikke_:  python code can be used in jinjia
08:38 justlooks _ikke_:  ?
08:38 malinoff <_ikke_>: Well, if you will show me how to import a python module, i will agree
08:38 _ikke_ justlooks: Not sure :-)
08:39 Corey Weee.
08:39 malinoff justlooks: {% set dir1, dir2 = path.split('/') %}
08:39 justlooks malinoff: you are very helpful,thank you
08:39 ndrei joined #salt
08:40 malinoff justlooks: No problem :)
08:40 felixhummel joined #salt
08:42 malinoff justlooks: Where are you from?
08:46 krissaxton joined #salt
08:46 ndrei joined #salt
08:48 justlooks malinoff:  you means my geographic location?
08:48 Narven joined #salt
08:49 malinoff justlooks: Yep
08:49 justlooks 120.2E ,30.3N   :)
08:50 rmt_ Finally got around to writing about SaltStack ... http://blog.corporatism.org/blog/2013/10/15/110/saltstack
08:51 m0hit joined #salt
08:51 _ikke_ Eastern China
08:53 ndrei joined #salt
08:55 aleszoulek joined #salt
09:05 Iwirada joined #salt
09:11 gldnspud joined #salt
09:23 N-Mi joined #salt
09:23 N-Mi joined #salt
09:27 ronc joined #salt
09:29 justlooks hi dear all , can help this   https://gist.github.com/justlooks/6989026
09:29 d1rk joined #salt
09:30 d1rk how do i add dotdeb via salt.states.pkgrepo? I fail to have more than one line in the dotdeb.list file, which is necessary, see http://www.dotdeb.org/instructions/
09:31 d1rk my current version looks like this: http://pastebin.com/EcEpJMYT
09:32 d1rk i tried to do it like this: http://pastebin.com/iJVisa9c
09:34 justlooks d1rk: never used deb ,here is my yum pkgrepo it's work fine https://gist.github.com/justlooks/6913437 ,hope it can help you
09:34 blee joined #salt
09:35 ronc joined #salt
09:36 d1rk justlooks: thanks for your reply. Unfortunatelly it does not help me that much, as your 'name' is just one line. I need to put 4 lines in there...
09:39 felixhummel joined #salt
09:41 xl1 joined #salt
09:42 hvn joined #salt
09:49 MK_FG joined #salt
09:50 MK_FG joined #salt
09:58 linuxnewbie joined #salt
09:59 linuxnewbie hello, i'm having problems getting a good salt state which checks if ssh service is running can anybody help me ?
10:00 Furao linuxnewbie: https://github.com/bclermont/states/blob/master/states/ssh/server/init.sls
10:00 the_drow joined #salt
10:01 linuxnewbie Furao, here is my config:  service.running:
10:01 linuxnewbie {% if grains['os'] == 'Debian' or grains['os'] == 'Ubuntu'%}
10:01 linuxnewbie - name: ssh
10:01 linuxnewbie {% elif grains['os'] == 'CentOS'%}
10:01 linuxnewbie - name: sshd
10:01 linuxnewbie {% endif %}
10:02 linuxnewbie # salt 'raspberry' grains.item os
10:02 linuxnewbie raspberry:
10:02 linuxnewbie ----------
10:02 linuxnewbie os:
10:02 linuxnewbie Debian
10:02 linuxnewbie and this is the response:
10:02 linuxnewbie service_|-openssh-server_|-ssh_|-running:
10:02 linuxnewbie ----------
10:02 linuxnewbie __run_num__:
10:02 linuxnewbie 5
10:02 linuxnewbie changes:
10:02 linuxnewbie ----------
10:02 linuxnewbie comment:
10:02 linuxnewbie The named service ssh is not available
10:02 linuxnewbie name:
10:02 linuxnewbie ssh
10:02 linuxnewbie result:
10:02 jcristau ick.  pastebin...
10:02 linuxnewbie False
10:02 Furao it burn my eyes
10:02 linuxnewbie that's all :)
10:02 Furao just use grains['os_family']
10:03 Furao and I don't recognize the existence of centos, sorry
10:04 linuxnewbie Furao, it's ok ...and it's working because when a system is centos ...the service will be sshd (and as tested it's working ok) ...i'll tray to play with os_family tho
10:05 Furao maybe it fail because pkg openssh-server isn't installed
10:07 linuxnewbie Furao, it is installed i have checked that too :(
10:08 the_drow Hi guys, I am planning how to use salt for our staging environment and I need your advice. Each time there is a successful commit, our CI server packages and pushes our code from the index. I'd like to have a staging environment that has an ngix reverse proxy that delegates this url pattern staging.ourcompany.com/<build_number>. Each build number creates it's own uwsgi instance with it's respective build number.
10:09 the_drow How many salt modules do I have to write to make this work?
10:09 the_drow s/from our index/to our package index
10:09 honestly you shouldn't do this with salt
10:09 honestly you should use something else for this
10:09 the_drow honestly: Oh? Why not?
10:09 honestly you can configure whatever that is using salt
10:09 honestly salt is for orchestration and config management
10:10 Furao the_drow: I already got something that look like this, but I had to develop a lot of things to fit with client workflow
10:11 Furao the_drow: with this kind of setup https://www.dropbox.com/s/jkt39uhx1avfen6/global_arch.png
10:11 honestly the_drow: write scripts that do what you want, then use salt to push config files around and trigger daemon restarts
10:13 the_drow honestly: Here's the process I imagined: Staging Salt Master sees a new version of a package -> The minion pulls it -> It creates a virtualenv and installs the package -> It creates a folder for the server config and starts it -> It configures ngix to redirect to the newly created instance. What should be done in a script and what shouldn't and why in your opinion?
10:13 the_drow Furao: Does it apply to my case?
10:14 Furao maybe, and extra stuff
10:14 the_drow Do I need a script that generates my Salt manifests?
10:15 the_drow Furao: :(
10:15 Furao I also got a jenkins that git pull all the time some branches and trigger automatic VM creation
10:15 Furao and performs tests on salt states
10:16 Furao a single test run takes 10 to 14 hours
10:16 the_drow Furao: wonderful!
10:16 Furao it try all salt states in various ways
10:16 Furao the_drow: https://www.dropbox.com/s/u674kyeg7vetawk/Screen%20Shot%202013-10-11%20at%205.33.14%20PM.png
10:16 Koma joined #salt
10:17 the_drow Furao: Looks like a nightmare. But at least you have tests.
10:17 Furao yes I had been working on that since february
10:18 Furao it's all now automated
10:18 Furao tests are created from formulaes
10:18 the_drow Furao: Wow. That's a long time for a staging environment.
10:18 the_drow Furao: Got any tips to do what I want?
10:18 Furao I mean, I had been developing that testing too since february
10:20 Furao well, you can look at salt jenkins
10:20 Furao they almost implement what I did
10:20 Furao it look very similar
10:20 the_drow Furao: We'll be using Travis
10:21 Furao well, I can't says with much info
10:21 Furao but everything is possible :)
10:22 Furao much -> such
10:23 the_drow Furao: Got it
10:25 gaoyang joined #salt
10:27 Koma joined #salt
10:36 ndrei joined #salt
10:36 qba73 joined #salt
10:40 ggoZ joined #salt
10:42 graingert joined #salt
10:42 graingert is there a way of changing the ubuntu mirror
10:43 graingert eg from us.canonical to gb.canonical?
10:43 graingert in a salt state
10:43 graingert based on pillar data
10:44 Furao I file.managed /etc/apt/sources.list
10:44 RR_ salt   \* state.highstate  --> takes much time to complete or some times few minions dont return values ... going to hung state
10:44 RR_ any idea or help on it
10:46 Furao RR_: salt --help look -t (timeout)
10:46 RR_ yes we specified timeout value as well... didnt help much
10:47 RR_ like #salt  \*  state.highstate -v t 360
10:48 orarbel joined #salt
10:50 blee joined #salt
10:52 Furao salt -t 1200 "*" state.highstate
10:52 Furao 360 = 6 minutes
10:52 Furao highstate can take more than that
10:52 matanya_ joined #salt
10:52 Furao in my case with hundred of hosts and so much stuff it can take > 40 minutes
10:52 ndrei joined #salt
10:53 RR_ we have less than 50 hosts
10:54 RR_ is it possible to exclude some state files while running state.highstate   ???
10:59 felixhummel joined #salt
11:18 eliasp joined #salt
11:24 Iwirada joined #salt
11:29 jbunting joined #salt
11:33 Jahkeup joined #salt
11:41 mua joined #salt
11:42 srage joined #salt
11:43 ndrei joined #salt
11:50 giantlock joined #salt
11:53 bhosmer joined #salt
11:54 qba73 joined #salt
11:56 lemao joined #salt
12:03 diegows joined #salt
12:10 bud joined #salt
12:10 backjlack joined #salt
12:11 jumperswitch joined #salt
12:13 liamc joined #salt
12:22 jbunting joined #salt
12:22 mgw joined #salt
12:30 jslatts joined #salt
12:30 [M7] joined #salt
12:31 jrdx joined #salt
12:40 the_drow does anyone know a salt module that clones all repos that an organization have through github?
12:43 mwillhite joined #salt
12:44 honestly RR_: just make an sls file that doesn't include the states you don't want and run that via state.sls
12:45 honestly state.highstate is virtually identical to state.sls top.sls
12:45 honestly afaik
12:47 derelm joined #salt
12:48 RR_ thx
12:49 qba73 joined #salt
12:50 AdamSewell joined #salt
12:52 Jahkeup joined #salt
12:55 oz_akan_ joined #salt
12:55 jumperswitch_ joined #salt
12:57 oz_akan_ joined #salt
12:58 krissaxton joined #salt
13:00 m_george|away joined #salt
13:00 jumperswitch joined #salt
13:00 saysjonathan joined #salt
13:02 krissaxton1 joined #salt
13:05 juicer2 joined #salt
13:07 ipmb joined #salt
13:08 the_drow Is there a salt state for downloading files?
13:09 Furao the_drow: file.managed - source: http://bleh.com/file
13:09 Furao it's all in the doc
13:09 the_drow 404
13:09 NetworkN3rd joined #salt
13:10 the_drow Oh I can specify http/s?
13:10 Furao yes
13:11 sebgoa joined #salt
13:12 ddv joined #salt
13:16 saysjonathan joined #salt
13:16 racooper joined #salt
13:17 mofomikes joined #salt
13:17 krissaxton joined #salt
13:18 cron0 joined #salt
13:20 Khollowa_ joined #salt
13:20 tomeff joined #salt
13:21 mua joined #salt
13:21 brianhicks joined #salt
13:31 toastedpenguin joined #salt
13:33 cro joined #salt
13:37 or1gb1u3 joined #salt
13:37 cro1 joined #salt
13:41 Tekni joined #salt
13:50 MTecknology {% if 'absent' in attr and attr['absent'] %} stuff {% else %} stuff {% endif %}  <-- this is valid, isn't it?
13:50 Furao MTecknology: no
13:51 tyler-baker joined #salt
13:51 tyler-baker joined #salt
13:51 Furao this will fail with a KeyError for attr['absent'] if it's undefined
13:51 Furao try {% if attr.get('absent', False) %}
13:52 Furao it's a real dict that you got
13:52 tomeff joined #salt
13:52 MTecknology ah.. I was thinking of how php works..
13:53 the_drow Furao: https://dpaste.de/O79B Why does that happen on ubuntu
13:53 ccase joined #salt
13:53 the_drow It fails to install make and build-essential
13:54 the_drow defuq just happened?
13:54 kaptk2 joined #salt
13:55 Jahkeup joined #salt
13:59 cro joined #salt
14:00 mua_ joined #salt
14:02 MTecknology HAH! It turns out I had another state that was screwing with me...
14:03 Furao the_drow: run salt-call with -l all
14:03 Furao to see what is going on and look at the logs for why it fail
14:03 Furao don't use salt 0.17.0, it's buggy
14:04 UnwashedMeme joined #salt
14:05 MTecknology Furao: thanks for exposing me to .get() :)
14:05 nod left #salt
14:06 the_drow Furao: now I get an exception :/
14:06 xmltok joined #salt
14:06 UnwashedMeme After upgrading to 0.17 most of my minions' keys are now invalid; they seem to have gone from FQDN to non-qualified hostname. I don't see anything in the release notes; is this documented somewhere?
14:06 the_drow Furao: https://github.com/saltstack/salt/issues/7845
14:06 Furao UnwashedMeme: you just need 1 document: upgrade to 0.16.4
14:07 Furao the_drow: same for you, this is a common error with salt 0.17.0
14:07 ndrei joined #salt
14:07 the_drow :(
14:07 the_drow What do I do?
14:07 Furao upgrade to 0.16.4
14:07 sebgoa Do we have to run salt-cloud as root ?
14:07 the_drow Furao: you mean downgrade?
14:07 the_drow Furao: I'm running under vagrant
14:07 Furao sebgoa: yes as it creates minion key and accept them for you
14:08 m_george left #salt
14:08 Furao for me, 0.16.4 is an upgrade to 0.17.0 :)
14:08 the_drow hehe
14:08 sebgoa Furao: hum….ok
14:08 the_drow Furao: How do I do that if I'm using vagrant?
14:09 MTecknology for me, 0.15.0-194-gf1697ae is the latest.. :)
14:09 Furao I never used vagrant
14:10 Furao the_drow: I mirror older version of salt for that http://archive.robotinfra.com/mirror/salt/0.16.4/
14:11 Nexpro joined #salt
14:11 MTecknology I have a pillar that does this:  - group: '0010' and in an sls I use   file.directory: \ - group: {{ attr['group'] }}      Running the state complains that it can't find group 10. I know group 10 doesn't exist, that's why I told it to use 0010.
14:11 the_drow akoumjian: ping?
14:12 the_drow akoumjian: How do I install the previous version of salt using salty-vagrant?
14:13 Furao MTecknology: - group: "{{ attr['group'] }}"
14:16 MTecknology Furao: thanks!
14:16 ndrei joined #salt
14:17 gmcwhistler joined #salt
14:19 mannyt joined #salt
14:20 the_drow So it's not possible to install an older version of salt using vagrant and I really don't want to test what I'm doing on my own computer.
14:20 the_drow How do I solve the exception
14:20 Iwirada joined #salt
14:22 jbunting joined #salt
14:23 cro joined #salt
14:23 ndrei joined #salt
14:26 pdayton joined #salt
14:26 mgw joined #salt
14:30 cnelsonsic joined #salt
14:31 includex joined #salt
14:31 ndrei joined #salt
14:35 timoguin joined #salt
14:37 patrek the_drow, why don't you create a virtual machine (virtualbox, lxc, openvz, vmware) on computer and test in there?
14:37 jrdx joined #salt
14:38 ndrei joined #salt
14:46 AdamSewell joined #salt
14:47 Nexpro joined #salt
14:50 groovehunter joined #salt
14:51 pdayton joined #salt
14:52 jeffasinger joined #salt
14:52 Khazix joined #salt
14:53 includex left #salt
14:54 groovehunter I have a minion running 0.15.1 and server 0.17.1  is there a compat prob ?
14:55 groovehunter ie, in minion salt-call file.mkdir bla/huh
14:55 groovehunter works
14:56 groovehunter but salt.highstate does not
14:56 groovehunter State file.mkdir found in sls webbefunde is unavailable
14:56 groovehunter brb
14:57 Furao left #salt
14:57 mwillhite joined #salt
14:57 pass_by_value joined #salt
15:00 teskew joined #salt
15:01 redondos joined #salt
15:01 redondos joined #salt
15:02 alunduil joined #salt
15:02 NetworkN3rd joined #salt
15:03 mgw joined #salt
15:06 pipps joined #salt
15:07 cro joined #salt
15:07 cshuman joined #salt
15:09 amahon joined #salt
15:09 cro joined #salt
15:10 pmcg joined #salt
15:12 brimpa joined #salt
15:13 linuxnewbie joined #salt
15:13 linuxnewbie joined #salt
15:13 jacob_s joined #salt
15:14 colinbits joined #salt
15:14 ndrei joined #salt
15:16 ipmb joined #salt
15:22 fxhp http://russell.ballestrini.net/control-a-mongodb-collection-in-configuration-management/
15:23 fxhp ^ How to use configuration management (Saltstack) to version control a MongoDB collection ^
15:24 forrest joined #salt
15:25 zooz joined #salt
15:27 jacob_s When loading a template inside another jinja template {% import path/to/file as macro %}
15:27 jacob_s works, but {% import salt://path/to/file as macro %}
15:27 jacob_s does not
15:28 forrest jinja has no understanding of that syntax
15:28 fxhp jacob_s - you cannot do that
15:28 cshuman joined #salt
15:32 pipps1 joined #salt
15:32 jacob_s Okay that makes sense.
15:34 deepakmd_oc joined #salt
15:36 pipps joined #salt
15:37 pipps2 joined #salt
15:37 pipps3 joined #salt
15:38 pipps1 joined #salt
15:42 ashtonian joined #salt
15:42 pipps joined #salt
15:44 Katafalkas joined #salt
15:49 mwillhite joined #salt
15:50 mannyt joined #salt
15:50 shinylasers joined #salt
15:56 cro1 joined #salt
15:56 cro1 joined #salt
15:58 nliadm I heard tell that this latest version of salt passes the minion id to external pillars
15:58 nliadm is this true
16:00 cro joined #salt
16:01 bitz joined #salt
16:03 liamc joined #salt
16:05 jcockhren fxhp: is that you? (the blog post)
16:06 troyready joined #salt
16:06 fxhp jcockhren: yes.
16:07 UtahDave joined #salt
16:08 indygwyn joined #salt
16:08 fxhp jcockhren - did you enjoy it?
16:08 Sypher joined #salt
16:08 jcockhren why yes!
16:09 jcockhren fxhp: Now, I'll be stalking yourblog for tips
16:09 jcockhren ;)
16:10 Iwirada joined #salt
16:10 KyleG joined #salt
16:10 KyleG joined #salt
16:11 TheCodeAssassin joined #salt
16:11 TheCodeAssassin2 joined #salt
16:11 * UtahDave already stalks fxhp
16:12 timoguin nice blog
16:12 fxhp timoguin - thanks : )
16:13 Lue_4911 joined #salt
16:13 UtahDave fxhp: Hey, have you submitted a talk proposal for SaltConf?
16:14 jcockhren Speaking of saltconf, us poor folks are wondering if the presentations will be on the web at some point?
16:14 DredTiger joined #salt
16:15 jdenning joined #salt
16:15 jasonrm joined #salt
16:15 redondos joined #salt
16:16 fxhp UtahDave - know a lot about configuration management but I have a hard time figuring out what people want to hear about
16:16 DredTiger joined #salt
16:16 xmltok joined #salt
16:19 DredTiger joined #salt
16:22 cachedout joined #salt
16:23 UtahDave fxhp: I'd love to hear about how you've used Salt to solve some hard problems
16:23 UtahDave jcockhren: Yeah, a lot of them will be online.
16:23 techdragon joined #salt
16:23 jcockhren \o/
16:24 jcockhren ok. I need to save up my pennies for the next one
16:25 UtahDave jcockhren: Have you sent in a talk proposal? Speakers get a free ticket.
16:25 jcockhren o_O
16:26 ggoZ joined #salt
16:26 jcockhren UtahDave: that actually haven't crossed my mind. I was so focused on PyTN. hmmm
16:27 jcockhren This changes everything
16:29 matanya joined #salt
16:29 kallek joined #salt
16:30 NetworkN3rd joined #salt
16:30 UtahDave Yeah, go ahead and submit your talk here:  saltconf.com
16:31 cro joined #salt
16:33 druonysuse joined #salt
16:33 druonysuse joined #salt
16:33 timoguin jcockhren, whaaaa are you going to PyTN?
16:33 timoguin are you local?
16:34 jcockhren timoguin: you know me
16:34 backjlack joined #salt
16:34 jcockhren timoguin: you follow me ;)
16:34 jcockhren github, not twitter
16:35 jcockhren timoguin: we spoke loooooong time ago. in #nashdl
16:35 timoguin *head esplodes*
16:35 jcockhren boom
16:36 timoguin I put in for a salt talk
16:36 jacksontj joined #salt
16:37 jcockhren nice
16:42 KyleG joined #salt
16:42 KyleG joined #salt
16:49 ronc joined #salt
16:52 jacksontj joined #salt
16:58 Boohbah joined #salt
17:00 kallek_ joined #salt
17:04 darien joined #salt
17:07 netzmonster joined #salt
17:07 woebtz joined #salt
17:09 Jahkeup joined #salt
17:12 dave_den joined #salt
17:13 jslatts joined #salt
17:13 pkimber joined #salt
17:18 jumperswitch joined #salt
17:19 pdayton left #salt
17:20 Ryan_Lane joined #salt
17:27 jefimenko joined #salt
17:29 lineman60 joined #salt
17:29 berto- joined #salt
17:30 NetworkN3rd joined #salt
17:32 m_george joined #salt
17:34 mgw UtahDave: Talk proposal submitted (Linux Containers and Virtualization: Running with Salt)
17:35 forrest nice mgw
17:35 mgw forrest: Are you going?
17:36 forrest If my talk gets selected yes, otherwise no. The ticket price would have to come from my own funds, and I'm tapped out for conferences this year after paying my way to pycon and devopsdays atlanta
17:36 forrest plus I wanna go to pycon next year
17:37 forrest and since it's in toronto, it's even mor expensive than this year.
17:37 forrest *more
17:37 forrest mgw, are you going regardless?
17:37 mgw forrest: not sure yet
17:37 pdayton joined #salt
17:38 forrest gotcha
17:38 pdayton left #salt
17:41 SunSparc joined #salt
17:43 jumperswitch_ joined #salt
17:45 kallek joined #salt
17:49 krissaxton joined #salt
17:51 krissaxton joined #salt
17:54 jimallman joined #salt
17:55 sebgoa joined #salt
17:56 Jahkeup joined #salt
17:57 saurabhs joined #salt
17:58 baniir joined #salt
17:58 baniir a pkg state is failing with: "The following packages failed to install/update: mongodb-10gen." this happens on an initial run of highstate but installs successfully on a sequential run. how can i get more information about the error?
17:59 forrest baniir, you can add the -l debug option for a start
17:59 forrest that sounds like it might fail due to a dependency error, as in something occurs in the run after the package tries to install.
17:59 forrest Could you post your state?
17:59 forrest also what version of Salt are you on?
18:00 krissaxton joined #salt
18:01 bhosmer joined #salt
18:02 giantlock joined #salt
18:03 Ryan_Lane joined #salt
18:04 baniir forrest: it's identical to https://github.com/saltstack/salt-states/blob/master/small/mongodb-10gen/init.sls and i'm on stable salt (0.17.0.1-1precise)
18:04 forrest interesting, any additional details from the -l debug?
18:05 Gifflen joined #salt
18:05 carmony does thacht hang out on IRC much anymore? :P Wanted to thank him for his bug fix
18:06 ashtonian joined #salt
18:06 forrest carmony, no
18:06 cro1 joined #salt
18:06 forrest UtahDave pushed him out of the IRC because he was spending too much time answering questions and not enough time working from what I understand :P
18:07 forrest baniir, can you do me a favor? Try to build a clean machine, run the highstate with the -l debug option, then BEFORE you run the state again when it fails, check on the server to see if with just a yum list mongodb-10gen, or apt-get install mongodb-10gen (depending on OS) if it pulls it
18:07 forrest I'm curious to see if it isn't cleaning the repo information for some reason.
18:08 jacksontj joined #salt
18:08 baniir forrest: sure; a clean machine is provisioning now
18:09 forrest Also are you on ubuntu/debian or a rhel variant?
18:09 baniir forrest: i'm on ubuntu 12.04
18:09 forrest ok
18:09 baniir machine is ready. you'd like me to run "apt-get install mongodb-10gen" now?
18:10 forrest no
18:10 forrest run the highstate first with the -l debug option, so we can try to get more error details
18:10 forrest past 'this will not install'
18:10 baniir one run of highstate occurs during the provisioning
18:10 forrest oh
18:11 forrest So you see the error during provisioning?
18:11 forrest Were you able to modify the command to execute with the -l debug option?
18:11 baniir yes, it ran with -l debug
18:11 forrest ok awesome, any additional details?
18:12 Thiggy joined #salt
18:13 baniir it looks like there is a summary at the end where the comment reads what I provided earlier: "The following packages failed to install/update: mongodb-10gen." I'm looking through the output above for more details.
18:14 forrest ok, once you finish going through that, see if apt-get install mogodb-10gen lists the package as available for install, or if you have to refresh the cache, apt-cache... something? I never remember.
18:15 terminalmage cedwards: you should check out the develop branch when you get a chance. just added FreeBSD ports support
18:16 terminalmage cedwards: needs a state module to provide state support, but works well via the CLI as-is
18:16 edroid Where's my kwargs when module is called from salt.states.module?   Details at https://groups.google.com/forum/#!topic/salt-users/_hrsQd5CLvM
18:16 terminalmage cedwards: would like it if you could test it and try to break it
18:18 baniir forrest: except for the one pkg state, things appear normal; trying the manual install...
18:18 forrest ok cool, I just want to see if the cache wasn't cleared up for some reason
18:18 amckinley joined #salt
18:19 baniir forrest: WARNING: The following packages cannot be authenticated!
18:20 forrest interesting.
18:20 forrest so here: https://github.com/saltstack/salt-states/blob/master/small/mongodb-10gen/init.sls#L8
18:20 forrest both the redhat and ubuntu versions have a skip_verify
18:20 forrest but I didn't know file.managed had a skip_verify
18:21 forrest it's not documented here either: http://docs.saltstack.com/ref/states/all/salt.states.file.html
18:21 ronc joined #salt
18:22 jalbretsen joined #salt
18:22 UtahDave joined #salt
18:22 krissaxton1 joined #salt
18:22 forrest baniir, can you run apt-key list?
18:23 mlanner_ joined #salt
18:23 forrest and see if 7F0CEB10 exists?
18:24 forrest and cat /etc/apt/sources.list.d/10gen.list
18:25 krissaxton joined #salt
18:25 baniir forrest: from apt-key list… pub   2048R/7F0CEB10 2010-02-05
18:25 forrest ok so the key is there.
18:25 baniir and cat: deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
18:26 troyready joined #salt
18:26 Bortels joined #salt
18:26 amckinley joined #salt
18:26 amasingh joined #salt
18:27 amasingh hey i had a question
18:27 amasingh can i use easy install with salt?
18:28 forrest baniir, is there a way with apt to check the key that's trying to be authenticated when you do an install?
18:28 tyler-baker joined #salt
18:29 backjlack joined #salt
18:31 forrest amasingh, you can install salt with easy_install, I don't think there is a state module for using it though
18:31 amasingh yea i wanted to have a pkg installed in a state module
18:32 amasingh thanks for the info
18:32 forrest you would have to run it as a cmd then
18:32 amasingh ok
18:34 NetworkN3rd joined #salt
18:37 amahon joined #salt
18:38 bhosmer joined #salt
18:40 Gifflen joined #salt
18:41 Ryan_Lane joined #salt
18:42 Jahkeup_ joined #salt
18:44 felixhummel joined #salt
18:44 linuxnewbie joined #salt
18:44 linuxnewbie joined #salt
18:44 gldnspud_ joined #salt
18:45 pass_by_value joined #salt
18:48 Lue_4911 joined #salt
18:49 philip741 joined #salt
18:50 philip741 Hi I was wondering if saltstack can do something like exported resources on puppet. I have something where I want something to run on a master server when a client joins and I'm not certain how to handle that.
18:51 philip741 It's for a ipa client install I need to run some things on the ipa master that are only triggered by the client install
18:53 drags philip741: check out salt mine: http://docs.saltstack.com/topics/mine/index.html
18:53 drags for more advanced usages check out peer communication: http://docs.saltstack.com/ref/peer.html
18:54 drags hopefully someone else can provide a little more context, I'm running out the door here :)
18:54 UtahDave philip741: A good way to do that is to use the reactor system
18:55 UtahDave drags is correct, the peer system is very useful, too
18:56 UtahDave philip741: The reactor sits on the Salt Master listening to the event bus. You can listen for the minion acceptance event to come by, or have the minion send a custom event that you choose
18:56 UtahDave philip741: Then the Reactor can take action based on the info in the event that it caught.
19:02 kermit joined #salt
19:02 baniir joined #salt
19:03 baniir forrest: re your question about checking auth key during apt install, not sure. looking into it...
19:03 pentabular joined #salt
19:05 philip741 ah nice thanks I will check out the link and reactor
19:06 m0hit joined #salt
19:12 MeanderingCode left #salt
19:14 adepasquale joined #salt
19:19 jdenning_ joined #salt
19:20 jdenning joined #salt
19:27 StDiluted joined #salt
19:30 jeffasinger Is it usually a bad thing to use cmd.run very often?
19:31 oraqol joined #salt
19:31 oraqol hello all! :]
19:31 oraqol Can I bother anyone with a quick question?
19:32 oraqol [echo echo echo...]
19:33 Ryan_Lane1 joined #salt
19:33 UtahDave jeffasinger: That's totally fine.  If in doubt, shell out.   :)
19:33 fisklements joined #salt
19:33 UtahDave oraqol: go ahead and ask your question
19:35 oraqol Ok, thanks
19:35 UtahDave jeffasinger: If I find I'm using cmd.run a lot, I'll often create a custom module to encapsulate those cmds
19:36 oraqol So I'm trying to script installation of the salt-minion package, after apt-getting, I pkill salt-minion, then service salt-minion start
19:36 baniir forrest: sorry about the disconnection mid conversation earlier. something came up. i'm not seeing a way to show the key used during an apt install
19:36 oraqol but that does not create a config file in /etc/salt/
19:37 oraqol what gives?
19:37 UtahDave oraqol: what OS?
19:37 teebes joined #salt
19:37 oraqol ubuntu server 10.04
19:37 cro1 joined #salt
19:40 UtahDave oraqol: I'm not sure. If you install salt directly from the cli does it create the config file correctly?
19:40 cro joined #salt
19:40 kaptk2 joined #salt
19:41 oraqol it creates /etc/salt/ but there is no minion config file in there
19:41 oraqol there is a minion.d directory tho in /etc/salt
19:41 UtahDave oraqol: but still no config file?
19:41 oraqol nope
19:41 oraqol lemme try one more time
19:41 UtahDave ok
19:42 Jahkeup joined #salt
19:43 ipmb joined #salt
19:43 m0hit_ joined #salt
19:44 oraqol I think I'm just going to scp a the config file over from my host machine...still, this is weird.
19:47 UtahDave oraqol: it could be a packaging problem. I don't think we have a lot of people using 10.04 anymore.
19:47 fspot joined #salt
19:47 oraqol Ok, thank kyou!
19:47 UtahDave oraqol: in fact, would you mind opening an issue on that?  I'm thinking that our Ubuntu packager should take a peek at this.
19:47 gildegoma joined #salt
19:47 UtahDave Corey: what do you think?
19:48 oraqol Something to note, this occurs after I apt-get remove salt-minion
19:48 oraqol and rm -rf /etc/salt
19:48 oraqol then try to do a re-install which does recreate /etc/salt, but does not recreate the default config file
19:49 UtahDave oraqol: can you try   apt-get purge salt-minion  instead?   apt may think the config still exists and so it won't attempt to overwrite it
19:49 oraqol ok, lemme try
19:49 oraqol brb
19:49 Corey UtahDave: I think that's a bit interesting and doesn't match what I saw in testing.
19:50 Corey I'm not saying I didn't screw up somewhere, but I'd want to see it purged and then replaced. :-)
19:50 Corey If it's still there then I'll accept fault.
19:50 Corey Er, still missing. :-)
19:50 oraqol Bingo!
19:50 oraqol Genius!
19:51 Corey Yay.
19:51 cachedout joined #salt
19:51 * Corey fastens the Shame Cone around UtahDave's neck for doubting him
19:51 oraqol Sweet, thanks guys, much appreciated!
19:52 oraqol Salt is awesome, btw.  Not sure what we did before it :/
19:52 juanlittledevil joined #salt
19:52 UtahDave :)  Corey!  I asked him to try purging first!  I only pinged you because I depend on your awesomeness!
19:52 cjh salt: any word on when the docker control changes are going to land?
19:53 UtahDave oraqol: Glad Salt is working great for you!  A lot of people have worked to make it awesome
19:53 pentabular joined #salt
19:53 UtahDave cjh: are they in develop?
19:53 cjh i believe so
19:54 cjh UtahDave: i'm looking for the thread talking about it
19:55 cjh https://github.com/kiorky/docker this guy had the changes
19:56 cjh sorry wrong repo.  :)
19:57 cjh UtahDave: here we go.  https://github.com/makinacorpus/salt/compare/docker
19:59 UtahDave Well, based on that comparison it doesn't look like he has sent a pull request yet
20:00 srage joined #salt
20:01 LarsN joined #salt
20:01 UtahDave cjh: If you want you could ping him and see where he's at.
20:03 ronc joined #salt
20:05 adepasquale joined #salt
20:06 cjh UtahDave: ok i'll do that.  I'd really like to have this capability :).  Going forward are you going to wait for major rev's for big changes like this or just put them into the <date> release?
20:07 UtahDave nope.  New features get added in each point release.  Only bug and security fixes appear in the minor releases
20:07 UtahDave for example 0.17.1 should be released in a day or two.  It will only have bug fixes
20:07 cjh UtahDave: sweet.  i like that way of doing things.  add new stuff often
20:07 cjh right
20:08 UtahDave Yeah, we like frequent new stuff, too.  :)
20:08 akoumjian the_drow: As anything with salt, figure out how you would do it manually, then automate. In your case, I would probably try installing an older version via the 'git' install_type, using the git release flag as the install_args
20:08 shinylasers joined #salt
20:08 cjh any suggestions for organizing my sls files?  I'm starting to amass a large amount of sls files in one dir now.  Maybe I should organize them into folders the way chef does?
20:09 akoumjian the_drow: Most of what salty-vagrant does is transparently redirect most of the work to the boostrap script. You can pass it args via "install_type" and "install_args". Usually only the latest version of salt is in a distro's repos, so to install an older version of salt you will want to install via git.
20:10 pentabular1 joined #salt
20:10 UtahDave Yeah, people will generally create themed subdirectories.   nginx/init.sls  nginx/extras.sls   mysql/init.sls  mysql/server.sls
20:11 cjh UtahDave: yeah i think the theme'd dirs are the way to go.  How do I import those into my top.sls file then?
20:11 ashtonian joined #salt
20:12 UtahDave base:
20:12 UtahDave '*':
20:12 UtahDave - mysql
20:12 UtahDave - mysql.server
20:12 UtahDave - nginx
20:12 UtahDave - nginx.extras
20:12 cjh oh ok with a .  easy enough :)
20:13 UtahDave cjh: mysql/init.sls   would just  be   - mysql
20:13 UtahDave cjh: mysql/server.sls   would be  - mysql.server
20:13 cjh i see
20:14 Jahkeup joined #salt
20:15 pentabular joined #salt
20:15 forrest baniir, It's all good, I had a production issue pop up as well then had to go get lunch, did you figure out itou?
20:15 forrest *it out
20:20 Jahkeup joined #salt
20:24 baniir forrest: not yet. an apt-get update is required before mongo will install without warning
20:25 forrest interesting, so that makes me wonder if either A. the mongo it's trying to pull down is from a repo you already have configured? Or B. Is the apt-get update actually applying that key to the system, where as the simple import is not. Then when it reruns the system, since before installing a package it updates the repo database, you're good to go
20:26 kiorky cjh: the eec module is near ready but i got delayed by other project interferences and real life for the finish of the state module
20:26 kiorky cjh: i have locally finished the state module at 70%
20:26 kiorky i must finish the 'script' and 'run' functions.
20:26 kiorky cjh: after that, i ll throw the pullrequest
20:27 cjh kiorky: awesome
20:27 cjh i'm really looking forward to it
20:27 forrest_ joined #salt
20:27 cjh i want to whip up an sls file that keeps certain containers running and starts them up at boot time
20:29 kiorky cjh: cjh http://pastebin.ca/2467076
20:29 kiorky cjh: something like that isnt it ?
20:29 kiorky :)
20:31 kiorky cjh: just pushed my local changes ... but it's in a workinprogress status.
20:31 kiorky cjh: ( git@github.com:makinacorpus/salt.git )
20:32 jacksontj joined #salt
20:37 forrest joined #salt
20:37 liamc left #salt
20:38 cjh kiorky: you da man
20:43 baniir forrest: dropping down to salt 0.16, the issue goes away
20:43 UtahDave baniir: can you pastebin your sls files?
20:44 forrest really? Ok I wonder if there is a difference because that state was written specifically for 0.16
20:44 jacob_s If I'm writing a custom module how do I access pillar data inside it?
20:45 forrest UtahDave, https://github.com/saltstack/salt-states/blob/master/small/mongodb-10gen/init.sls
20:45 jacksontj joined #salt
20:45 cjh i have noticed in salt 0.17 my apt repo management is broken.  16 works fine though
20:46 forrest cjh, interesting, in what sense is it broken
20:47 cwright cjh: thats a known issue and i think has already been fixed.  remove the slash from the end of the package url
20:47 cjh forrest: it gives me an error saying it can't confirm the repo status
20:47 forrest weird
20:47 UtahDave forrest: whoa, why are you doing it that way?
20:47 cjh i can fpaste my sls file if you'd like
20:47 forrest I'm not, baniir is using that sls
20:47 forrest I was just re-linking it
20:47 cwright cjh: https://github.com/saltstack/salt/issues/7696
20:48 forrest UtahDave, since when does file.managed have skip_verify ?
20:48 forrest that state seemed odd to me
20:48 cjh forrest, cwright: http://fpaste.org/47026/87012713/
20:49 cjh for instance that fails in 0.17
20:49 UtahDave forrest: Why aren't you using the pkg repo state?
20:49 forrest UtahDave, lol I'm not using that sls, that's just what baniir was trying to get working.
20:49 cwright cjh: did you look at that link i just sent?
20:49 cjh i did
20:49 cjh cwright: so if i just drop the / before {{release}} i should be good?
20:49 cwright cjh: yes
20:50 cjh hah that fix is too easy ;)
20:50 forrest UtahDave, it was more the fact that it took two runs, only thing I could think of causing it was the fact the database doesn't get rebuilt
20:50 forrest but yea, that state should be updated at some point, or simply removed.
20:50 UtahDave the pkgrepo state does all that, forrest
20:50 forrest I know
20:51 welby_away joined #salt
20:51 forrest You asked for the state that baniir was trying to get working, and that was the one he's trying to get to work in a single run :P
20:51 _ikke_ Should states defined in a top.sls automatically be applied to the hosts matching environment?
20:54 UtahDave baniir: You really should use the pkgrepo state for that. It will simplify your life.
20:54 jacob_s the answer to my question was __pillar__
20:54 UtahDave _ikke_: yeah, when a minion matches one of the criteria in the top.sls, it will execute the listed sls files under it
20:55 UtahDave jacob_s: sorry, didn't see your question there.
20:55 jacob_s It's cool, there's a lot of chatter.
20:55 berto- joined #salt
20:55 jumperswitch joined #salt
20:56 baniir UtahDave, forrest: thanks. missed a few of your messages, but I'll look into your suggestions and follow up
20:57 fspot left #salt
20:57 forrest baniir, yea np. At least we got to the bottom of it, since the database wasn't being updated.
21:01 cewood joined #salt
21:01 _ikke_ How can I debug if nothing seems to happen?
21:01 forrest _ikke_, run the command with the -l debug option.
21:03 donatello joined #salt
21:04 _ikke_ I'
21:04 _ikke_ I'm trying salt to get automatically apply states to minions
21:04 amahon joined #salt
21:04 donatello hi all!
21:04 _ikke_ I have created a /srv/salt/top.sls
21:05 forrest _ikke_, when you run state.highstate it's going to apply the setup however you've got the systems configured per groups and such
21:05 Thiggy joined #salt
21:06 _ikke_ You need to manually run that command to get salt to apply the state?
21:06 fragamus joined #salt
21:06 donatello I'm trying to use salt-cloud with salt 0.17.0 and am having weird problems while launching servers on AWS. The launched machines are running Debian 7. Are there any known issues regarding this?
21:06 _ikke_ forrest: This is the setup I have: https://gist.github.com/Ikke/6998664
21:07 forrest _ikke_ you need to apply the highstate yes, did you go through the walkthrough?
21:07 UtahDave _ikke_: yeah, run this to apply the top.sls      salt '*' state.highstate
21:07 donatello also would this be the right place to ask about salt-cloud? :)
21:07 _ikke_ forrest: Yes, but maybe a little too fast
21:07 UtahDave _ikke_:   or for one minion       salt 'minion-name' state.highstate
21:08 _ikke_ right
21:10 troyready joined #salt
21:11 forrest ok so _ikke_, what part are you confused on with applying the states?
21:11 m0hit joined #salt
21:13 _ikke_ The part where you manually have to say that the state needs to be applied
21:13 _ikke_ Somehow I had the notion that you define the state, and that state gets applied automatically
21:14 _ikke_ I missed this paragraph: http://docs.saltstack.com/topics/tutorials/starting_states.html#running-and-debugging-salt-states
21:16 forrest oh ok, cool
21:22 ronc joined #salt
21:29 kermit joined #salt
21:33 cro joined #salt
21:33 jacob_s I deleted a file in my salt/_modules folder and then tried to sync that change and it seems to have broken my salt-call.
21:34 joehh joined #salt
21:35 jacob_s I fully deleted my _modules folder and its seems to be okay. But I was getting an error of the form
21:35 berto- is it possible to run salt on an arbitrary sls file.  for example, if i had a .sls file in ~/tmp/foo.sls, run salt like so: salt-call ~/tmp/foo.sls ?
21:35 jacob_s salt-call '*' state.sls foo
21:36 Thiggy joined #salt
21:36 berto- jacob_s: without a master, without a minion running, just a .sls file.
21:36 jacob_s salt-
21:36 jacob_s salt-call --local state.sls foo
21:39 rgbkrk joined #salt
21:40 berto- jacob_s: almost, but it still looks for the sls file in /srv/salt
21:40 jacksontj joined #salt
21:42 jacob_s ln -s ~/tmp/foo.sls /srv/salt && salt-call --local state.sls foo
21:42 jacob_s is the best I've got.
21:43 jacob_s guess that should be /srv/salt/
21:43 berto- jacob_s: hacking the code.  :)
21:44 rpd_ joined #salt
21:48 rpd_ New to saltstack. Using 16.4. I am trying to write a custom grain in a [file_root]/_grains file. If the target grain on a minion is set beforehand, the execution of the_grains file does not take effect. It seems that grains set with grains.setval take precedence. Is this the expected behavior?
21:52 UtahDave rpd_: There is a precedence. Let me see if I can find it
21:52 pdayton joined #salt
21:53 jlund joined #salt
22:00 rpd_ That would be great. Also, since I am suing 16.4 and there is no grains.remove yet, how can I clear a grain from a minion so I can test my custom grain code in _grains?
22:02 UtahDave rpd_: you can just delete the grains file
22:03 juanlittledevil1 joined #salt
22:05 rpd_ what is the path of this file?
22:05 UtahDave rpd_: I think it's /etc/salt/grains
22:08 Ryan_Lane joined #salt
22:11 rpd_ yes, this is the right file. Looking at the response, it seems that the grains in /etc/salt/grains take precedence and overwrite the grains that might be coming from _grains. Can you confirm?
22:12 cbloss can i let specific users on a minion run a salt-call git.pull command?
22:12 cbloss I've tried using the client_acl option on the minion config, but didn't seem to work
22:16 juanlittledevil joined #salt
22:18 shinylasers joined #salt
22:18 druonysuse I am having trouble mounting a fuse filesystem with mount.mounted.
22:18 shinylasers joined #salt
22:19 druonysuse I have the - device pointing to a remotesystem:/mountpoint
22:19 druonysuse and I have - fstype set to fuse
22:20 druonysuse in - opts I have tried -t glusterfs and just glusterfs
22:21 druonysuse is there a trick to using mount.mounted?
22:22 jacksontj joined #salt
22:23 UtahDave cbloss: I think client_acl doesn't work minion side.  You'll need to use sudo for that
22:23 cbloss UtahDave: that is what I figured. Thanks
22:24 druonysuse this is what I have http://paste.opensuse.org/51756682
22:25 druonysuse salt runs and says it mounts it (even highlights in green)
22:25 druonysuse but it does not show with a df or mount
22:25 druonysuse also does not show up in /etc/fstab
22:28 snuffeluffegus joined #salt
22:29 juanlittledevil joined #salt
22:33 Kholloway joined #salt
22:33 berto- jacob_s: https://github.com/saltstack/salt/pull/7861
22:35 berto- not sure this is generally useful to the entire world quite yet, but it would be nice to be able to use Salt with 0 configuration (no /etc/salt, no master, no /srv/salt directory) … just a .sls file and go.
22:38 forrest_ joined #salt
22:39 akasto joined #salt
22:39 pentabular joined #salt
22:40 elfixit joined #salt
22:40 juanlittledevil joined #salt
22:41 forrest berto, that's pretty cool
22:43 forrest hey UtahDave, when you get a minute can you update the IRC message to reflect 0.17.0? Someone came into the IRC over the weekend and was confused regarding which version was the default now (I believe the packages are done now and it is considered official right?)
22:43 UtahDave Yeah, it's not in epel yet, but 0.17.0 is the latest.
22:44 Topic for #salt is now Welcome to #salt - SaltConf in January!! http://saltconf.com | 0.17.0 is the latest | 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/
22:44 UtahDave thanks for the reminder, forrest
22:44 forrest I know it's in EPEL testing, I installed it a couple nights ago, looking forward to it getting pushe through to EPEL itself.
22:44 forrest yea np
22:44 forrest I should say I'm glad it's in EPEL testing at already!
22:44 forrest err just already, man I can't type today
22:44 berto- forrest: thanks, looks like tom thinks so too; it's merged in!  :)
22:45 oz_akan_ joined #salt
22:45 forrest berto-, I sent myself an email to add the --pillar-root if you don't get to it (or i don't monopolize my time elsewhere).
22:46 berto- ok, great.
22:46 forrest Unless you were already writing it *shrug*
22:46 UtahDave kiorky: is your docker work in salt/develop yet?
22:46 forrest my top priority right now is to try and finish the halite docs
22:46 drags if I have a file resource that happens to match the file already on disk (installed by a package) and I have a cmd that wait's on that file, will the cmd run?
22:47 forrest The state has to change for cmd.wait to take effect drags
22:48 berto- forrest: i haven't started yet, it's all yours.
22:48 forrest berto-, well, if you write it go for it, like I said, halite docs first :P
22:50 baniir forrest, UtahDave: thanks for the help today. pkgrepo is working nicely
22:50 UtahDave baniir: great!
22:50 forrest yea np baniir, sorry for not suggesting the usage of that earlier, I was a little obsessive over figuring out the root cause of the issue on there. If you don't mind could you please submit an issue for that state? (or put in a pull request to add your changes that use package.repo)
22:51 forrest a lot of those are still using weird out of date stuff that should be fixed/re-written
22:52 baniir forrest: about to head out, but i'm making a note to report the issue
22:53 forrest awesome thanks baniir, if you changed that state yourself you could always just put in a pull request too!
22:54 baniir forrest: sounds good
22:58 kiorky UtahDave: nope
22:59 bmatt joined #salt
22:59 bmatt hello, #salt!
22:59 UtahDave kiorky: how's that coming along? There's been a lot of interest in salt docker support.  You might get some good help on it if it were in develop
22:59 UtahDave hey, bmatt!
22:59 bmatt I've got a quick question - is there a way I can expand a state's environment within a state file using jinja or the like?
23:00 Lue_4911 joined #salt
23:00 bmatt for example, certain hosts fall into the "devqa" environment in my top.sls file, and I'd like to be able to use that to set things conditionally
23:01 Ryan_Lane joined #salt
23:01 kiorky UtahDave: well my concern is to put unfinished work in mainline
23:02 kiorky UtahDave: my fork is welcome for contributions, though
23:03 UtahDave kiorky: is it partially working?
23:03 kiorky UtahDave: exec module is done, state module is partially done
23:04 kiorky UtahDave: docstrings do not have examples (so they will break tests)
23:04 UtahDave gotcha.
23:05 kiorky UtahDave: problem is that i m hit by parallel projects ...
23:05 UtahDave what your repo link?
23:05 kiorky UtahDave: https://github.com/makinacorpus/salt/commits/docker
23:05 tim joined #salt
23:07 alunduil joined #salt
23:08 __number5__ kiorky: maybe create a pull request so everyone will see it if they looking for docker support
23:09 kiorky __number5__: there is a bug which reference clearly the work in progress
23:09 __number5__ you can keep working on your fork and pull request will automagically be updated
23:09 kiorky __number5__: one in salt_cloud and one in salt itself
23:09 kiorky ha, i see. ok.
23:11 UtahDave kiorky: Hey, just discussed this with Tom. We can start working on the docstrings and help out with the state module.
23:11 kiorky UtahDave: __number5__ https://github.com/saltstack/salt/pull/7864
23:11 kiorky UtahDave: in the state module, what is left to do is the run and script methods
23:12 UtahDave kiorky: cool!  Tom's going to review it and we'll help!  Thanks!
23:12 cro joined #salt
23:13 bhosmer joined #salt
23:14 kiorky UtahDave: i have updated the PR to let this info in
23:15 __number5__ haha, Tom just merged the pull request
23:15 UtahDave awesome, thanks, kiorky!  This is good stuff
23:15 cro joined #salt
23:16 pentabular joined #salt
23:16 redondos joined #salt
23:16 redondos joined #salt
23:17 kiorky UtahDave: why merging it ?
23:17 kiorky it is not finished !!
23:17 xt UtahDave: did whiteinge stop hanging out in IRC or what?
23:18 kiorky UtahDave: i may have a bit too much of a quality level, thought :p
23:18 UtahDave lol  don't worry.  Tom's working on updating the docstrings right now
23:20 pentabular1 joined #salt
23:21 forrest xt, I haven't seen him in about a month
23:22 UtahDave xt: whiteinge is here. He borked his irc bouncer.   Want me to yell at him for you?
23:22 xt UtahDave: oh ok. I was just curious. I had something silly to show him :-)
23:23 kiorky UtahDave: i pushed some comments
23:24 mwillhite joined #salt
23:26 bmatt hm. so it doesn't look like I can set environment-specific pillar values when the pillar store is back-ended by git?
23:26 bmatt I swear at one point I could just do {% if env == "stage" %} and it would work, but it appears not
23:28 amahon joined #salt
23:29 UtahDave bmatt: I'm not sure on that actually.  You might ask on the mailing list
23:30 UtahDave kiorky: have you pushed a pull req with that?
23:30 UtahDave kiorky: by the way, Tom's going through working on the docstrings. He said that your module is incredibly well done.
23:31 kiorky UtahDave: i mean, i wrote comments on the pull reuest, no extra commits
23:31 kiorky UtahDave: thx !
23:32 UtahDave xt: I told whiteinge.  do you have his email?
23:33 xt UtahDave: I'll ping him on twitter
23:36 pdayton joined #salt
23:38 UtahDave Time to head home. See you all tomorrow.
23:38 saurabhs joined #salt
23:39 juanlittledevil joined #salt
23:43 m_george left #salt
23:53 ipmb joined #salt

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