Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-12-10

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

All times shown according to UTC.

Time Nick Message
00:00 ubercore joined #salt
00:00 ubercore This feels like a silly problem I've fixed before, but when trying to upgrade salt to 0.17.1, I see this: "Requested salt==0.17.1, but installing version 0.17.0"
00:01 ubercore Any tips?
00:02 kermit joined #salt
00:02 fllr joined #salt
00:02 jkleckner joined #salt
00:07 schristensen where does the env for a minion get set?  I'd like to use something like this in a state file: - source: salt://rsyslog/files/rsyslog.conf-{{ env }}
00:07 schristensen assuming that env would be something like 'base', 'dev', 'qa', etc.
00:07 schristensen but that's not what I'm seeing.  perhaps I don't know where env is set.
00:08 schristensen in top.sls I have different environments, and no matter where I place a certain minion, the env for it is always 'base'
00:09 jkleckner joined #salt
00:09 markizan1 joined #salt
00:10 ubercore it depends on your filesystem backend configuration, I believe
00:10 jkleckner joined #salt
00:10 MZAWeb joined #salt
00:12 schristensen backend configuration?  meaning something in /etc/salt/master?
00:15 pipps_ joined #salt
00:16 ubercore you set the location that different environments are served from in the master config for the file backends
00:16 ubercore then in your top file, the matchers are what sets up the environment a minion pulls files from
00:16 ubercore that's how it works afaik
00:17 jacksontj joined #salt
00:19 schristensen yeah, that's what I thought I did.  but all I get is 'base'.  hmm.
00:19 ubercore did you set any minions to be matched in other environments?
00:20 ubercore https://salt.readthedocs.org/en/latest/ref/states/top.html
00:21 zandy joined #salt
00:25 Kizano I'm curious to know if there is any advanced documentation on the overstate.
00:25 Kizano I've been able to setup a couple of environments, all with their own salt-master and about 4-5 minions each.
00:25 Kizano I can run a highstate/state.sls on a minion individually and get the results I want on a single machine and if I run them in order.
00:26 Kizano I read the page at http://docs.saltstack.com/ref/states/overstate.html but it appears this is the only thing I can find on the subject.
00:26 Kizano I found some docs on the reactor system, I think that's interesting :3
00:33 Kizano schristensen: "backend configuration" - while you're configuring the salt-master ( http://docs.saltstack.com/ref/configuration/master.html ), you can use a gitfs backend ( http://docs.saltstack.com/topics/tutorials/gitfs.html ) or file_roots backend ( http://docs.saltstack.com/ref/file_server/file_roots.html ).
00:36 crazysim joined #salt
00:39 schristensen thanks
00:39 schristensen I re-ordered my top.sls.  I didn't realize that the order the environments were listed is significant.  I had base: at the top of the file and that was my problem.
00:39 schristensen it is now last.
00:39 Kizano schristensen: really ??!?!? O.o
00:40 EntropyWorks joined #salt
00:40 londo__ joined #salt
00:41 Sheco_ joined #salt
00:41 Linuturk_ joined #salt
00:41 dnsn_ joined #salt
00:42 Guest42540 joined #salt
00:42 pipps__ joined #salt
00:43 ubercore I think that might be a misleading interpretation
00:43 ubercore the environment is the environment that the state file sls is running in
00:44 beardo_ joined #salt
00:44 schristensen_ joined #salt
00:44 cce_ joined #salt
00:44 gmoro_ joined #salt
00:44 marcinkuzminski_ joined #salt
00:44 ubercore so the same node could have multiple environments, depending on where the sls is being run
00:46 marcinkuzminski joined #salt
00:46 echos joined #salt
00:46 ubercore it sounds like you really want to be using grains or hostname conventions to put nodes into environments
00:47 zandy joined #salt
00:47 Jahkeup joined #salt
00:47 cyrusdavid joined #salt
00:48 eculver_ joined #salt
00:48 kyusan_ joined #salt
00:50 frosty996 left #salt
00:50 mjulian joined #salt
00:50 mjulian joined #salt
00:51 vu joined #salt
00:51 bbinet joined #salt
00:52 dccc joined #salt
00:56 fishpen0 joined #salt
00:57 Nazca__ joined #salt
01:00 sroegner joined #salt
01:02 mhayden joined #salt
01:04 jimallman joined #salt
01:12 N-Mi joined #salt
01:12 N-Mi joined #salt
01:12 AdamSewell joined #salt
01:12 KyleG Anybody else having google apps issues
01:13 redondos joined #salt
01:14 joehh joined #salt
01:23 KyleG Face-palm………nvm
01:27 zandy joined #salt
01:34 fandikurnia01 joined #salt
01:34 fllr joined #salt
01:39 jslatts joined #salt
01:41 Gifflen joined #salt
01:47 Gifflen joined #salt
01:53 markizano joined #salt
01:53 Gifflen joined #salt
01:53 favadi joined #salt
01:54 Kizano left #salt
01:58 * JordanRinke claps for KyleG
02:00 KyleG yeah yeah.
02:00 JordanRinke My favorite part about development, might be giving programs names.
02:00 jcockhren JordanRinke: +1
02:00 JordanRinke I dub thee.... 8track
02:01 shinylasers joined #salt
02:08 pass_by_value joined #salt
02:09 anuvrat joined #salt
02:16 redondos joined #salt
02:17 cewood joined #salt
02:20 shinylasers joined #salt
02:22 fllr joined #salt
02:29 alunduil joined #salt
02:30 nicker joined #salt
02:32 srage joined #salt
02:35 davidfischer joined #salt
02:49 davidfischer joined #salt
02:51 th3reverend1 joined #salt
02:55 xl1 joined #salt
03:01 sroegner joined #salt
03:05 pipps_ joined #salt
03:12 ccase joined #salt
03:17 tamentis joined #salt
03:17 ccase Anyone having trouble with salt-cloud and the ec2 provider? I'm getting 'SignatureDoesNotMatch' from a previously working config when creating new vms. -Q seems to work fine, it just fails when creating new vms. (salt-cloud 0.8.11, salt 0.17.2)
03:18 Gifflen joined #salt
03:19 [diecast] joined #salt
03:19 ahale joined #salt
03:23 dstanek joined #salt
03:23 cryptomnesia joined #salt
03:25 blee joined #salt
03:29 avienu joined #salt
03:33 bhosmer joined #salt
03:34 jimallman joined #salt
03:39 forresta joined #salt
03:51 mgw joined #salt
04:02 mgw joined #salt
04:03 anuvrat joined #salt
04:09 mgw joined #salt
04:09 AdamSewell joined #salt
04:10 nmistry joined #salt
04:11 davet joined #salt
04:24 vejdmn joined #salt
04:30 shinylasers joined #salt
04:34 pipps joined #salt
04:41 joshe joined #salt
04:42 opapo joined #salt
05:02 sroegner joined #salt
05:02 pipps_ joined #salt
05:02 srage_ joined #salt
05:04 shinylasers joined #salt
05:08 lyska joined #salt
05:21 pipps joined #salt
05:23 pass_by_value joined #salt
05:26 mgw joined #salt
05:26 zandy joined #salt
05:27 dstanek joined #salt
05:28 favadi joined #salt
05:37 ro_ikou joined #salt
05:43 ckao joined #salt
05:46 dstanek joined #salt
05:57 zandy joined #salt
06:06 middleman_ joined #salt
06:14 Destro joined #salt
06:23 redondos joined #salt
06:27 zandy joined #salt
06:32 pipps_ joined #salt
06:33 zandy joined #salt
06:54 pengunix joined #salt
06:57 matanya joined #salt
07:02 dstanek joined #salt
07:02 sroegner joined #salt
07:06 fxhp joined #salt
07:06 balltongu joined #salt
07:07 fllr joined #salt
07:17 Katafalkas joined #salt
07:31 mgw joined #salt
07:37 redondos joined #salt
07:44 fandikurnia01 joined #salt
07:45 juasiepo joined #salt
07:45 fandikurnia01 joined #salt
07:47 fandikurnia01 joined #salt
07:52 halfss joined #salt
07:59 junedm joined #salt
07:59 junedm left #salt
08:01 aleszoulek joined #salt
08:02 balboah joined #salt
08:07 fllr joined #salt
08:09 Iwirada joined #salt
08:11 carlos joined #salt
08:11 harobed joined #salt
08:12 srage joined #salt
08:17 balboah joined #salt
08:37 redondos joined #salt
08:42 mike251 joined #salt
08:48 networkpadawan joined #salt
08:49 bejer joined #salt
08:50 slav0nic joined #salt
09:00 fandikurnia01 joined #salt
09:03 sroegner joined #salt
09:09 fllr joined #salt
09:12 giantlock_ joined #salt
09:17 oleksiy joined #salt
09:24 alunduil joined #salt
09:24 redondos joined #salt
09:27 Iwirada is there a possiblity to access pillars by a regex pattern?
09:28 Iwirada or all pillars in a sub dictionary?
09:29 malinoff Iwirada, do you want to target by pillar regex or what?
09:30 Iwirada the idea is to have a list of mac addresses and map it to hosts names
09:30 Iwirada line node001... nodeN and somehow iterate through them
09:32 Iwirada or maybe there is a bettter approach?
09:33 malinoff Iwirada, I can't understand on what layer you want to do that. In a custom execution module, or in state file rendered by jinja (or by python renderer)
09:33 malinoff Or somewhere else
09:33 malinoff Please, clarify your situation
09:33 Furao joined #salt
09:34 Iwirada malinoff: the situation is as follows:
09:35 Iwirada i need to set up a cluster to do some high performance computing. yet we got no idea, whether it will be ec2, or custom computers setup somewhere
09:35 Iwirada we also don't know the number of computers, etc
09:35 Iwirada only one master and several nodes
09:36 Iwirada so the idea is to use the master computer as salt-master and configure all the nodes
09:37 Iwirada at some point i have to assign all nodes fixed ip addresses and hostnames so i can reach them without any ssh conflicts from the master
09:37 jeddi Iwirada: how are you provisioning the machines?
09:37 malinoff Iwirada, do you use salt-ssh without installing salt-minions?
09:37 urba joined #salt
09:38 Iwirada i havent decided on whether to use salt-ssh, or salt-minion - currently i go with salt-minion
09:38 Iwirada jeddi: what do you mean with that question?
09:38 malinoff Iwirada, so you don't need to think about hostnames, mac addresses, etc
09:39 Iwirada malinoff: i need hostnames for openmpi to distribute the load using ssh
09:39 jeddi Iwirada: how are the machines coming to be created - vagrant, manually, foreman, fai, kickstart, etc?
09:39 Iwirada jeddi: sorry, i am not that deep into that process - i guess currently i go with manually
09:40 Iwirada jeddi: i will have a look into that programms to see whether they fit my needs (thx for the list)
09:40 B3open joined #salt
09:40 elfixit joined #salt
09:40 malinoff Iwirada, I can't imagine how can you `distribute the load` using ssh. Probably, you mean that you go on a machine by ssh and execute some commands on it?
09:41 jeddi Iwirada: fairy nuff.  More work but makes it simpler in the sense you can put a grains configuration file onto each minion so you can later identify them (as groups).
09:41 jeddi Not that you can't automaticalyl distribute local grains configuration files, of course :)
09:41 ninkotech_ joined #salt
09:41 jeddi Iwirada: if you're pushing to amazon ec2 (you said it might be) then you're limited to a subset of provisioning tools.
09:42 Iwirada malinoff: i use openfoam with openmpi which logs into the machines and assigns them a specific computing task
09:42 jeddi Iwirada: why do they need to be contactable via ssh -- and behind that question, why do you need to have fixed ip addresses for them, can I ask?
09:42 malinoff Iwirada, I think, ansible will be a better choice for your situation
09:42 Iwirada jeddi: this is my problem, we want to stay as independent as possible, so the approach has to work as general as possible
09:42 jeddi Iwirada: salt's 'cmd.run' facility may give you sufficient access to the machines, without needing to manage ip addressing manually.
09:44 Iwirada jeddi: i was told that openmpi uses it under the hood. and you might get a fingerprint error when you contact a node with a wrongly saved fingerprint in the known_hosts file
09:45 networkpadawan joined #salt
09:45 Iwirada malinoff: i will have a look into ansible. thx
09:46 ninkotech joined #salt
09:47 jeddi Iwirada: oh, okay - i know nothing of openmpi.  interesting.
09:47 Iwirada malinoff: may i ask what the key difference between salt and ansible is?
09:47 Iwirada jeddi: i didn't know, too, 3 weeks ago
09:47 Iwirada ;)
09:47 jeddi I think ansible's constrained to ssh access only ... salt uses 0mq, and recently brought in ssh as a transport layer.  (from memory)
09:47 malinoff Iwirada, Salt is daemon-oriented, ansible is ssh-accessable
09:48 jeddi There you go :)
09:48 Iwirada so ansible is more or less the same as salt-ssh?
09:48 malinoff I'd say, salt-ssh is more or less the same as ansible
09:48 malinoff But ansible is production-ready, and salt-ssh is alpha
09:48 Iwirada i c
09:49 malinoff In most cases, salt is way better (IMHO), but when you're limited with ssh communication, I think, you should chose ansible
09:50 malinoff choose*
09:51 Iwirada i am not limited to it, but i just have to find a neat way to get salt-minion on all the nodes.
09:51 Iwirada but i will defenitely have a look into ansible - at least read some comparisons
09:51 mike251 guys,,,.... weird issue with PKG.installed: i want to install via salt the package glibc.i686  ... it is in the repo, but the error i get is  The following package(s) were not found, and no possible matches were found in the package db
09:52 che-arne joined #salt
09:52 malinoff Iwirada, the easiest way is to include salt-minion in the image you will use
09:52 Iwirada jeddi: can you give me some links for foreman, fai and kickstart, pls - google is not so helpfull in that regard (might have the wrong search terms)
09:52 mike251 i can install glibc , BUT i need glibc.i686 ..... could there be an issue with the presence of a DOT in the package name?
09:53 jeddi Iwirada: what malinoff said - if you're using ec2, then yo'ud build an AMI (image) that included salt minion.  for example.
09:54 jeddi Iwirada: search on 'provision linux machines' for some good pointers.  kickstart is a redhat/centos thing, fai is probably deprecated now, foreman was a nightmare to set up ... vagrant *prefers* virtualbox last time I looked ... I am not an expert on this side of things by any stretch.
09:54 Iwirada jeddi: wow, thx!
09:54 malinoff mike251, What OS do you use?
09:54 jeddi this is a bit dated, but will give you some pointers http://www.cyberciti.biz/tips/server-provisioning-software.html
09:54 malinoff Centos?
09:55 mike251 malinoff: centos 6.
09:55 mike251 6.4
09:55 Iwirada ok, thx
09:55 aleszoulek joined #salt
09:55 jeddi luckily most of this provisioning cruft is geared around using centos/rhel
09:56 ninkotech joined #salt
09:56 Iwirada damn, currently i am using ubuntu server -.-
09:57 malinoff Iwirada, never use Ubuntu as a server :)
09:57 Iwirada but back to my original question: is there a way to iterate over pillars in a template? ^^
09:57 Iwirada malinoff: hehe, it was the lts what got me ;)
09:58 mike251 malinoff: any ideas?
09:58 jeddi Iwirada: cobbler might be your best bet then.
09:58 malinoff Iwirada, {% for pillar_key, pillar_value in pillar.items() %} {% endfor %}
09:59 Iwirada jeddi:  http://www.cobblerd.org/ this one? so it works for ubuntu/red hat?
09:59 Iwirada malinoff: thx
10:00 jeddi Iwirada: yup - I think it's the preferred mechanism on ubuntu - well until MaaS becomes a thing.  https://help.ubuntu.com/community/Cobbler
10:00 malinoff mike251, I have no problems with installing exactly glibc.i686 on my Centos
10:01 malinoff mike251, Can you run salt-minion as `salt-minion -l debug` and pastebin the output after trying to install glibc.i686?
10:02 Iwirada i c. tbh i got no strong feelings for any linux distro. i know debian best and chose ubunut because of the debian roots and the lts. i fear that rh might overwhelm me. i will use whatever works most reliable (and as long as it's not suse)
10:02 mike251 malinoff: so instead of salt-minion -d should i run -l debug?
10:02 malinoff mike251, Right
10:02 jeddi Iwirada: stick with debian rather than engage with the ubuntu layer of cruft.
10:02 malinoff mike251, But kill all minions at first
10:03 mike251 ok malinoff
10:04 Iwirada ok :)
10:04 Iwirada thanks, for all of your input, malinoff, jeddi.
10:04 jeddi Iwirada: good luck dude :)
10:05 mike251 malinoff:  http://pastebin.com/hwtkvhs2
10:07 fllr joined #salt
10:07 mike251 malinoff: i see that the package is in the repos...  glibc.i686 : The GNU libc libraries
10:07 mike251 glibc.x86_64 : The GNU libc libraries   when i run yum search glibc
10:08 malinoff mike251, what output will you get with such state: http://pastebin.com/Nft9EDdS
10:09 mike251 malinoff: the same thing
10:10 malinoff mike251, what about `salt minion-id pkg.install glibc.i686` ?
10:11 mike251 malinoff:  that worked!
10:11 mike251 wtf? :)
10:11 malinoff mike251, interesting...
10:11 malinoff Can you open an issue on github?
10:11 mike251 malinoff: i have no idea how :D
10:12 mike251 give me please a link
10:12 malinoff mike251, https://github.com/saltstack/salt/issues?state=open
10:12 mike251 thanks malinoff
10:12 malinoff "New issue" button
10:12 bbinet hey
10:12 malinoff No problem :)
10:12 mike251 thanks
10:13 bbinet I'm wondering how can I dynamically generate some pillar data based on a grain
10:15 MrTango joined #salt
10:15 bbinet for example, I'd like to generate a pillar that contains the trailing numbers of grains['id'] (if any)
10:16 mike251 bbinet: i use php ... for that ...
10:16 mike251 to manage pillars...generate pillars
10:16 bbinet how would you do that? is the "re" python module available in sls files?
10:16 malinoff Jesus
10:16 mike251 malinoff:  ? :)
10:16 malinoff You have all python to use, why php? :)
10:16 bbinet mike251: php? I'd rather use Python or builtin salt for that if possible ;-)
10:16 mike251 malinoff:  i do not know py
10:17 malinoff mike251, Try it :)
10:17 mike251 bbinet: malinoff ... i am building a web app ... dashboard... where i drag and drop vms ... to environments and groups ... and the pillar is generated from that
10:17 bbinet There is no "Salt way" to do that?
10:17 mike251 and i am building the web app in php/ajax...crap like that
10:19 bbinet I guess it should be doable with jinja expression in the pillar sls file
10:19 mike251 bbinet:  should be ...
10:19 mike251 you can access the grains data in the jinja... and you can concatenate .. etc
10:20 mike251 {% set bla = grains['id'] + '_bla' %}
10:20 nebuchadnezzar mike251: python-flask is nice ;-)
10:20 malinoff bbinet, http://docs.saltstack.com/topics/development/external_pillars.html
10:20 mike251 or smth like that
10:20 bbinet mike251: can we use the Python re module
10:21 mike251 nebuchadnezzar: THANKS a lot
10:21 mike251 bbinet:  i have no idea ... no py skills from my side :D
10:22 bbinet mike251: something like: mypillar: {{ re.split('[^\d]', grains['id'])[-1] }}
10:22 mike251 pff... sorry bbinet... no idea..
10:23 nebuchadnezzar mike251: it's a minimal framework, using jinja2 by default for templates
10:23 mike251 nebuchadnezzar: i see that ... i like jinja
10:23 nebuchadnezzar mike251: I can only recommend you to start by http://flask.pocoo.org/docs/views/#method-views-for-apis to see what's possible ;-)
10:23 mike251 nebuchadnezzar:  i will give it a try
10:23 mike251 indeed .. i was looking for smth like that :))
10:25 mike251 nebuchadnezzar: i was using laravel so far ... with blade as a template engine
10:25 redondos joined #salt
10:28 nebuchadnezzar mike251: there is a fbone for good starting https://github.com/imwilsonxu/fbone
10:29 ntt_ joined #salt
10:29 bhosmer joined #salt
10:30 networkpadawan joined #salt
10:30 Pate_ joined #salt
10:32 mike251 nebuchadnezzar: thanks again!
10:33 nebuchadnezzar you are welcome, I'm very interessted by you projet ;-)
10:33 ntt_ Hi. how can i manage the case where i have multiple minions with a configuration file that changes only few lines per minion?
10:33 mike251 nebuchadnezzar:  ... yeah... but i already started it on laravel... and ... it is going slow anyway... i don't think i am moving away now... not sure though
10:35 nebuchadnezzar mike251: is it public?
10:36 mike251 nebuchadnezzar:  no ... i am thinking of making it public.. i started it for myself.. and to see if it can be done... I am thinking of making it publicly available... but there are custom scripts behind
10:37 mike251 i have to .. clean it up... and globalize some things
10:37 mikkn Anyone has any idea how to use core grain return data in custom grain scripts? :)
10:40 malinoff mikkn, __grains__ ?
10:40 mikkn malinoff: I know I suggested that yesterday, but that isn't it apparently. :)
10:40 mikkn malinoff: Ah! you can do __salt__['grains.get'](KEY, default)
10:40 malinoff So you can't :)
10:40 malinoff Cool :)
10:40 mikkn Maybe
10:40 mikkn I'll try that out ^^
10:46 JasonG_TA joined #salt
10:48 mikkn malinoff: Nope, not that either. :(
10:48 malinoff mikkn, expectable
10:48 mikkn malinoff: I guess it builds all grain data at the same time
10:48 malinoff Right.
10:50 mikkn I guess i could copy/paste the memory-get thing into my grain, or I could just do the calculation in jinja, but both makes me rather sad. :(
10:50 mikkn Oh, well~
10:54 Furao_ joined #salt
10:58 mikkn I guess I could write a module which does the calculation instead...
11:04 sroegner joined #salt
11:05 networkpadawan joined #salt
11:07 Pate_ How do I write a salt state that downloads a zipped file from a URL and unzips it?
11:07 fllr joined #salt
11:08 Pate_ I found the get_url function in the cp module, but this does not appear to be something I can reference in a salt state? http://docs.saltstack.com/ref/modules/all/salt.modules.cp.html?highlight=get_url#salt.modules.cp.get_url
11:25 mikkn You can reference modules through __salt__['cp.get_url'] in states. :)
11:25 mikkn Pate_
11:26 redondos joined #salt
11:27 networkpadawan joined #salt
11:39 carnedepassaro joined #salt
11:39 carmony_ joined #salt
11:41 Kraln joined #salt
11:41 mikkn malinoff: Rather happy with the final solution to my problem, though I'll admit. :) innodb_buffer_pool_size = {{ salt['mysql_data.buf_mem'](1290)|int }}M
11:41 Psi-Jack_ joined #salt
11:42 mjulian joined #salt
11:43 z3uS joined #salt
11:43 pcarrier joined #salt
11:49 alunduil joined #salt
11:52 zandy joined #salt
11:53 MZAWeb joined #salt
12:07 fllr joined #salt
12:18 zandy joined #salt
12:27 redondos joined #salt
12:29 redondos_ joined #salt
12:36 blee joined #salt
12:38 Iwirada joined #salt
12:40 Sheco joined #salt
12:40 B3open joined #salt
12:43 xl1 joined #salt
12:44 B3open joined #salt
12:47 mike251 guys does anyone know how to extract from grains['lsb_distrib_release'] (value is 6.4)  the first digit? so instead of 6.4 i need only 6
12:48 mike251 with jinja
12:50 jean-phi2ippe joined #salt
12:56 Iwirada grains['lsb_distrib_release'].split('.')[0] ?
12:56 mike251 Iwirada: i will try
12:56 Iwirada http://docs.python.org/2/library/stdtypes.html#str.split fyi
12:56 mike251 split is a py function... not a ... jinja
12:56 mike251 would that work?
12:57 Iwirada jinja is python
12:57 mike251 ah shit .. :)
12:57 Iwirada i would try it. tbh - i haven't tested it ;)
12:57 mike251 yeah... but i thought is limited... only to the ... functions on their site..
12:57 Iwirada it should compile down to python code, afaik
12:57 mike251 awesome
12:57 mike251 it workd
12:58 dstanek joined #salt
12:58 mike251 thanks Iwirada
12:58 Iwirada mike251: you're welcome :)
12:58 Pate_ Thanks, mikkn.
12:58 mike251 i didn't know that i can use py functions inside jinja
13:00 Iwirada it's worth a look, since you can also generate files with it, then
13:00 robbyt joined #salt
13:00 Iwirada e.g. in my case a dhcpd.conf or /etc/hosts
13:00 harobed_ joined #salt
13:01 mike251 yeah good to knoe
13:01 mike251 know
13:01 shinylasers joined #salt
13:04 mgw joined #salt
13:04 shinylasers joined #salt
13:05 sroegner joined #salt
13:06 JulianGindi joined #salt
13:06 bruniolos joined #salt
13:07 fllr joined #salt
13:08 networkpadawan joined #salt
13:09 blee joined #salt
13:11 sroegner joined #salt
13:13 bruniolos Hi, Please, does anyone know why the module win_useradd does not work on Windows XP?
13:13 Tekni joined #salt
13:15 bruniolos I taked a look at the win_useradd.py and noticed that HAS_WIN32NET_MODS is setted to FALSE, in consequence of import errors on win32net and win32netcon
13:15 bruniolos But I can't understand the why
13:16 dstanek joined #salt
13:18 mike251 hey again ... is it possible to run a state that will manage a file, BUT not to overwrite the file, and just return the differences ? ... any ideas?
13:19 mikkn mike251: return the differences where?
13:19 mike251 mikkn: as json for example
13:19 mike251 --out=json
13:19 mike251 not overwrite the minion file... just compare... and return FALSE if they do not match .. or smth like that
13:20 mikkn mike251: To another state or so? Should it be permanently blocking until there are no differences?
13:20 mike251 yeah mikkn that is fine
13:27 jakubek its normal when for loop over pillar is adding extra empty line?
13:28 Iwirada jakubek: maybe this helps you: http://jinja.pocoo.org/docs/templates/#whitespace-control
13:28 toastedpenguin joined #salt
13:28 jakubek Iwirada: yes it will, thanks :)
13:29 Iwirada jakubek: you're welcome :)
13:29 redondos joined #salt
13:30 jakubek Iwirada: -%} worked like a charm, thank you ;-)
13:31 benno joined #salt
13:31 benno left #salt
13:32 mikkn mike251: you can set - replace: False on the file.managed state, I guess
13:33 mikkn mike251: http://docs.saltstack.com/ref/states/all/salt.states.file.html#salt.states.file.managed
13:34 bruniolos joined #salt
13:35 fllr joined #salt
13:35 mike251 mikkn: thanks buddy i will take a look
13:37 fllr joined #salt
13:42 jslatts joined #salt
13:42 mpanetta joined #salt
13:42 ipmb joined #salt
13:43 mike251 how can i check in jinja that a file called map.jinja exists and them import it into current state ?
13:43 mike251 but only if it exists
13:44 srage_ joined #salt
13:48 Psi-Jack So, I'm trying to make use of stacked states for development. For example, I want to be able to define a state in dev that is also defined in base, but only applies the one from dev because it exists and matches. This USED to be the way salt worked, I thought, before 0.17.x, because that's what the docs say about it.
13:48 Psi-Jack and not using gitfs or something, just simple file_roots.
13:51 B3open_ joined #salt
13:52 B3open_ left #salt
14:01 bhosmer joined #salt
14:02 racooper joined #salt
14:07 nebuchad` joined #salt
14:07 fllr joined #salt
14:08 schristensen joined #salt
14:08 fatbox joined #salt
14:09 juicer2 joined #salt
14:09 scassidy joined #salt
14:09 sroegner joined #salt
14:10 njs126 joined #salt
14:11 mortis_ joined #salt
14:13 carnedepassaro joined #salt
14:14 Gifflen joined #salt
14:14 JasonSwindle joined #salt
14:14 ccase_ joined #salt
14:14 brianhicks joined #salt
14:16 Psi-Jack joined #salt
14:16 bruniolos joined #salt
14:16 mgw joined #salt
14:18 keekz joined #salt
14:18 networkpadawan joined #salt
14:19 mau_ joined #salt
14:19 iarmstro joined #salt
14:20 iarmstro Just wondering if anyone can help me
14:20 iarmstro trying salt out from the first time
14:20 mike251 shoot iarmstro
14:21 iarmstro am using fedora 16, installed salt using sudo yum install salt-master salt-minion but when I run salt i get the following error
14:22 iarmstro ImportError: cannot import name Queue
14:22 iarmstro any ideas?
14:23 carlos joined #salt
14:23 mike251 what salt are you running? master or minion?
14:24 iarmstro both commands return this error
14:24 robawt joined #salt
14:26 zandy joined #salt
14:27 avienu joined #salt
14:28 th3reverend1 left #salt
14:29 pdayton joined #salt
14:30 redondos joined #salt
14:31 iarmstro ok, soved the problem
14:32 mike251 i am not sure.. sorry iarmstro
14:32 Psi-Jack Hmmm.
14:32 mike251 ok iarmstro good skills :)
14:32 iarmstro used pip install salt --upgrade this apperas to have fixed the issue
14:32 iarmstro i appear to have been missing some packages which the pip install resovled.
14:33 iarmstro thanks
14:34 Psi-Jack So, this is what I have and what I'm getting: http://paste.linux-help.org/view/6e660891
14:35 Chadnow joined #salt
14:35 mike251 Psi-Jack: each definition in a SLS file .. must be unique
14:35 Psi-Jack YEs, I realize this, but I want states in dev to override anything in base. This used to work AFAIK.
14:36 mike251 pff... Psi-Jack don't know that... i haven't used more than one environment.
14:36 mike251 but i do believe you should be right...
14:36 jcsp joined #salt
14:36 Psi-Jack Yeah, occording to salt's own docs, it says it will find the first one and then try the next.
14:36 mike251 exactly what i remember
14:36 * Psi-Jack nods.
14:36 Chadnow if I have a configuration file that needs the ip of the server set before it is copied over, what is the best way to do that?
14:36 Psi-Jack http://docs.saltstack.com/ref/file_server/file_roots.html
14:36 mike251 Chadnow: via jinja you can do it
14:37 mike251 or you can put the grain in the file
14:37 quickdry21 joined #salt
14:38 mike251 Chadnow:  you can put in your config file {{ grains }}
14:39 mike251 you can put in your config file {{ grains['ip_interfaces']['eth0'] }}
14:39 mike251 i hope i am right
14:40 AdamSewell joined #salt
14:40 mike251 or {{ grains['ip_interfaces']('eth0') }}  :)
14:41 mgw joined #salt
14:42 Chadnow thanks mike251   I will give that a try
14:43 AdamSewell joined #salt
14:43 AdamSewell joined #salt
14:43 tyler-baker joined #salt
14:43 favadi joined #salt
14:51 danielbachhuber joined #salt
14:53 networkpadawan left #salt
14:54 viq Anyone here using logstash with salt? I'm having mine show wrong time.
15:00 vejdmn joined #salt
15:03 davet joined #salt
15:03 bbinet I'd like to deploy ssh privates key to minions
15:03 bbinet so I was thinking of safely storing them in pillar
15:04 bbinet but I cannot manage to do so
15:04 bbinet some yaml error
15:04 bbinet anyone here manage ssh private keys with salt?
15:04 mike251 bbinet:  should be fine... i think everyone is doing that ... storing them in a pillar
15:04 JasonSwindle bbinet:  I do
15:05 bbinet mike251: do you have a simple example to show?
15:05 mike251 bbinet:  let me look for one :) i know i did it before...
15:06 mike251 bbinet:  in the current setup... i do not got to that stage yet :) tomorrow maybe
15:06 JasonSwindle bbinet:  https://gist.github.com/JasonSwindle/9df5a8ecd2a0dfbdace8
15:06 jpihl joined #salt
15:06 kh4z_ joined #salt
15:06 bbinet thanks mike251 and JasonSwindle
15:06 jimallman joined #salt
15:06 mike251 yeah JasonSwindle got it :)
15:07 JasonSwindle Yep
15:07 JasonSwindle Really handy
15:07 fllr joined #salt
15:07 bbinet JasonSwindle: that is what I did
15:08 bbinet but it fails with a yaml stacktrace
15:08 mike251 bbinet:  .. "awesome" ... error
15:11 mgw joined #salt
15:11 bbinet Here is the stacktrace:
15:11 bbinet https://gist.github.com/bbinet/7892149
15:13 bbinet that is weird, salt '*' pillar.items returns correct pillar data
15:13 bbinet so maybe a problem in my slates
15:14 oz_akan_ joined #salt
15:15 bbinet and here is my sls state: https://gist.github.com/bbinet/7892221
15:15 bbinet anything wrong with it?
15:16 bbinet salt://autossh/files/blank.jinja contains: {{ body }}
15:16 oz_akan_ joined #salt
15:18 scott_w joined #salt
15:20 bbinet I suspect I face the following issue: https://github.com/saltstack/salt/issues/5480
15:21 bbinet mike251, JasonSwindle: do you follow this "indent jinja filter" workaround?
15:25 mike251 why indent ? bbinet
15:25 mike251 i haven't used contents so far...
15:26 danielbachhuber- joined #salt
15:26 mike251 maybe .... put that content in a jinja file... or smth like that
15:26 JasonSwindle bbinet:  Eh?
15:26 JasonSwindle Sorry, also on the phone
15:28 iri- joined #salt
15:28 iri- I'm trying to use the docker-formula but I can't figure out these formulas.
15:28 iri- I've described what I have tried in this issue:  https://github.com/saltstack-formulas/docker-formula/issues/5
15:29 iri- I just get "Specified SLS docker in environment base is not available on the salt master"
15:29 iri- I've tried restarting the salt-master and I've tried salt-call with debugging information turned on but I see nothing helpful
15:31 redondos joined #salt
15:34 JasonSwindle bbinet:  Still need help? :)
15:35 kermit joined #salt
15:37 forresta joined #salt
15:37 tqrst left #salt
15:38 bbinet mike251, JasonSwindle: works now with the indent workaround
15:38 bbinet thanks for helping!
15:39 JasonSwindle "indent workaround"?
15:39 bbinet https://github.com/saltstack/salt/issues/5480
15:39 bbinet https://github.com/whiteinge/salt/commit/acbfae658f7e7726dd0575559887baa8fb33753c
15:41 bbinet JasonSwindle: are you using this indent jinja filter on your side?
15:41 pass_by_value joined #salt
15:42 JasonSwindle I indent everything, yes.
15:43 * viq lays in ambush for s0undt3ch
15:45 JulianGindi joined #salt
15:45 forresta viq, it's only 4:45 PM in Spain, he might be busy at work
15:45 mike251 :)
15:46 viq forresta: it's only 16:45 here, I'm busy with salt at work ;)
15:46 forresta lol
15:46 forresta breaking stuff again huh?
15:46 viq Well, salt and logstash
15:46 viq forresta: yup, https://github.com/saltstack/salt/pull/9140 :P
15:47 mgw joined #salt
15:47 forresta ahh
15:48 amahon joined #salt
15:48 forresta that seems stupid of logstash
15:48 jergerber joined #salt
15:48 forresta 'oh you sent this to me formatted properly already? Ok screw you then'
15:50 forresta viq, what is this picture of on your github? google image search just returns tons of different posts all of over the internet. I feel like it is for a band, but don't remember.
15:52 Chadnow am I missing somethign with the jinja file?  http://pastebin.com/6yFQHFgH
15:53 lineman60 joined #salt
15:54 zandy joined #salt
15:54 nebuchadnezzar for info, do you prefer to group pillar like in "pillar['pkg']['ssh'], pillar['files']['sshd_config']" or by "service" like in "pillar['ssh']['pkg'], pillar['ssh']['files']['sshd_config']" ?
15:54 nebuchadnezzar I wonder which one is the most better ;-)
15:54 iri- Could anyone give a hand trying to understand why salt can't find my formula?
15:55 viq forresta: google "vault of doom"
15:55 iri- or rather, the docker salt-forumula
15:55 Iwirada Chadnow: {{ grains['ip_interfaces']('eth0') }}  - the (...) seem to try to invke a method on the dictionary
15:55 forresta viq, ahh gotcha
15:56 Iwirada Chadnow: if grains behave like pillars, then you might want to try [] instead.
15:56 Chadnow Iwirada:  I am not quite fowling, what am I missing?   what about the ...
15:56 srage joined #salt
15:57 Iwirada Chadnow: imho it compiles down to python code and grains might be a dictionary (like pillars)
15:57 Iwirada Chadnow: with ['..'] you get whatever si stored in that dict entry
15:57 forresta nebuchadnezzar, you're storing data such as the ssh service/ssh pkg details in pillar?
15:57 Iwirada Chadnow: if it in turn is a funtion, then the (...) might work. if it is a dictionalry again, then you should use [...]
15:58 nebuchadnezzar forresta: name of package and configuration file path per OS
15:58 nebuchadnezzar at least
15:58 forresta nebuchadnezzar, if you wanna get fancy, you might want to look at http://docs.saltstack.com/topics/conventions/formulas.html
15:59 nebuchadnezzar I wonder if it's better to be "service centric"
16:01 nebuchadnezzar forresta: ok, so such things that are quite static should belong to the map.jinja with the state
16:01 nmistry joined #salt
16:02 forresta yea if you need multiple OS support (thus you aren't setting it directly in the state) then formulas are the way to go
16:07 fllr joined #salt
16:08 Chadnow can I still use grains when I am only doing   "salt-call --local state.highstate"
16:08 teskew joined #salt
16:08 forresta Chadnow, you mean in your states?
16:09 Chadnow in the confiugration files?  so when I need to set the machines ip in the configuration file
16:09 kaptk2 joined #salt
16:09 pnl joined #salt
16:09 Chadnow I mean the sls file needs to copy over the configuration file but make changes in the not salts confiugration file before copyping it over
16:10 forresta As far as I know grains still work fine on a local call
16:10 Chadnow for example xl2tpd has a configuration file that the local ip needs to be set in and is diffrent for each machine, I am trying to set that using a " salt-call --local state.highstate" setup
16:11 Chadnow but I can not list them out with salt '*' grains.ls
16:11 Chadnow because salt-minion is only installed
16:11 jalbretsen joined #salt
16:11 forresta did you use salt-call --local grains.ls?
16:11 JasonG_TA joined #salt
16:12 Chadnow forresta:  I did not think to try that, that works nicely
16:12 forresta cool
16:20 fxdgear joined #salt
16:20 Gifflen joined #salt
16:20 Balu_ hi, can you please help me, i got that: ERROR: sudo expected a password, NOPASSWD required
16:21 Balu_ with salt-ssh
16:21 Gifflen joined #salt
16:24 honestly that's exactly what it says on the tin
16:24 Shenril joined #salt
16:25 Balu_ ok, but why not use the roster passwd option?
16:25 mike251 left #salt
16:28 PoLuX joined #salt
16:28 srage_ joined #salt
16:31 jslatts joined #salt
16:31 redondos joined #salt
16:33 jdenning joined #salt
16:35 silumesii joined #salt
16:36 bhosmer joined #salt
16:36 ngolnik joined #salt
16:40 jakubek any ideas to run cmd only once? i was thinking about creating lock file and checking everytime if exsits, but maybe there is an easier option to do it. any clues?
16:41 rlarkin joined #salt
16:41 forresta jakubek, how about using cmd.wait: http://docs.saltstack.com/ref/states/all/salt.states.cmd.html#salt.states.cmd.wait
16:43 opapo joined #salt
16:45 jergerber joined #salt
16:47 troyready joined #salt
16:49 dave_den jakubek - are you using the onlyif/unless arg for cmd?
16:50 pipps_ joined #salt
16:50 davet joined #salt
16:51 dave_den 'Who let the dogs out' just came on xm. This is not ok. I guess this is what you get when you listen to the 90s station
16:52 smccarthy joined #salt
16:52 bemehow joined #salt
16:52 jcockhren dave_den: WHO let the dogs out?
16:52 jcockhren was it dave_den?
16:52 dave_den don't you mean:  WHO, WHO, WHO, WHO let the dogs out
16:52 dave_den because they all stutter when they sing
16:53 dave_den 'sing'
16:53 dave_den :P
16:53 Balu_ :D
16:54 forresta dave_den, you're using XM radio?
16:54 forresta no spotify?
16:55 forresta or something else
16:55 bhosmer joined #salt
16:55 szicari joined #salt
16:55 dave_den xm online, yeah. we have it for the car, so i get online free. i've never been good about discovering better music sources, besides pandora.
16:56 forresta gotcha
16:56 kryptt joined #salt
16:56 dave_den i just listen to what the man tells me to listen to
16:56 kryptt can I override my minion's ID in a salt-call ?
16:56 kryptt (I want to test things in my local box before pushing to server)
16:57 dave_den kryptt: yes, salt-call —id=blah
16:57 kryptt ahh, thanks (I couldn't find it in the docs)
16:57 dave_den you'll still need the master to have the key for that id accepted, though.
16:57 dave_den kryptt: salt-call —help   ;)
16:57 kryptt unless I also use the --local option
16:58 kryptt doesn't show up in --help :)
16:58 dave_den oh? what version?
16:59 kryptt hmmm
16:59 kryptt 0.16
16:59 joat__ joined #salt
16:59 kryptt let me update that locally, since I have 0.17.2 on the servers
16:59 dave_den it's an option on 0.17.2
16:59 dave_den yeah
17:02 londo_ joined #salt
17:04 kryptt thanks
17:08 chadnow joined #salt
17:09 iri- left #salt
17:09 mgw joined #salt
17:10 Marion joined #salt
17:11 Psi-Jack Where oh where is UtahDave when ya need him? hehe.
17:13 seanz joined #salt
17:14 srage joined #salt
17:14 chadnow I am trying to get a jinja template to work using salt-call --local   http://pastebin.com/9btNUvY7  not sure what I am missing right now
17:16 amahon joined #salt
17:17 seanz left #salt
17:18 KyleG joined #salt
17:18 KyleG joined #salt
17:20 dave_den chadnow: don't use salt-call for your context variable. just use the salt dict:  salt['network.interfaces'][…]
17:20 dave_den or use the grains dict, which is faster than doing an on-deman module call
17:21 chadnow but salt is not installed since I am trying it out on a stand alone system with    " salt-call --local state.highstate"
17:21 chadnow can I not do the same templating on a  --local system
17:22 dave_den it doesn't matter, the salt dict is available in your state files
17:23 dave_den your xl2tps.sls is processed through jinja just like your xl2tpd.jinja file.
17:23 dave_den so you have the same grains and salt dicts available
17:24 anuvrat joined #salt
17:24 Katafalkas joined #salt
17:25 srage_ joined #salt
17:27 druonysus joined #salt
17:29 xmltok joined #salt
17:29 chadnow dave_den:  I still get this error when I change salt-call to salt
17:29 chadnow http://pastebin.com/1J3P9gZ0
17:33 jcsp joined #salt
17:33 dave_den chadnow: http://docs.saltstack.com/topics/tutorials/states_pt3.html#calling-salt-modules-from-templates
17:37 chadnow dave_den:  yes that is what I am trying to accomplish Calling Salt modules from templates
17:37 frosty996 joined #salt
17:37 bemehow joined #salt
17:39 joat__ joined #salt
17:40 frosty996 so I wrote a custom grain for use on our rackspace private cloud servers that uses ipecho.net to determine the associated external IP address.  Might be worth submitting back: https://gist.github.com/jfrost/7894718
17:40 jcockhren frosty996: fork and PR the mail repo bro!
17:41 jcockhren s/mail/main/
17:41 frosty996 jcockhren: question: what to do about requiring the requests module?
17:42 jcockhren frosty996: I can show you an example of how to handle external requirments one sec
17:42 frosty996 jcockhren: awesome sauce!
17:44 abe_music joined #salt
17:44 jcockhren https://github.com/saltstack/salt/blob/develop/salt/returners/redis_return.py#L25
17:44 jcockhren frosty996: Look at lines 25-31
17:45 frosty996 jcockhren: oh, actually, lines 18-31
17:45 jcockhren there's are states that do that as well, but that returner is the easiest to understand
17:46 jcockhren yes. 18
17:46 frosty996 but I get the idea, that's cool.
17:46 frosty996 So, just returning FALSE instead of the ip also acceptable in a grain?
17:48 jacksontj joined #salt
17:49 joat__ joined #salt
17:49 bitz joined #salt
17:51 DanGarthwaite joined #salt
17:55 jacksontj joined #salt
17:56 redondos joined #salt
17:56 redondos joined #salt
17:56 Katafalkas joined #salt
17:57 fivethreeo joined #salt
17:59 mgw what salt functions are available via jinja in pillar sls?
18:00 mgw from dumping the contents of the salt var, it looks like the execution modules are in there. But pillar is rendered master-side....
18:00 dave_den chadnow: sorry was afk.  i just tried it:  https://gist.github.com/dlanderson/71b3d1da92d7436688ae
18:01 dave_den mgw: what do you mean by pillar sls?
18:03 mgw the sls files used by pillar
18:03 mgw top.sls and the files it references
18:03 jesusaurus mgw: interesting, i hadnt thought about that. im guessing you get the execution modules available to the master which isnt necessarily the same modules available to the minion
18:04 jesusaurus and it wouldnt really make sense to try to use grains in there either
18:04 mgw jesusaurus: yeah, and presumably executed on the master
18:04 dave_den oh, yeah. you get grains, opts, and salt, IIRC
18:04 jesusaurus yeah, it would have to be executed on the master
18:04 dave_den grains are the grains for the minion whose pillar you are getting
18:05 dave_den opts and salt are from master i believe
18:05 dave_den unless you are doign salt-call —local
18:05 jesusaurus dave_den: the pillar dict object is compiled on the master and then given to the minion
18:05 dave_den right
18:05 mgw dave_den, I'm looking for a way to run arbitrary code written by me within the context of pillar
18:05 mgw without ext pillar in this case
18:05 dave_den mgw: like a custom salt module?
18:06 chadnow dave_den:  what does salt_local_dict.jinja look like, I do not see it in the gist
18:06 mgw exactly, but it seems to be an odd use of an execution module
18:06 jimallman joined #salt
18:06 dave_den chadnow: i just added it to the gist.
18:06 mgw dave_den: ^
18:06 dave_den sorry, wasnt in there before
18:06 jesusaurus mgw: do pillars have to be yaml/jinja or can you use python directly?
18:06 mgw jesusaurus: they can be python
18:06 dave_den mgw: the way salt does pillar compilation is kinda funny
18:06 dave_den you can use #py or #pydsl if you want
18:07 JasonSwindle joined #salt
18:07 mgw let me explain my goal, maybe there are better ideas
18:07 dave_den but the master, when compiling a minion's pillar, creates a new fileclient object and set it to local, with the id of the minion
18:08 pengunix joined #salt
18:08 dave_den so it get's a kind of identity crisis which can be confusing to us
18:08 mgw My goal is to avoid storing secure config data in plain text
18:08 dave_den gets
18:09 dave_den mgw: any reason why not to use ext_pillar ?
18:09 jesusaurus mgw: so a #py pillar that decrypts from gpg or something
18:10 mgw dave_den: Not really, and they're easy to write… I may just do that. Or #py jesusaurus
18:10 dave_den mgw: that's pretty much exactly waht ext_pillar is for
18:10 dave_den ;)
18:11 mgw I want to be able to use includes, so I'd have to recreate some of the functionality of the built in pillar
18:11 jesusaurus mgw: but do you also need to keep the key for decrypting itself encrypted?
18:12 jesusaurus every time i try to think through encrypted pillars i get stuck in a chicken-and-egg circle like that
18:13 jesusaurus granted i havent given it serious thought, just armchair musings
18:14 dave_den mgw: how do you want to use the includes? you can combine using pillar.sls and ext_pillar which causes the pillar.sls to be compiled as usual, then that is sent through all ext_pillar modules
18:14 dave_den in order
18:15 JasonSwindle jesusaurus:   I placed my pillar into a submodule that is private
18:15 JasonSwindle This is the only way I could keep pillar data hidden but yet use GIT
18:15 jesusaurus JasonSwindle: i think mgw is more concerned about securing the data 'at rest'
18:16 JasonSwindle oh
18:16 JasonSwindle yea, I tried that path as well
18:16 JasonSwindle It got really messy
18:16 chadnow dave_den:    I am confused as to what I am doing wrong since it is pretty much exactly what you have, and the error is just a python error
18:17 mesmer joined #salt
18:19 dave_den chadnow: ah, it's your grains line. gains is just a normal python dict, not a dict loaded with functions
18:19 dave_den grains['ip_interfaces']('eth0')
18:19 dave_den shoudl be grains['ip_interfaces']['eth0']
18:20 cdk joined #salt
18:20 jcsp joined #salt
18:22 cdk suppose I have my own init script for a daemon I've written. Can I use salt's service function to manage it?
18:22 robawt joined #salt
18:23 chadnow dave_den:  I already tried your grains line http://pastebin.com/CyNVpiZm
18:24 dave_den chadnow: what version are you running?
18:24 chadnow most recent            Salt: 0.17.2
18:24 cdk I have something like this http://lpaste.net/96840
18:27 srage joined #salt
18:32 dave_den chadnow: i'm doing it on 0.17.2 also.   last thing i can think of is to check your spacing in your context/ip line
18:32 cachedout joined #salt
18:32 dave_den bbl
18:33 eculver joined #salt
18:34 chadnow how space sensitive is it?
18:34 zach_ So I've noticed that mysql returner is not compatible with 5.6 due to 5.6 not having mysql_config for MySQL-python
18:35 cdk I've found lots of documentation for using salt to provision software packages available from the system package manager, but what about software I've written myself. Is the recommended practice to get it from SVN/Git and build, grab a build artifact from some CI server, or something else?
18:35 aleszoulek joined #salt
18:35 zach cdk: I have my own REPO I pull packages from
18:35 zach and use the package manager state to select the from repo
18:36 zach much like this: https://pastee.org/ggh6d
18:36 cdk zach: thanks, I'll look at the package manager state
18:36 zach that's what I do, there may be a better way of doing it
18:37 bhosmer joined #salt
18:37 chadnow I just made up a new test file and it worked for some reason
18:38 cdk zach: what is the argument to pkg.fromrepo? how do you provide your custom repo?
18:39 zach well, if you're running RHEL like I am, the fromrepo is just the name of your custom.repo
18:39 zach so since I'm pulling from epel.repo - I used 'epel'
18:40 zach that's not my internal repo, that's just epel obviously
18:40 zach so you'd have to roll out your .repo as well
18:40 zach https://pastee.org/t8542
18:41 zach That's what I do to push out our repos for all machines
18:41 chadnow dave_den:  finally found the issue,   the xl2tpd.conf  still had a  {{ salt['network.interfaces']()['eth0']['inet'][0]['address'] }}  that I forgot to change, so I hcanged one instance to {{ ip }} but not the other
18:41 cdk so your software is packaged as an rpm. In my case, the software I want to deploy (an akka project) isn't so nicely wrapped up (we're moving towards using rpm).
18:43 zach You could just use file.recurse, abit nasty though
18:45 srage_ joined #salt
18:49 cdk zach: ahh file.recurse looks like it's just what I need, thanks
18:49 cdk I'm new to salt, so I'm still discovering all it's awesome features
18:50 cdk definitely liking it so far
18:50 unxmaal left #salt
18:53 amckinley joined #salt
18:53 zandy joined #salt
18:56 Psi-Jack I have a problem with environment stacking, details here: http://paste.linux-help.org/view/6e660891 -- According to salt's own docs, it says it will find the first one and then try the next. http://docs.saltstack.com/ref/file_server/file_roots.html
19:00 zach I like it too
19:03 william20111 joined #salt
19:08 Psi-Jack heh.
19:09 jacksontj joined #salt
19:09 higgs001 joined #salt
19:09 renoirb Hey guys
19:10 renoirb I cannot find a salt state to install Halite. Is there any?
19:10 zach Psi-Jack: How many files are in each?
19:10 Psi-Jack How many files?
19:10 zach Psi-Jack: yes, inside of your file roots?
19:10 bemehow_ joined #salt
19:10 Psi-Jack Uhh.. Several? LOL
19:10 zach Psi-Jack: I had an issue once upon a time where it would just fail to read all of the files and not go on to the next file root
19:11 Psi-Jack Oh no, it's reading it all, without any issue.
19:11 zach Odd, it's not trying the next?
19:11 Psi-Jack It's doing BOTH, when it should be doing one.
19:11 foxx joined #salt
19:11 sylvinus joined #salt
19:12 sylvinus hello! How can I run salt-cloud commands remotely ? (e.g. not on the master)
19:12 Psi-Jack The same state in two environments, in dev's environment it's running both dev:salt.tag and prod:salt.tag
19:12 jpaetzel joined #salt
19:12 pipps_ joined #salt
19:14 Psi-Jack Now, since that paste I split up base into base, dev, and prod (before there wasn't a prod). But, I have a salt.tag in dev:salt and prod:salt, and on one host, I want dev:salt.tag to be used, while on every other host to run prod:salt.tag, yet no matter what I do, it runs both dev:salt.tag and prod:salt.tag.
19:18 fllr joined #salt
19:22 elfixit joined #salt
19:23 jcsp joined #salt
19:24 zandy joined #salt
19:25 harobed_ joined #salt
19:26 mordred joined #salt
19:27 jcsp joined #salt
19:27 Ryan_Lane I'm having an issue with a runner and the client api
19:27 Ryan_Lane http://pastebin.com/CBqqwjkz
19:27 Ryan_Lane I'm setting a returner in client.cmd_batch
19:27 Ryan_Lane but this is what I get in the minion: Command details {'tgt_type': 'list', 'jid': '20131210192455912841', 'tgt': ['i-00000821.pmtpa.wmflabs'], 'ret': '', 'user': 'root', 'arg': ['parsoid/Parsoid'], 'fun': 'deploy.restart'}
19:28 Ryan_Lane I'm surely setting ret
19:29 Psi-Jack http://paste.linux-help.org/view/b20e9c62  -- Updated with base/dev/prod differences.
19:29 Psi-Jack Err, crap.
19:29 Psi-Jack http://paste.linux-help.org/view/cf772f1e  -- Fixed. :)
19:30 zach I'm thinking about setting up a DNS module/state for Salt
19:30 zach To manage named/bind/nsd/pdns/etc
19:31 Ryan_Lane arrrrghhh
19:31 Ryan_Lane it seems returners don't work for batch runs!
19:31 Ryan_Lane -_-
19:32 jslatts joined #salt
19:49 dave_den Psi-Jack: you are targeting the same grain for base and dev...
19:50 Psi-Jack Well, prod and dev, but yes. I am.
19:50 Psi-Jack The idea is, I want dev to override what's in prod.
19:50 Psi-Jack It /works/ for pillars, but not for states in 0.17/2
19:50 Psi-Jack .2
19:50 Vye joined #salt
19:51 dave_den that's because pillars get overwritten when there is a duplicate key, but states get appended to the run list
19:51 Psi-Jack hmm
19:51 jacksontj joined #salt
19:51 dave_den you are telling it that roles:test belongs in prod and dev.
19:51 Psi-Jack So, the documentation for salt itself is wrong, then?
19:52 dave_den not that i know of
19:52 dave_den it seems clear to me
19:52 dave_den Psi-Jack: have you asked the salt-users list?
19:52 Psi-Jack Hmmm, So the only way to have one environment override another is to specifically target and exclude, very precisely.
19:52 Psi-Jack No, I have not, I hate joining mailing lists.
19:53 dave_den either that or add some logic to your tag.sls
19:54 Psi-Jack The idea was I wanted to be able to write similar but matching states in dev that get applied to several serversl, then move working states to prod when they are in good-standing design, as in, they do what's desired.
19:55 Psi-Jack But, I want to back-flow to prod if a state in dev doesn't exist, and only if. :)
19:55 Pate_ joined #salt
19:57 kryptt joined #salt
20:03 dave_den have you thought about using gitfs backend?
20:06 Ryan_Lane dave_den: this is causing me a pretty major pain in the ass: https://github.com/saltstack/salt/issues/9146 :)
20:06 Katafalkas joined #salt
20:06 Psi-Jack dave_den: I have, and it failed us last time we used it.
20:11 ajw0100 joined #salt
20:11 Psi-Jack Well, I'll try that out myself, verify what issues there is with it.
20:12 dave_den Ryan_Lane: quick glance at batch code looks like it only pulls 'fun', 'arg', and 'timeout' from opts:  https://github.com/saltstack/salt/blob/develop/salt/cli/batch.py#L73
20:12 Gifflen joined #salt
20:12 dave_den you probably already saw that, tho
20:13 pipps joined #salt
20:13 zandy joined #salt
20:16 Ryan_Lane any reason why?
20:16 Ryan_Lane it's a pretty major problem for me
20:17 frosty996 jcockhren: thanks for the help! That pull request got merged.
20:18 jcsp joined #salt
20:20 dave_den Ryan_Lane: probably an oversight. if you can specify ret to cmd_iter_no_block then batch should be able to handle it
20:20 Ryan_Lane I really need to set up a salt dev environment
20:21 dave_den highly recommended ;)
20:21 frosty996 isn't there a formula for that?
20:23 DanGarthwaite joined #salt
20:27 redondos joined #salt
20:29 redondos_ joined #salt
20:29 hellome joined #salt
20:31 higgs001 joined #salt
20:34 zfouts joined #salt
20:35 nmistry joined #salt
20:35 abele joined #salt
20:36 Katafalkas joined #salt
20:37 bhosmer joined #salt
20:41 pipps_ joined #salt
20:41 bemehow joined #salt
20:43 matanya joined #salt
20:45 kamyl joined #salt
20:52 psyl0n joined #salt
20:52 hellome joined #salt
20:54 shennyg joined #salt
20:55 zach man, I feel like I should know more about grains than I do
20:55 zach if I am wanting to use grains along with match grains['localhost'] but in a list like form ( like this https://pastee.org/3axd ) would it work?
20:56 zach or would that need to be a pillar
20:57 pipps__ joined #salt
20:57 jacksontj joined #salt
20:59 Gifflen joined #salt
21:01 Katafalkas joined #salt
21:02 Katafalkas joined #salt
21:04 pipps_ joined #salt
21:06 dstanek joined #salt
21:08 hellome joined #salt
21:13 cewood joined #salt
21:16 alekibango joined #salt
21:18 cdk joined #salt
21:19 cdk does anyone have experience with provisioning oracle java with salt, specifically on CentOS 6.3?
21:21 forresta cdk, you mean like weblogic?
21:22 cdk forresta: I mean like installing the oracle java jdk, weblogic seems like something different
21:23 forresta cdk, what part of the install are you having issues with? Are you not using the version that comes as part of a package?
21:23 zach forresta: you can install it the same way I told you earlier ;-)
21:24 zach woops
21:24 zach cdk^^
21:26 cdk well, oracle java isn't included in CentOS' repos. it involves getting downloading installer and agreeing to a license. I found something helpful for Ubuntu, but I figured I'd ask here as well
21:26 scoates I see "[INFO    ] Executing command 'apt-get -q update' in directory '/root'" in my `salt-call state.highstate` but I don't have that in my states anywhere that I can see. Is that implicit, somehow?
21:26 cdk zach: you mean maintain a repo with the oracle package I want?
21:27 dave_den scoates: if you have any pkg.installed states, salt will run apt-get update before it tries to install the packages
21:28 dave_den once per state run, unless you specify refresh: True in the pkg.installed state, in which case it will do apt-get update right before that pkg.installed
21:28 scoates dave_den: hmm. ok. Is there a way to ask it not to do that? I was hoping to make that more explicit to save on running time.
21:28 forresta cdk, if you wanna download Oracle's Java I wrote this: https://github.com/gravyboat/download-java
21:28 forresta it's not great since it was a rush job
21:29 forresta but it will get you around the license to auto-download and rebuild your repo
21:29 dave_den scoates: not sure, but i don't think so
21:29 forresta cdk, you can pass command line options to overwrite any of the defaults that you may need to
21:30 forresta and I didn't test it on 2.7
21:30 scoates ok. half of my highstate time is spent in `apt-get -q update`
21:30 forresta scoates, well, stop updating all the things!
21:30 scoates that's what I'd LIKE to do (-;
21:32 scoates I guess not half. about a third. ~10 sec.
21:38 DanGarthwaite joined #salt
21:40 JordanRinke Linuturk!
21:40 Linuturk joined #salt
21:41 Linuturk JordanRinke!
21:41 JasonSwindle JordanRinke:  Howdy
21:41 JordanRinke JasonSwindle: Top of the day to ya govena
21:41 jergerber joined #salt
21:42 JordanRinke How is the Rack gentlemen?
21:43 mentat joined #salt
21:43 JasonSwindle Busy busy busy.  I cannot wait to go home and play more with the dev branch of salt.
21:44 mentat Hi all, is there a way to do a minion initiated query for a particular piece of information (say a DAR key for dmcrypt)?
21:44 mentat without a local store of it
21:44 JasonSwindle mentat:  I don't fully follow, but where would it query for the information?
21:45 JordanRinke you could just run a command on the minions and get the console output if it is a one time thing.
21:45 JasonSwindle Pillar?  The Salt Master?  Another grain value on a different node?
21:46 JordanRinke http://docs.saltstack.com/ref/states/all/salt.states.cmd.html?highlight=cmd.run#salt.states.cmd.run
21:47 JordanRinke Unless I am not understanding you?
21:47 mentat I mean for instance having the instance query using a crypttab script for a key from the salt master but then just use it, not store it locally
21:47 mentat It's my impression that pillar data is stored locally still, is that incorrect?
21:48 mentat (pillar data for that role at least)
21:49 JordanRinke I see, you want to be able to pull info from a pillar, use it, and not have it stay on the box to essentially keep your key safe?
21:50 Teknix joined #salt
21:50 mentat yes, precisely
21:51 jalbretsen joined #salt
21:51 JordanRinke Well, I don't have an answer for you but now that it is clear what you need, maybe someone else can chime in with what you need.
21:52 mentat There's perhaps a more general question as to where there are any ways to specify a piece of information as ephemeral on a node
21:53 mentat because I could do with a salt master initiated command as well if I knew the file wouldn't be stored / cached off of the master
21:59 micah_chatt joined #salt
22:00 dave_den mentat: the pillar is not cached on minions
22:00 dave_den and you can turn off minion_data_cache on the master to disable pillar caching there, too
22:01 micah_chatt would anyone be interested in seeing an inotify (filesystem inode watcher util) PR to salt? http://inotify.aiken.cz/?section=common&page=home&lang=en
22:01 JasonSwindle Why not
22:02 mentat dave_den: thanks, that makes sense
22:03 forresta micah_chatt, why do your links always look so suspicious?
22:03 forresta :P
22:03 micah_chatt Haha I don't know
22:03 dave_den micah_chatt: there have been requests for things like that in the past. i proposed a 'saltstreams' feature to modularize long-running daemons that hook into salt itself. https://github.com/saltstack/salt/issues/7105
22:03 cdcalef joined #salt
22:04 micah_chatt ok, I was wondering too if anyone actually used it
22:05 robawt is it legal to have a blank dictionary value?
22:05 robawt or would I use 'None' ?
22:05 robawt in a salt state that is
22:05 micah_chatt dave_den: I'm using it for a few things (namely, an FTP -> S3) service I'm running. Rather than wait for a periodic check of a directory, I perform an operation right away
22:06 micah_chatt I suppose it could be used on salt itself, but I was more thinking just to control the daemon and configuration
22:07 micah_chatt I was just testing the waters to see if there was interest
22:07 dave_den micah_chatt: right. i had envisioned for instance an inotify saltstream module that you configure to watch a directory and when it sees something interesting, like a file being created in your ftp directory it would trigger a state or module in salt
22:08 dave_den or watching the udev bus for new hardware, it could automatically kick off a salt state call
22:08 dave_den etc
22:08 micah_chatt yea that would be great
22:10 zandy joined #salt
22:11 micah_chatt for now, I've just had salt do all the configuration of specific files, but I didn't know how commonly that utility was used
22:19 bhosmer joined #salt
22:33 cdcalef is the latest salt-cloud available in EPEL6 or should i just install from git?
22:34 cdcalef hmm you know i might be missing a dep.
22:37 cdcalef "RuntimeError: Please set SaltCloud._default_logging_logfile_" fun.
22:38 austin987 joined #salt
22:38 cdcalef i think i need to install salt-cloud from git.
22:38 bhosmer joined #salt
22:39 forresta cdcalef, what version is your master?
22:40 cdcalef 0.17.2
22:40 forresta there was an issue 6 months ago with someone having the same issue and it was due to a version issue between the saltcloud they had, and the salt-master version
22:40 forresta so yea, trying a newer salt-cloud might do it, or you might need to ensure it's an older release.
22:41 cdcalef from what i understand this version doesn't have salt-cloud.  the salt-cloud version i'm using is kinda old-- just whats in epel6-testing
22:41 frosty996 looks like 0.8.8 is what's in epel stable
22:41 forresta cdcalef, oh yea that would be an issue then
22:41 cdcalef yup. 0.8.8 not 0.8.11
22:41 frosty996 cdcalef: I had to upgrade to 0.8.11 to fix an issue with openstack deployments
22:42 cdcalef yeah installing from git seems to have solved it.
22:42 frosty996 I think 0.8.11 is in Pypi
22:42 frosty996 I just removed the rpm and pip installed it I think
22:43 cdcalef oh. i just did a git clone and python setup.py install'd it right over the rpm heh.
22:44 cdcalef although i did pip install apache-cloud.
22:44 danielbachhuber joined #salt
22:46 pipps_ joined #salt
22:47 nmistry joined #salt
22:48 DanGarthwaite joined #salt
22:50 cdcalef hmm. stangely my rackspace credentials don't work with salt-cloud's openstack provider but work fine with python code that calls the rackspace api directly.  i might need a rackspace 'openstack' account to use it.
22:53 forresta cdcalef, I know there are a good amount of rackspace guys in here
22:54 cdcalef yeah i'm not using the docs at https://salt-cloud.readthedocs.org/en/latest/topics/rackspace.html but i'm going off script now :)
22:54 cdcalef think i got it.  the salt-cloud rackspace.py has sufficient info.
22:55 mpanetta joined #salt
22:56 forresta cdcalef, if the docs didn't get you through it, could you open an issue on salt-cloud to get them updated?
22:57 cdcalef oh man i think i got it to work. exciting.
22:58 cdcalef forresta: sure.
22:58 cdcalef should i open it in salt-cloud or salt proper since its now part of salt?
22:59 forresta cdcalef, salt-cloud, the docs haven't been migrated.
22:59 forresta that's actually a good point that it needs to happen, I might work on that tonight..
23:00 forresta cdcalef, or you can make a pull request with the fix
23:02 forresta cdcalef, or maybe file it in the main repo since it says to do that? I just don't know :\
23:02 forresta the readme.rst says main repo, but the docs aren't there.
23:03 forresta basepi, you around?
23:03 basepi forresta: indeed.
23:03 whiskybar joined #salt
23:03 forresta basepi, what's it looking like for the docs getting merged into the main salt repo for salt-cloud? I noticed techhat is still updating the old release notes and such
23:04 basepi right, but only for the last couple of releases for salt-cloud.  i'm pretty sure the docs have been largely integrated already
23:04 basepi in the doc/topics/cloud dir iirc
23:04 forresta oh you're right I totally missed that and was looking at the ref stuff
23:04 forresta so cdcalef, ignore what I said and file it in the main repo
23:11 slack3er joined #salt
23:11 zandy joined #salt
23:14 Psi-Jack I'm not exactly sure how gitfs is supposed to solve my issue, dave_den.
23:17 Psi-Jack In fact, the exact same problem exists with gitfs as well. LOL
23:18 frosty996 cdcalef: we're using salt-cloud in a rackspace private-cloud setup
23:20 * Psi-Jack cringes at the mention of rackspace.
23:25 kermit joined #salt
23:26 cdcalef cool. so am i, now.
23:26 cdcalef well i just did it in my public cloud, haven't tried my private cloud yet.
23:28 cdcalef although i do notice that even though i set compute_region: ORD it built the instance in DFW :)
23:28 amckinley joined #salt
23:29 forresta did you end up creating an issue cdcalef?
23:30 cdcalef i got pulled away, i'm doing it right now.
23:30 forresta did you see my message?
23:30 forresta I missed that they moved the docs over
23:30 forresta so put it in the main repo
23:30 forresta reading comprehension fail on my part
23:31 cdcalef yeah i'm putting it in the main repo tagged as 'documentation'
23:31 forresta awesome
23:31 BenCoinanke joined #salt
23:31 forresta sorry about the confusion
23:36 cdcalef no worries its all good.  my description might be a little vague.  unsure how to label the issue either: https://github.com/saltstack/salt/issues/9149
23:37 cdcalef thats probably a contributor only feature.
23:39 cdcalef salt-cloud --list-locations doesn't seem to work either. anybody use that or is that a bug?
23:40 zandy joined #salt
23:45 dstanek joined #salt
23:46 blee joined #salt
23:51 quickdry21 joined #salt
23:52 elfixit joined #salt
23:53 hhenkel joined #salt
23:55 dstanek joined #salt

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