Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-11-26

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

All times shown according to UTC.

Time Nick Message
00:00 opapo joined #salt
00:01 dvogt joined #salt
00:02 jesusaurus akoumjian: no, it doesn't
00:02 cachedout joined #salt
00:03 NV anitak: service salt-master stop
00:04 anitak :)
00:04 anitak the only question is now…since I am updating my salt master with salt…will that job continue if I keep the salt-minion running?
00:04 anitak I think it will because all state configuration and job information goes through zeromq
00:10 jesusaurus akoumjian: setting the minion id in the config works around the issue
00:11 pdayton joined #salt
00:13 cdsrv anitak, seems like minions only get updated when you explicitly target them
00:13 akoumjian jesusaurus: cool
00:13 srage joined #salt
00:14 z3uS joined #salt
00:16 srage joined #salt
00:17 srage_ joined #salt
00:18 srage joined #salt
00:20 dvogt joined #salt
00:30 anitak cdsrv: I meant that I am updating my salt master by running state.highstate on it. And I was wondering if I do that and the minion on the master is in the middle of processing something and I shut the master process down, will the minion continue to finish the job?
00:31 mgw anybody have thoughts for couchbase execution (and possibly state) module? Am I missing an existing one?
00:32 mgw I'm speaking of an administrative module
00:36 jslatts joined #salt
00:37 Gifflen joined #salt
00:38 NotreDev joined #salt
00:41 elfixit joined #salt
00:44 srage joined #salt
00:46 berto- joined #salt
00:52 zandy joined #salt
00:58 micah_chatt joined #salt
01:00 cdsrv anitak, maybe just update the master separately, or use 'overstate' to order the master first.. (?)
01:01 cdsrv eg, salt 'saltmaster' state.highstate (to target only the 'saltmaster')
01:01 pentabular left #salt
01:02 cdsrv or some other combination.. if you run highstate on everything the only thing that can help there is maybe 'overstate' afaik
01:10 zandy joined #salt
01:14 elfixit joined #salt
01:17 pdayton1 joined #salt
01:18 kermit joined #salt
01:22 berto- joined #salt
01:25 natewalck joined #salt
01:29 ddv joined #salt
01:31 smccarthy joined #salt
01:44 malinoff joined #salt
01:51 malinoff joined #salt
01:53 stefanmonkey joined #salt
01:57 danielbachhuber joined #salt
02:03 cachedout joined #salt
02:18 redondos joined #salt
02:24 sroegner_ joined #salt
02:30 xl1 joined #salt
02:38 jsm joined #salt
02:54 pentabular joined #salt
02:57 tonthon joined #salt
02:57 anuvrat joined #salt
02:59 pentabular joined #salt
03:00 chadhs joined #salt
03:03 lineman60 joined #salt
03:08 ravibhure joined #salt
03:10 pdayton joined #salt
03:20 littleidea joined #salt
03:21 bemehow joined #salt
03:25 mannyt joined #salt
03:31 pentabular1 joined #salt
03:35 Furao joined #salt
03:36 rojem joined #salt
03:37 cachedout joined #salt
03:39 littleidea joined #salt
03:44 StDiluted joined #salt
03:53 kolbe joined #salt
03:58 zz_cro joined #salt
04:02 pentabular joined #salt
04:09 Linz joined #salt
04:16 ckao joined #salt
04:17 akio joined #salt
04:25 Katafalkas joined #salt
04:26 pentabular joined #salt
04:27 junedm joined #salt
04:27 redondos joined #salt
04:28 lemao joined #salt
04:29 jslusher joined #salt
04:39 cachedout joined #salt
04:47 anuvrat joined #salt
04:47 pentabular1 joined #salt
04:54 jdenning joined #salt
05:01 pentabular joined #salt
05:06 stefanmonkey guys , where to check the yaml format sls file?
05:06 stefanmonkey any website can do this?
05:07 Corey I do it in my text editor.
05:08 Corey If you have yaml support for syntax hilighting, you just have to train it to view sls files as yaml.
05:08 forrest_ there's no actual tool that exists currently to check the 'validity' of your states.
05:09 stefanmonkey any plugin in sublime can do this ?
05:10 forrest_ just mark it as YAML for the syntax highlighting
05:12 stefanmonkey oh , tks
05:15 dvogt joined #salt
05:15 malinoff stefanmonkey, I use python -c "import yaml; yaml.load('CTRL+V here')"
05:16 cym3try joined #salt
05:17 dpippenger joined #salt
05:29 kolbe so it seems like pkg.install doesn't really communicate non-success in any very useful way... is there some other workflow i should use?
05:29 kolbe the salt tool exits with 0 even if the package cannot be found
05:30 Katafalk_ joined #salt
05:31 raadad joined #salt
05:31 raadad hey guys
05:32 malinoff kolbe, You should not rely on exit code. https://github.com/saltstack/salt/issues/8180
05:32 * malinoff high fives raadad
05:33 raadad im tyring to install salt via salt bootstrap on ubuntu
05:33 kolbe malinoff: yes i see that i can't rely on exit code... is there something else i ought to do to determine whether this operation has been successful?
05:33 raadad I get initctl: Unknown job: salt-minion
05:34 raadad any ideas :s
05:34 malinoff raadad, Simply don't use bootstrap. It's awful
05:34 raadad :(
05:34 raadad how do I nstall it then :s
05:35 malinoff kolbe, Dunno lol :D I use my eyes right now. E.g. in Jenkins console output
05:35 kolbe well.... that doesn't sound very convenient if i am trying to script something :)
05:35 malinoff But you can write your own stdout/stderr parser to handle errors
05:35 kolbe no, there is no feedback at all on stdout/stderr! :(
05:36 kolbe http://sprunge.us/SbEO
05:36 pipps joined #salt
05:36 kolbe i think it probably is not normal to try worrying about this... more normal to write some thing that describes the state of the node you want and then let it work out installing the package on its own
05:37 malinoff kolbe, Right now you can't determine any error in pkg.install, because it returns the difference between what was previously installed and that is installed after the pkg.install command
05:37 kolbe yeah ok
05:38 malinoff kolbe, situations when a package name is wrong and when a package is failed to install are the same
05:38 malinoff kolbe, Such things are handled on states layer
05:38 kolbe mm hmm
05:38 malinoff And yes, I know this is horrible
05:39 kolbe :)
05:39 malinoff But salt guys should write many lines of code to fix this behavior
05:40 malinoff raadad, http://docs.saltstack.com/topics/installation/index.html
05:40 malinoff Check platform-specific topic
05:44 raadad thanks guys
05:44 raadad I get thje same error via the docs
05:44 eliasp is it possible to use environment variables in salt's configuration files, e.g. for "interface" in my ~/.salt (see also: https://github.com/saltstack/salt/issues/8009#issuecomment-26766199)
05:44 malinoff raadad, what system do you use?
05:45 raadad ubutu 13
05:45 malinoff raadad, can you manually run service salt-minion start?
05:45 raadad unrecognised service
05:46 malinoff raadad, /etc/init.d/salt-minion start ?
05:47 raadad start not found
05:47 malinoff eliasp, Never saw ~/.salt files, only /etc/salt stuff
05:48 malinoff raadad, What about salt-minion -l debug ?
05:48 raadad pop from epty list
05:48 redondos joined #salt
05:48 malinoff raadad, Can you pastebin the whole output?
05:48 raadad *IndexError: pop from empty list
05:48 eliasp malinoff: well, they're basically the same… so the question is more or less: is it possible to make use of environment variables within any Salt config files… meaning: are the Salt config YAML files processed through a rendered before being evaluated or not?
05:48 eliasp s/rendered/renderer/g
05:49 malinoff eliasp, Don't know. Check the source code, if you are able to
05:50 eliasp malinoff: yes, that's what I'm doing right now… ;)
05:50 malinoff I think, it renders
05:50 malinoff Hm
05:50 malinoff eliasp, https://github.com/saltstack/salt/blob/develop/salt/config.py
05:51 eliasp malinoff: thanks, was looking for this…
05:55 eliasp malinoff: can't find any reference to rendering config files as templates… ;(
05:56 malinoff eliasp, Looks like all validation lives right in that module
05:57 dcmorton joined #salt
06:03 cym3try joined #salt
06:06 shinylasers joined #salt
06:07 anuvrat joined #salt
06:16 eliasp_web joined #salt
06:16 eliasp_web malinoff: just had a power outage… did you reply anything during the last ~15 minutes?
06:17 malinoff >> <malinoff> eliasp, Looks like all validation lives right in that module
06:17 eliasp_web malinoff: ok, that was the last I saw… thanks! ;)
06:18 malinoff eliasp_web, np :)
06:28 lemao joined #salt
06:33 junedm1 joined #salt
06:33 junedm1 left #salt
06:35 cym3try joined #salt
06:35 pentabular joined #salt
06:39 pentabular1 joined #salt
06:49 junedm joined #salt
07:02 Ryan_Lane joined #salt
07:04 pentabular joined #salt
07:14 junedm left #salt
07:16 pentabular1 joined #salt
07:17 redondos joined #salt
07:19 anuvrat joined #salt
07:25 matanya joined #salt
07:26 carlos joined #salt
07:32 dranger joined #salt
07:38 jcockhren what's the proper software license to be included with formulas?
07:39 jcockhren apache 2.0?
07:40 malinoff jcockhren, https://github.com/saltstack-formulas/samba-formula/blob/master/LICENSE
07:42 Katafalkas joined #salt
07:47 juasiepo joined #salt
07:55 slav0nic joined #salt
07:56 pentabular joined #salt
08:01 balboah joined #salt
08:06 jcockhren https://github.com/saltstack-formulas/backuptocloud-formula
08:06 jcockhren first commit
08:07 jcockhren this will be generalized to multiple database types and storage backends
08:07 harobed joined #salt
08:07 jcockhren oh yeah... it's pydsl
08:07 jcockhren ;)
08:19 redondos joined #salt
08:20 iri- joined #salt
08:27 druonysus joined #salt
08:28 apergos joined #salt
08:29 lemao joined #salt
08:43 thelorax123 joined #salt
08:44 cym3try joined #salt
08:48 redondos joined #salt
08:52 vkurup joined #salt
08:54 thelorax123 joined #salt
09:00 eliasp_web joined #salt
09:03 Ryan_Lane joined #salt
09:06 cym3try_ joined #salt
09:11 Damoun joined #salt
09:25 dangerousbeans joined #salt
09:29 dranger joined #salt
09:38 wiggy joined #salt
09:38 * wiggy waves
09:39 iri- joined #salt
09:40 mike251 joined #salt
09:40 unicoletti_ joined #salt
09:49 redondos joined #salt
09:49 wiggy anyone know why if you include two pillar files, one would be ignored?
09:50 NV wiggy: pillar dictionaries are not merged, so if you define blah.asdf in one, and blah.fdsa in another, only one of the two 'blah' dicts will be used
09:50 wiggy NV: I know, but that is not what I see
09:50 alekibango joined #salt
09:50 wiggy if I include xxx.sls and xxx-devel.sls, xxx-devel.sls is completely ignored
09:50 wiggy if I swap the order in top.sls xxx-devel.sls is still ignored
09:51 NV but if you remove xxx.sls the contents of xxx-devel.sls appear?
09:51 wiggy yes
09:51 NV i can safely say i have never experienced that behaviour
09:51 NV at a guess there is something else at play
09:51 wiggy I've been seeing that for quite some time
10:00 rmt joined #salt
10:03 aleszoulek joined #salt
10:03 Ryan_Lane joined #salt
10:06 sanj joined #salt
10:06 JasonG_TA joined #salt
10:06 JasonG_TA joined #salt
10:13 dangerousbeans joined #salt
10:27 che-arne joined #salt
10:29 sroegner_ joined #salt
10:30 lemao joined #salt
10:34 dangerousbeans_ joined #salt
10:43 agu_ joined #salt
10:47 agu_ Hi guys, when I start a new instance, salt is perfectly working but... after a while the minion outputs and it is no longer reachable: 2013-11-26 10:34:28,275 [salt.utils       ][ERROR   ] This master address: 'salt' was previously resolvable but now fails to resolve! The previously resolved ip addr will continue to be used
10:48 agu_ It feels like somehow the master address changes to 'salt' for no reason while it is correctly set in /etc/salt/minion: "master: 79.125.*.*"
10:49 redondos joined #salt
10:56 NV agu_: i've never tried using a literal ip in the minion config
10:56 joehh pniederw__, forest: dpkg -l salt-common should show a version of 0.17.2-2
10:56 wiggy I use literal IPs all the time
10:56 Dinde agu_: force salt $your_ip on /etc/hosts
10:56 joehh it will not show 0.17.2-2 in the versions report (though maybe that would be a good idea...)
10:57 Dinde even I can say that's wierd that it tries to resolve salt which is the default value and not resolvable
10:58 agu_ Dinde: yes I'll end up modifying /etc/hosts but maybe there's a bug underneath and I'd like to find it
10:58 Dinde agu_: imo it seems that your minion is using the default value, i'd try to check if my file permissions are ok and readable by salt ;)
11:03 agu_ Dinde: Permissions looks fine. If it was a permission problem it would not work at all. But it does after restarting the minion until it switches to the master default value.
11:03 Ryan_Lane joined #salt
11:08 mortis made a short blogpost about how im running nagios-plugins via salt on my (not-so-important) home-servers... if anyone is interested its here : http://dingleberry.me/2013/11/running-nagios-plugins-via-saltstack/
11:09 godog joined #salt
11:09 godog joined #salt
11:13 junedm joined #salt
11:13 junedm left #salt
11:25 b-jazz joined #salt
11:28 shwaiil joined #salt
11:29 shwaiil hi
11:31 shwaiil I'm going to learn Salt, just found about it. There's this concept about "formulas" so, does this mean I can just pick a LAMP formula, instead of having to create my own ?
11:34 lemao joined #salt
11:39 srage joined #salt
11:44 anuvrat joined #salt
11:45 shwaiil * I'm using ubuntu 12.04LTS by the way.
11:48 middleman_ joined #salt
11:50 redondos joined #salt
11:51 krak3n` joined #salt
11:56 _ikke_ That's the idea of formulas
12:01 pentabular joined #salt
12:03 Ryan_Lane joined #salt
12:05 william20111 joined #salt
12:07 william20111 joined #salt
12:09 ertac joined #salt
12:10 william joined #salt
12:11 renoirb joined #salt
12:19 linjan joined #salt
12:20 VSpike joined #salt
12:20 N-Mi_ joined #salt
12:20 N-Mi_ joined #salt
12:26 Furao joined #salt
12:32 wiggy joined #salt
12:32 cedwards joined #salt
12:33 Kyle_ joined #salt
12:38 sroegner_ joined #salt
12:40 iri- left #salt
12:40 sroegner__ joined #salt
12:43 MrTango joined #salt
12:51 redondos joined #salt
12:54 Ds71346 joined #salt
12:55 agu_ joined #salt
12:58 blee_ joined #salt
13:03 Ryan_Lane joined #salt
13:12 juasiepo joined #salt
13:16 ange joined #salt
13:17 harobed_ joined #salt
13:18 harobed_ joined #salt
13:18 rofl____ joined #salt
13:23 Guest38220 joined #salt
13:26 anitak1 joined #salt
13:28 EWDurbin joined #salt
13:28 Bosse_ joined #salt
13:30 N-Mi_ joined #salt
13:31 pentabular joined #salt
13:40 sroegner__ joined #salt
13:41 ange joined #salt
13:42 rofl____ joined #salt
13:42 vejdmn joined #salt
13:45 NotreDev joined #salt
13:48 jslatts joined #salt
13:48 rofl____ joined #salt
13:49 littleidea joined #salt
13:51 Sheco joined #salt
13:52 redondos joined #salt
13:57 oz_akan_ joined #salt
13:57 vejdmn joined #salt
13:59 oz_akan_ joined #salt
14:00 Sheco joined #salt
14:06 mpanetta joined #salt
14:08 cachedout joined #salt
14:10 mpanetta joined #salt
14:15 brianhicks joined #salt
14:15 racooper joined #salt
14:16 Ahlee You'll likely want to take the formula, mirror locally, and modify it to fit your needs, rather than blindly trusting someone upstream
14:17 _ikke_ Like with the salt bootrstrap? :P
14:17 Ahlee I can't believe people use that.
14:27 Katafalkas joined #salt
14:27 ipmb joined #salt
14:30 th3reverend joined #salt
14:31 honestly joined #salt
14:32 pentabular joined #salt
14:37 Gifflen joined #salt
14:37 oraqol Ok, I
14:37 oraqol I've tried everything I can think of, but a handful of minions don't get updated when I run state.highstate.
14:37 oraqol just get this for them in the report:
14:38 sdr_ joined #salt
14:38 oraqol Executing run on ['server998', 'server994', 'server993', 'server992', 'server99', 'server984', 'server980', 'server9$  server994:     ---------- server969:     ----------
14:39 sdr_ If a minion is offline when executing salt '*' saltutil.sync_modules, how can we ensure it gets the latest modules the next time it connects?
14:39 sdr_ Or does it automatically whenever it connects to the master?
14:40 juicer2 joined #salt
14:40 Ahlee sdr_: You'll want to write a reactor
14:40 Ahlee sdr_: http://docs.saltstack.com/topics/reactor/index.html
14:40 Ahlee I have mine set to run saltutil.sync_modules on minion_start
14:41 sdr_ Perfect, thanks!
14:46 mike251 hey guys ... is there a good tutorial on how to use jinja with salt? with some ... examples.. so one can understand how to start with that?
14:46 NotreDev joined #salt
14:46 pviktori joined #salt
14:49 tyler-baker joined #salt
14:51 dranger_ joined #salt
14:52 micah_chatt joined #salt
14:52 redondos joined #salt
14:53 william joined #salt
14:53 dranger__ joined #salt
14:54 smccarthy joined #salt
14:54 pass_by_value joined #salt
14:55 NotreDev joined #salt
14:57 mgw joined #salt
15:00 oraqol The only alternative I can see is to run highstate, like, 8 times in a row each time I need to propagate a change.
15:00 mannyt joined #salt
15:02 EWDurbin left #salt
15:05 dranger joined #salt
15:08 dranger_ joined #salt
15:10 N-Mi_ joined #salt
15:10 N-Mi_ joined #salt
15:13 davidfischer joined #salt
15:15 jslatts Ahlee: do you find reactors work reliably?
15:16 audreyr joined #salt
15:20 jkleckner joined #salt
15:24 swedchef joined #salt
15:24 swedchef hello everyone ... I seem to be having trouble understanding the pillar
15:25 mpanetta Is it possible to do per minion grains in _grains?  Not quite sure how to do it, the docs don't explain how per minion grains work in _grains.
15:25 swedchef I have a simple enough file, /srv/pillar/postgres.sls which outlines... dbuser, and listed under that is admin, adminpasswd, etc...
15:26 swedchef I can see the list fine if I do `salt-call pillar.items dbuser`
15:26 yano joined #salt
15:26 swedchef but I can't seem to use pillar.get to get any of the actual values
15:27 swedchef the entry in postgres.sls is essentially this, "dbuser:\  - admin: postgres\  - adminpasswd: guessme"
15:27 hhenkel Hi all, is there a good guide howto setup external auth? I'm currently struggling with a test user who fails to be authenticated...
15:27 swedchef salt-get dbuser:admin should work, no?
15:29 alunduil_ joined #salt
15:29 swedchef mpanetta, do you mean grains that are only on a minion? I do that in the /etc/salt/minion file
15:29 swedchef hhenkel, what kind of external auth?
15:29 Tekni joined #salt
15:30 Katafalkas joined #salt
15:30 hhenkel swedchef: external auth in the master to allow users to execute some commands on some hosts
15:30 matanya joined #salt
15:31 hhenkel swedchef: and finally to have a way to toy around with halite
15:32 opapo joined #salt
15:34 mike251 hey guys ... how can i change the filter_by  in a map :   set apache = salt['grains.filter_by']  ... i want to filter by OS not by os_family ?!?
15:35 StDiluted joined #salt
15:36 mpanetta swedchef: Hmm, what do you do when you need to add some later on?
15:36 swedchef mpanetta: Like how?
15:37 mpanetta swedchef: Wel, for instance I want to add a new role to a minion
15:40 swedchef mpanetta: I always add it to the config, but I looked and there is a way to add a grain on the fly ... http://docs.saltstack.com/ref/modules/all/salt.modules.grains.html
15:40 swedchef check out grains.append , would that work?
15:41 william_20111 joined #salt
15:42 swedchef hhenkel: this is all I found http://docs.saltstack.com/topics/eauth/index.html and you probably already saw it
15:43 quickdry21 joined #salt
15:44 dcolish left #salt
15:46 kermit joined #salt
15:46 hhenkel swedchef: Yes indeed...this is what I'm trying to do. The log in debug level is not much of a help here: [WARNING ] Authentication failure of type "user" occurred.
15:48 swedchef well that isn't exactly true, I did see this which was interesting https://github.com/saltstack/salt/issues/7762 but you and I are having the same basic problem ... we seem to be falling through the holes in the documentation
15:48 littleidea joined #salt
15:49 swedchef oops, I meant this one ... https://github.com/saltstack/halite/issues/17
15:49 mpanetta swedchef: Looks nice, unfortunately we are stuck with 0.16.4 :(
15:50 hhenkel swedchef: I managed to get it work...seems like I missed that fact that it's necessary to add the "-a" parameter.
15:51 wiggy joined #salt
15:51 cnelsonsic joined #salt
15:51 Mai joined #salt
15:52 hhenkel however I still fail to login to halite.
15:52 swedchef mpanetta: Well, all I know is if it is possible, it will be listed somewhere on that page. I always change the config files myself, so I can't be more help, sorry.
15:53 mohae joined #salt
15:53 mpanetta swedchef: That is ok, thank you for the help :)
15:53 Gifflen joined #salt
15:53 redondos joined #salt
15:53 Guest30473 i'm trying to bring up halite with paste but when i hit http://localhost:8080/app, it says file not found .  if i run server_bottle.py, i can hit app/main.html .  where can i go to see the errors salt may be complaining ?
15:55 hhenkel Guest30473: I was struggling with the same issues. Did you install from source?
15:55 Guest30473 yeah, i install from source
15:55 Guest30473 i think it's not getting the index.html to the right place
15:56 hhenkel Guest30473: Did you execute "python prep_dist.py" in the source folder?
15:56 anitak joined #salt
15:56 Guest30473 oh i did not
15:56 hhenkel I yesterday learned that this is necessary to generate the basic files.
15:57 hhenkel You need coffee-script to be installed.
15:57 lineman60 joined #salt
15:57 hhenkel halite webfrontend is running, but I'm currently unable to login with a user.
15:58 Guest30473 ok thanks, going to get coffee-script and try that
15:58 Guest30473 let's see if i end up with same problem like you after that :)
15:58 hhenkel Guest30473: If you solve this, let me know.
15:58 Guest30473 sure
15:59 agu_ joined #salt
16:00 Gifflen joined #salt
16:02 UtahDave joined #salt
16:02 teskew joined #salt
16:03 CheKoLyN joined #salt
16:04 amahon joined #salt
16:06 berto- joined #salt
16:08 mohae joined #salt
16:12 cachedout joined #salt
16:13 Brew joined #salt
16:14 oz_akan__ joined #salt
16:14 mike251 left #salt
16:14 Brew joined #salt
16:15 oz_akan__ joined #salt
16:15 pass_by_value hhenkel: what error do u see on the front end when u try to log on?
16:17 mgw joined #salt
16:17 pass_by_value also does localhost:8080/app even show anything on the browser page for you? I had run into some login errors (and maybe I can help in resolving those)
16:20 NotreDev joined #salt
16:21 snave joined #salt
16:21 Furao joined #salt
16:22 Brew joined #salt
16:22 StDiluted joined #salt
16:23 Guest30473 i now get:  File "prep_dist.py", line16, in <module>  retcode = call(['coffee', '-c', 'halite/app' ])  ...subprocess.py , line 470 in call return Popen(*popnargs, **kwargs).wait() ... OSError: no such file or directory
16:23 forrest joined #salt
16:24 Guest30473 when i try to process prep_dist.py ... i have CoffeeScript installed
16:24 DerekRBN joined #salt
16:24 NotreDev joined #salt
16:25 pass_by_value Guest30473: can you please do a pwd on the dir you are trying to run prep_dist in?
16:25 Brew joined #salt
16:26 Guest30473 i'm under halite-master
16:26 pass_by_value what folders and files are present in the halite dir?
16:27 Guest30473 build halite dist halite.egg-info pkg screenshots ..  also setup.py, test_server_start.py, package.json, prep_dist.py
16:27 Guest30473 it's the halite source folder
16:27 unicoletti left #salt
16:28 DerekRBN Any one know where salt logs are for windows?
16:28 pass_by_value cool, when u type coffee on your command line does it load coffeescript?
16:28 pass_by_value this prompt "coffee>"
16:29 TheRealBill_ joined #salt
16:29 forrest DerekRBN, did you already check C:\Salt?
16:30 DerekRBN Not seeing it there nor in program files
16:30 Guest30473 hmm.. coffee is not a command ?
16:30 UtahDave DerekRBN: c:\salt\var\logs
16:30 pass_by_value Guest30473 if coffee script does not load for you
16:30 pass_by_value try installing it with -g
16:30 pass_by_value assuming u are using npm
16:30 jkleckner joined #salt
16:31 pass_by_value and also in the halite source dir type (npm install .) - additionally
16:31 Brew joined #salt
16:31 Guest30473 well my box got no internet access so i need to download everything from souce on a different machine and then compile over after i scp the source over
16:33 Chocobo joined #salt
16:33 pass_by_value hmm, I am gonna setup a vm just to try the pip distribution for halite
16:34 Guest30473 oh looks like i install just the python portion of coffeescript and not the linux executables itself.. let me do that
16:34 pass_by_value we already do support that; but I saw that some folks on irc were having an issue with it
16:34 DerekRBN Thanks dave I might be on the wrong instance
16:36 jankowiak joined #salt
16:39 mgw joined #salt
16:41 williamthekid joined #salt
16:42 redondos joined #salt
16:43 dangerousbeans joined #salt
16:46 kaptk2 joined #salt
16:47 JasonSwindle joined #salt
16:49 JasonSwindle joined #salt
16:49 zandy joined #salt
16:53 NotreDev joined #salt
16:53 jalbretsen joined #salt
16:54 abe_music joined #salt
16:54 gasbakid joined #salt
16:55 dcolish joined #salt
16:55 jdenning joined #salt
17:00 hhenkel pass_by_value: The page shows up, including the login fields. If I give it the username and password I used before on the cli it fails with I think "login failed on the frontend".
17:01 APLU joined #salt
17:02 pass_by_value how does the halite section look in your master file?
17:03 pass_by_value and the section named 'external_auth'
17:07 [diecast] joined #salt
17:07 KyleG joined #salt
17:07 KyleG joined #salt
17:10 abe_music has anyone experienced a problem with salt-minion not starting after a reboot on centos 6.4? i've had to change the upstart params to "start on runlevel [2345]" for it to work
17:10 forrest which release abe_music?
17:10 abe_music forrest: on the develop branch
17:11 forrest haven't tried that
17:13 jnials joined #salt
17:14 troyready joined #salt
17:14 jslusher joined #salt
17:15 telchar joined #salt
17:15 telchar hello everyone
17:16 jasg75 joined #salt
17:16 NotreDev joined #salt
17:19 Ahlee jslatts: so far, though I've only been using it for a week or so.  Assuming the master is able to service responses when the minion starts, it appears to function.  I'll test when the master has all worker threads busy and a minion is brought up, see how it responds
17:19 gasbakid_ joined #salt
17:21 telchar is it possible to use a multiple-master setup in salt-stack to be able to join minions which are in distinct networks ? and centralize the calls to a single master (which will dispatch jobs ?)
17:22 StDiluted joined #salt
17:22 Ahlee telchar: http://docs.saltstack.com/ref/syndic.html
17:23 telchar thanks Ahlee
17:23 bemehow joined #salt
17:25 StDiluted joined #salt
17:28 eliasp joined #salt
17:29 Ahlee no problem :)
17:29 zandy joined #salt
17:30 nicksloan is there a way to tell salt which user to create a virtualenv as?
17:32 Ahlee nicksloan: https://github.com/saltstack/salt/blob/develop/salt/modules/virtualenv_mod.py#L46
17:32 Ahlee Looks like runas is the magic word
17:33 nicksloan Ahlee: perfect. Was looking for a user argument. Looked right past that.
17:33 forrest Ahlee, yep that's right. nicksloan, you can see an example here if you need one: https://github.com/gravyboat/hungryadmin-sls/blob/master/salt/hungryadmin/app.sls
17:33 Ahlee yeah, I initially overlooked it to and was about to comment as such :)
17:34 forrest though I still get some weird activity where some of my pip stuff gets installed as the root user, haven't figured out why
17:34 forrest granted it doesn't cause any problems
17:34 Ahlee I do everything through cmd.run followed up by a chown -R :)
17:34 forrest lol
17:34 forrest booooo
17:34 forrest Ahlee, coding out of the ghetto over here
17:35 Ahlee "If it ain't broke"
17:35 nicksloan Ahlee: I've gotten away with absolutely no cmd.run's in my configuration so far.
17:35 forrest sure sure, let's go back to rsync then :P
17:35 nicksloan I'm sure I'll need it eventually, but for now... :-)
17:37 jacksontj joined #salt
17:37 Ahlee forrest: eh, while said in jest, I find quite a bit of truth to https://twitter.com/NeckbeardHacker/status/355700665047203840
17:37 forrest Hah
17:37 forrest Well, there's plenty of arguments to that
17:37 Ahlee perhaps I just don't get it.
17:37 Ahlee yeah
17:38 Ahlee It's a good discussion to have over beverages
17:38 forrest To me it's always an issue when mr. neckbeard leaves, and his crappy 300 line shell script needs modifications
17:38 carmony UtahDave: Do you know how many tracks you're planning on for SaltConf?
17:38 Ahlee and how
17:38 forrest much easier to say 'yea update that nginx state for me, with the same syntax that everything else uses' as opposed to trying to figure out how his comment-less code references some shell variable set 6 files away :P
17:38 forrest carmony, a million
17:39 carmony forrest: lol :P
17:39 Ahlee forrest: lol, indeed!
17:45 Katafalkas joined #salt
17:47 bemehow_ joined #salt
17:47 robbyt joined #salt
17:50 Ryan_Lane joined #salt
17:52 zandy joined #salt
17:55 druonysus joined #salt
17:59 amahon joined #salt
18:01 zandy joined #salt
18:02 jacksontj joined #salt
18:04 JesseC joined #salt
18:06 [diecast] joined #salt
18:10 dvogt joined #salt
18:15 berto- joined #salt
18:16 shinylasers joined #salt
18:17 littleidea joined #salt
18:17 JasonSwindle joined #salt
18:18 srage joined #salt
18:18 xmltok joined #salt
18:22 NotreDev joined #salt
18:22 pdayton joined #salt
18:25 micah_chatt joined #salt
18:25 pdayton1 joined #salt
18:27 amahon joined #salt
18:32 xet7 joined #salt
18:33 pass_by_value joined #salt
18:37 StDiluted joined #salt
18:39 mmlb joined #salt
18:40 teskew joined #salt
18:41 Linz joined #salt
18:44 pentabular joined #salt
18:49 jsm joined #salt
18:49 davet joined #salt
18:54 jacksontj joined #salt
18:55 amckinley joined #salt
18:57 Guest30473 hi, i have halite installed from source and if i run python26 test_server_start.py , i can hit the console ok.  If i run via salt-master service, i get /app , file not found
18:57 Guest30473 anyone can help ?
18:58 jankowiak joined #salt
18:59 UtahDave pass_by_value: ^^
19:00 forrest heh
19:00 pentabular joined #salt
19:00 pass_by_value can you try and start server_bottle.py ?
19:01 pass_by_value assuming you have run prep_dist.py
19:01 pass_by_value above message was for Guest30473
19:03 Guest30473 pass_by_value:  yeah i got prep_dist.py run through fine and server_bottle.py works.  It send me to salt console
19:04 Guest30473 maybe salt is looking at wrong halite.. since i built it from source ?
19:05 pass_by_value That could be the case. Lemme check with my installations
19:10 backjlack joined #salt
19:11 srage joined #salt
19:11 wiggy joined #salt
19:12 Thiggy joined #salt
19:15 Guest30473 anyway to check logs somewhere maybe ?  /var/log/salt/master doesn't reference halite startup issue
19:17 pass_by_value if you run the python interpreter and try
19:17 pass_by_value import halite
19:17 pass_by_value what does it report?
19:19 Guest30473 pass_by_value : return nothing
19:20 Guest30473 no errors
19:20 zandy joined #salt
19:21 pass_by_value It means the import was ok
19:21 amahon joined #salt
19:21 pass_by_value you might want to try
19:22 pass_by_value halite.__file__
19:22 pass_by_value that will print where the source file was imported from
19:23 Guest30473 '/usr/lib/python2.6/site-packages/halite-0.1.07-py2.6.egg/halite/__init__.pyc'
19:23 dranger joined #salt
19:23 Guest30473 salt is using python26 so it should be seeing these lib libraries
19:23 ddv joined #salt
19:23 DerekRBN Can i use managed file and file.directory on windows?
19:24 pass_by_value do u know if the halite option is present when you invoke salt?
19:25 Guest30473 how do i check that ? ..
19:25 dangerousbeans joined #salt
19:26 dangerousbeans left #salt
19:26 pass_by_value I am not sure about it either, I was just reading the source code and that has those 2 conditions
19:26 pass_by_value import and 'halite' in salt.opts
19:27 thelorax123 joined #salt
19:28 Guest30473 fixed
19:29 Guest30473 looks like i also have halite-0.1.02 at some point and that was what salt was invoking.. when i check teh /usr/lib, i saw 2.  i got rid of 0.1.02 and that fixed the issue
19:29 mmlb joined #salt
19:29 pass_by_value did u put halite: true or something in your master config file?
19:30 troyready joined #salt
19:30 pass_by_value Like I said I am not sure if there is a command line flag for it, but that is definitely one way to make sure 'halite' is in salt.opts
19:30 Guest30473 i add halite in teh master config file
19:31 Guest30473 but it was loading the old version of the halite libraries.  i got rid of the old version of halite and now salt console is coming up.  now i just need to figure out what is the login/password :)
19:31 gasbakid joined #salt
19:31 mgw is there no ubuntu package for halite?
19:32 pass_by_value If you have a user foo o n your box and this http://pastebin.com/LENiBU7u
19:32 pass_by_value they you can login using foo's username and password
19:34 pass_by_value mgw: I am afraid not. Currently the only two ways to install  Halite are using the pip installer or from source.
19:34 mgw pass_by_value: thanks
19:34 pass_by_value np
19:34 mmlb hi i'm trying to manage / as a mount point, but keep `mount` keeps erroring out. see https://gist.github.com/mmlb/7664702 for sls and output
19:34 mgw Corey: any plans to package halite?
19:35 dpippenger joined #salt
19:35 Corey mgw: Not at this time.
19:35 Corey SaltConf may change my mind. :-)
19:36 mgw are you going to be there?
19:37 mgw Corey: ^
19:38 whiteinge Corey: if so, I owe you a couch. it's yours if you want it
19:39 JasonSwindle joined #salt
19:39 Corey whiteinge: Appreciated, but I have a suite at the Hilton. :-p
19:40 Corey mgw: I hope so; I'm speaking. :-)
19:40 mgw Corey: same here… what is your topic?
19:40 Corey mgw: Best Practices with Salt. You?
19:41 mgw virtualization, lxc in particular
19:41 Corey Interesting.
19:41 Corey Do we know if there are going to be multiple tracks?
19:41 Corey I kinda want to see... all the talks.
19:41 Guest30473 pass_by_value: hmm login failed..
19:41 mgw Last I looked at the saltconf website, it looked like single track
19:43 Guest30473 actually, it doesn't say login failed.. it just sits there :)
19:44 mgw Corey: actually, there must be multiple tracks based on the number of speakers
19:44 mgw basepi: do you know?
19:44 forrest Guest30473, are you trying to log in as root?
19:45 avdhoot joined #salt
19:45 forrest Corey, you're getting a suite? Jeez $$$ man
19:46 srage joined #salt
19:48 avdhoot can i  match event data['id'] with regex ? i am playing with reactor.
19:49 Guest30473 forrest: no i'm logging in using the user i config in salt/master file.. normal user on the box
19:49 mgw forrest, seriously… I'm going to be camped at Motel 6 myself.
19:51 Guest30473 in the salt/master i have :  pam:      userx:   - .*  - '@runner'   - '@wheel'   ..  and i'm trying to login as userx
19:53 jslatts joined #salt
19:55 pass_by_value are you able to ssh to localhost using userx?
19:55 Guest30473 pass_by_value: yep.  that's the user i login before i sudo to root
19:58 pass_by_value does the salt master log say anything about login failure?
19:59 jmccree joined #salt
19:59 Guest30473 yeah: Authentication failure of type "eauth" occurred.
20:00 pass_by_value hmm could you post the section on pastebin again please?
20:01 pass_by_value just as a sanity check (http://pastebin.com/LENiBU7u)
20:01 pass_by_value all those fields have to be there
20:01 Guest30473 external_auth:
20:01 Guest30473 pam:
20:02 Guest30473 userx:
20:02 Guest30473 - .*
20:02 Guest30473 - '@runner'
20:02 Guest30473 - '@wheel'
20:03 pass_by_value hmm that looks ok
20:03 Guest30473 going to try to add another user to see
20:07 JulianGindi joined #salt
20:07 Guest30473 ok this is flaky.. now it logs me in
20:08 pass_by_value what groups do those 2 users belong to?
20:08 EntropyWorks so is I see there is a salt.modules.logrotate with some cmd line examples. are there any examples of how to use it but called in an state.sls file like the builtin state modules
20:08 Guest30473 userx is in wheel
20:08 Guest30473 i just add usery and did not add to wheel ..
20:09 Guest30473 so usery is normal user.. i am log in as usery right now
20:09 pass_by_value Hmm I will see if I can re-create that situation on my vm
20:10 Guest30473 definitely flaky.. logout and try to log back in, got login failed again for user that works a minute ago
20:11 Guest30473 log is not very helpful.. i set halite to be on debug mode in salt master so was hoping for more verbose info
20:11 mephx Corey: halite <3
20:11 EntropyWorks also I'm curious why the https://github.com/saltstack-formulas/<blah> it was chosen to not put the sls files in side the first directory but instead create individual ones?
20:12 EntropyWorks like users-formula but it has the dir users where the goods are?
20:14 EntropyWorks just seems to me like more typing. or creation of symlinks all over the place if using multiple items from the saltstack-formulas
20:16 avdhoot ??
20:20 zandy joined #salt
20:22 avdhoot can i  match event data['id'] with regex ? i am playing with reactor.
20:23 th3reverend left #salt
20:23 NotreDev joined #salt
20:24 Katafalkas joined #salt
20:30 sdr_ Trying to use the salt rest API. I'd like to execute a runner asynchronously. I can set the client='local_async' if I want to run a module asynchronously on a minion, but how do I execute a runner asynchronously from the restAPI?
20:30 ydavid joined #salt
20:32 ccase joined #salt
20:40 abe_music joined #salt
20:40 schristensen is there a way to run salt in a dry-run mode?  like noop in puppet?  so it displays what it would change but doesn't actually do it?
20:40 KyleG test=True
20:40 KyleG ex: salt 'hostname' state.highstate test=True
20:40 schristensen great!
20:41 ccase joined #salt
20:45 cym3try joined #salt
20:48 dave_den avdhoot: in the sls file by default you only have jinja filters available. if your reactor sls files were py/pydsl you have full python available
20:52 zandy joined #salt
20:53 avdhoot dave_den: ok i am not sure how write http://docs.saltstack.com/ref/renderers/all/salt.renderers.py.html
20:53 avdhoot is there any more ex.
20:53 bemehow joined #salt
20:54 ipmb_ joined #salt
20:56 Psi-Jack http://paste.linux-help.org/view/7b6c8a62  -- Having an issue with pkgrepo not including the ending / on the repo url.
20:56 Psi-Jack name: deb http://debian.adiscon.com/v7-devel wheezy/  -- It's trimming off the /, causing the repo to fail.
20:57 cewood joined #salt
20:57 dave_den Psi-Jack: the adiscon repo is not layed out properly. it's annoying
20:57 Psi-Jack Yep.
20:57 Psi-Jack But, this is also common in many Debian repos.
20:58 Psi-Jack Since.. Forever.
20:58 dave_den i ended up putting the .debs in my own apt repo, but i think you can make v7-devel teh release and wheezy the component to fix it.
20:58 Psi-Jack I could just make it a file.managed, but that kinda defeats the purpose.
20:58 Psi-Jack And doesn't include the gpg key stuff.
20:58 dave_den or ust do file.managed to manage the repo
20:58 dave_den yeah
20:59 dave_den try the release/component change
21:01 [diecast] joined #salt
21:03 ddv left #salt
21:04 worstadmin joined #salt
21:09 mgw Anybody looking for a devops position, please feel free to PM me.
21:10 dranger joined #salt
21:10 quickdry21 hey guys, i'm getting a stack trace when trying to start the salt-minion - http://pastebin.com/TZM6cdyk - any thoughts?
21:11 mgw quickdry21: what does your minion config look like?
21:11 mgw Is there a schedule
21:12 quickdry21 the only thing i've changed is master
21:19 cym3try joined #salt
21:22 amahon joined #salt
21:29 mgw quickdry21: sorry, i'm not sure...
21:29 mgw Do you have any schedules master side?
21:30 quickdry21 nope
21:31 mgw obviously, this line is returning None for some reason: https://github.com/saltstack/salt/blob/develop/salt/utils/schedule.py#L267
21:32 quickdry21 yeah
21:32 quickdry21 just noticing, only a few machines having this problem, they are running 0.17.2, and the master is running 0.17.1
21:33 forrest usually you wanna upgrade your master first quickdry
21:33 mgw ah, that's not recommended
21:33 mgw (running older master)
21:33 quickdry21 yeah didn't think to check to make sure the bootstrap would use a consistent version
21:34 mgw I ran into that problem too… accidentally upgraded some systems to 0.17.2 before the master. I didn't have your issue though.
21:34 quickdry21 if i used the bootstrap to install master, can i use apt-get to upgrade the master?
21:34 quickdry21 looked like the bootstrap used dpkg
21:38 sroegner__ joined #salt
21:45 rojem joined #salt
21:46 StDiluted joined #salt
21:47 harobed_ joined #salt
21:48 harobed_ joined #salt
21:49 harobed_ joined #salt
21:50 harobed_ joined #salt
21:52 zandy joined #salt
21:52 dpippenger joined #salt
21:57 lemao joined #salt
22:05 snave joined #salt
22:09 cdcalef joined #salt
22:18 N-Mi_ joined #salt
22:23 cym3try joined #salt
22:26 shwaiil joined #salt
22:26 shwaiil hi
22:26 UtahDave joined #salt
22:26 shwaiil Hi
22:27 forrest shwaiil, feel free to ask your question, if someone knows they'll answer.
22:29 shwaiil I found about Salt. I'm interested in learning it. Just was wondering if this "formulas" thing, does it mean I can just pick a LAMP formula instead of having to create my own ? Tried to find some examples, etc but nothing. Actually I asked this yesterday but I didn't got any comment on this.
22:29 shwaiil May try it today, but, let's see...
22:30 shwaiil Thanks for looking! Any comments are appreciated!
22:31 forrest So you looked at this one for example? https://github.com/saltstack-formulas/apache-formula
22:32 forrest formulas won't have just a 'LAMP' formula, there will be a formula for Apache, one for mysql, maybe one for php, etc.
22:32 forrest You'll still have to do some adapting with the pillar information, as well as any files you might need, but they give you a general template to work from while reducing your overhead.
22:35 shwaiil forrest, thank a lot for looking.
22:35 forrest yea no problem, does that help explain it a bit?
22:35 shwaiil I was going to learn Puppet but then I read about Salt on hacker news
22:35 forrest haha
22:35 forrest yea I used to use puppet
22:36 shwaiil yeah explained. Because I was quiet surprised not finding a "LAMP" formula. To be honest, I only took last night to look into this, I've been quiet tired but before I went to bed I watched a few videos in my smartphone
22:36 littleidea joined #salt
22:37 shwaiil What I really need, is something like: Manage basic configuration for me, etc. Like, installing MySQL, Apache, PHP, etc
22:37 forrest yea fair enough, the whole point of the formulas is to be as modular as possible, so that people can just pick exactly what they need, so maybe they need apache and nosql, or something like that.
22:37 forrest shwaiil, yea you can do that with salt no problem, there's a bunch of pre-made formulas over here: https://github.com/saltstack-formulas
22:38 forrest I know there's a mysql one that is up to date, I believe the php one may be a bit old though
22:38 shwaiil forrest, so, could I setup my Salt master in my current environment or a VM and run he commands to install a new VM on Linode or something ?!
22:38 forrest If you opened the firewall and had the server sitting there yes, but most people using cloud providers use salt-cloud
22:39 forrest I wouldn't suggest running salt across the internet like that just for security reasons.
22:39 bastion2202 joined #salt
22:39 shwaiil samba formula... interesting :)
22:39 shwaiil salt cloud ? I'm gonna take a look
22:39 forrest Yep there are a lot of them, reminds me I need to work on updating them :\
22:39 bastion2202 hey guysm is there a way to force a minion to register again to the master?
22:39 forrest remove the key bastion2202?
22:39 forrest salt-key -d 'minion'
22:40 bastion2202 I did using salt-key -d
22:40 bastion2202 but even if I restart the minion his key is not in the salt-key -L
22:41 forrest odd, what happens when you try to ping the minion?
22:41 forrest you might want to check /etc/salt/pki/minion I think it is?
22:42 shwaiil not sure if Salt is for me, because I don't really need to manage lot's of servers. I just don't want to have to make the same configuration over and over again. Is that what Puppet is about ?
22:42 forrest shwaiil, I use salt to manage one box :D
22:42 shwaiil I'm here thinking... running salt formulas vs installing LAMP manually... is there an advantage ?
22:42 forrest Puppet and Salt are both designed for both large and small scale project.
22:43 shwaiil hum
22:43 forrest Well, I think there is an advantage because it makes setup easy for me, I run my blog with it, and when I'm ready to pull new content from github, I just log in, run salt, and the content is there, and services are reloaded as necessary (static content)
22:44 forrest shwaiil, how many machines are you planning on managing?
22:44 shwaiil I've got a few droplets in Digital Ocean (CentOS and Ubuntu 12.04) and in Linode 1
22:44 bastion2202 even without the key I can see the master connecting to the minion at restart, is there a way to remove it from the master ?
22:45 forrest bastion2202, what does it look like inside /etc/salt/pki?
22:45 forrest is your minion there somewhere on the master?
22:46 bastion2202 inside pki/minion : minion.pem  minion.pub  minion_master.pub
22:46 forrest shwaiil, All depends on you really, I hate doing manual configuration, where as I really enjoy just installing salt, pulling in my salt stuff from git, and then I'm done
22:46 forrest bastion2202, does the server still exist in one of the minion files?
22:46 shwaiil forrest, you run your blog. I got lost when you mention when I'm ready to pull new content from github...? You use it as a deployment tool or to run git pull ?!
22:46 shwaiil got lost
22:47 forrest I use it to for both
22:47 forrest part of my deployment is pulling my content from git
22:47 forrest so I write an article, and push it to my github repo, then I log onto my salt server, run salt, and all the new content is on the server.
22:47 forrest so it pulls my new articles in from github, then reloads nginx.
22:47 bastion2202 forrest yes
22:48 forrest ok, bastion2202, first try restarting the master real quick to see if it removes it from there
22:48 shwaiil forrest, strange. shouldn't your article be in your database instead and not your app logic ?!?!
22:48 cachedout forrest: https://help.github.com/articles/post-receive-hooks ;]
22:48 bastion2202 done this. did not change anything. My prob started when I decided to go from 016.x to 0.17.x
22:48 forrest shwaiil, it's a static blog, I don't really need a DB
22:49 forrest cachedout, it was more work to get that going than to just use Salt :P
22:49 cachedout I'm saying you could use post-hooks to fire off Salt after you commit. That would be slick.
22:49 forrest Ahh yea, that's a good idea
22:50 forrest that would be really cool, push to git, salt auto-runs and pulls in the content, done
22:50 forrest bastion2202, are your minions on 0.16?
22:50 bastion2202 all 0.17.2
22:51 rojem joined #salt
22:51 forrest hmm, I don't know why it wouldn't be removing it from the pki dir if you removed the system...
22:51 shwaiil By running this "formulas" how do I know it actually configured things properly ? I'll have to check right ? so for a single server is this really worth it ? I'm so confused.
22:52 jesusaurus the real value is in reproducibility
22:52 forrest shwaiil, you will still have to make sure the formula does things correctly, but once you've done that once, if you aren't changing anything, then it stays the same every run
22:52 forrest exactly jesusaurus
22:52 jesusaurus if you need to configure a new server, then its already all there in the salt config
22:52 zandy joined #salt
22:54 shwaiil forrest, which means that, if I configure things like I want, for let's say Ubuntu 12.04 LTS, whenever I create a new server I can just run my formulas and I'll have that
22:54 forrest yep, you just install salt, join it to your master, drop your formulas on there, and run salt, you're done.
22:57 shwaiil forrest, I'll try it in a few moments... so and do you see things being installed or...
22:57 shwaiil what happens on screen ?
22:57 forrest it will show you as it installs things
22:57 sdr_ Running some salt minions on windows. How do I get pip installed in the windows minion so I can get other modules on the minion?
22:57 forrest saying what completed, and what failed.
22:57 forrest sdr_, http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows ?
22:58 sroegner__ joined #salt
22:58 forrest shwaiil, yea take a look at the walkthrough: http://docs.saltstack.com/topics/tutorials/walkthrough.html
22:58 forrest and the states tutorial: http://docs.saltstack.com/topics/tutorials/states_pt1.html
22:58 forrest they're great starting places.
23:01 littleidea joined #salt
23:02 shwaiil forrest, I'll setup a VM Ubuntu 12.04 and install Salt and I'll try to install LAMP
23:02 shwaiil let's see how this goes
23:03 che-arne joined #salt
23:05 forrest cool!
23:07 sdr_ forrest, thanks. what I don't know is how to install pip if there is no python.exe to begin with. do I need to install python separately on the windows minion so I can get pip installed? Or is there a better way to get pip installed on a windows minion. The link you provided shows how to install pip if python is already installed.
23:10 amckinley joined #salt
23:10 frosty996 joined #salt
23:11 forrest Oh yea I see what you mean, I think you'll have to write a python state to install python first, then pip
23:11 forrest does it not work if you do that?
23:11 forrest because you can't use pip without python anyways
23:11 frosty996 Got a salt-cloud question.  We've got a private cloud running at rackspace with openstack and we normally name our servers like: web1.production, web2. production, web1.staging1, etc.  But whenever I provision a server, the hostname gets set to web1.mydomain.com instead of web1.production or web1.production.mydomain.com.  Any ideas?
23:13 fuser joined #salt
23:15 forrest frosty996, how are you doing the hostname assignment?
23:15 frosty996 forrest: no idea.  I was wondering if I can pass userdata through salt-cloud to openstack or not
23:16 frosty996 example: sudo salt-cloud -p precise.large web1.production
23:16 forrest yea I see this: http://salt-cloud.readthedocs.org/en/latest/topics/releases/0.8.2.html
23:17 forrest frosty996, how about here: http://salt-cloud.readthedocs.org/en/latest/ref/cli/salt-cloud.html#examples
23:17 forrest there's an example doing exactly that.
23:17 forrest using -p
23:18 frosty996 forrest: I don't treally see how that's different than what I'm doing?
23:18 forrest yea I was just confirming your example looks good
23:18 frosty996 oh I see
23:18 forrest but you're doing that and getting that lame hostname back?
23:19 frosty996 yah, so I'm doing salt-cloud -p precise.large web1.production
23:19 frosty996 and the hostname I end up with is: web1.mydomain.com instead of web1.production or web1.production.mydomain.com
23:20 forrest frosty996, can you do me a favor and try to do salt-cloud -p precise.large web1-production?
23:20 oz_akan_ joined #salt
23:20 frosty996 I suspect that will work fine, but trying now
23:21 worstadmin joined #salt
23:26 mgw twice I've had a minion appear to truncate its utils/process.py
23:27 mgw I know that sounds odd, but I just set up a minion, ran state.highstate (just fine) and then a little while later tried to run again
23:28 mgw File "/var/cache/salt/minion/extmods/modules/saltutil.py", line 404, in running
23:28 mgw if not salt.utils.process.os_is_running(data['pid']):
23:28 mgw AttributeError: 'module' object has no attribute 'os_is_running'
23:28 mgw and in fact salt.utils is missing it
23:28 mgw Maybe I have an outdated saltutil.py module getting distributed
23:29 ajw0100 joined #salt
23:31 mgw actually, the other way around :-)… too new a module
23:33 vkurup joined #salt
23:34 Linz joined #salt
23:35 frosty996 forrest: ok, that took a little while because someone was fiddling with the networking.
23:35 forrest no worries, any luck?
23:35 frosty996 So, as expected, that worked and the hostname is web1-production with a fqdn of web1-production.mydomain.com
23:36 forrest cool, so clearly the . is screwing things up
23:36 frosty996 so the dot makes it get truncated for some reason
23:36 frosty996 zactly
23:36 forrest so, options at this point, try to escape the .
23:36 frosty996 I was looking at the code, but it doesn't make sense why that would happen
23:36 frosty996 forrest: oh, that's a good idea, let me give that a shot.
23:36 forrest with \. , or see if there is an issue open on this. I know a LOT of places have been moving away from using . because it screwed stuff pu
23:36 torrancew it's OS level IIRC
23:36 forrest *up
23:37 frosty996 yah, with the nova client, I can pass the stuff in as userdata
23:37 avdhoot python sls file not redering http://pastebin.com/sGeXGzqj
23:37 frosty996 here's another error, though this isn't hurting me too badly:
23:37 frosty996 [ERROR   ] There was an error destroying machines: Dict object expected, not "'web1-production has been destroyed'".
23:38 frosty996 trying it escaped now
23:38 forrest well, stop passing strings :P
23:39 avdhoot this sls file should called when event minion_start get triggered
23:39 frosty996 forrest: it's not me, it's openstack
23:39 forrest I'm joking
23:39 frosty996 forrest: :-P
23:39 frosty996 let me see if there's already an issue for that
23:39 forrest it's almost 5, loosen up!
23:40 frosty996 definitely look forward to loosening up!
23:41 avdhoot normal YAML sls file get renderd not python template  http://pastebin.com/sGeXGzqj
23:42 lemoi joined #salt
23:43 lemoi after upgrading my master and all the minions to 0.17.2, three of my nodes to not respond to test.ping and I cannot see any traffic via tcpdump. this worked perfectly 1h ago with 0.16.4
23:43 lemoi any idea what might be causing it?
23:44 vipul joined #salt
23:45 N-Mi_ joined #salt
23:47 frosty996 forrest: escaping has no effect. :-(
23:48 forrest lame
23:50 NV hrm
23:50 NV has anyone experienced this before -- salt.exceptions.SaltReqTimeoutError: Waited 60 seconds
23:51 NV restarted minion and master to no avail
23:51 NV seems to happen no matter which minion i target, including the one local to the master
23:51 NV (when using 'salt')
23:52 zandy joined #salt
23:52 packeteer lemoi and NV, have you checked zmq version
23:53 NV 3.2.4
23:57 kermit joined #salt

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