Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-09-05

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

All times shown according to UTC.

Time Nick Message
00:01 jslatts joined #salt
00:02 moondawg I am going to file an issue for it and see if it is a desired feature
00:16 halfss joined #salt
00:20 Jahkeup joined #salt
00:22 [diecast] joined #salt
00:26 sgviking joined #salt
00:27 forrest shadowsun, did you ever file those issues?
00:30 oz_akan_ joined #salt
00:36 halfss joined #salt
00:37 dthom91 joined #salt
00:42 aat joined #salt
00:43 hellome joined #salt
00:46 whit joined #salt
00:47 jdenning joined #salt
00:48 jxqz forrest: I don't think adobe is a startup, but they took over omniture, which kind of still was
00:48 hellome joined #salt
00:48 Katafalkas joined #salt
00:48 jxqz and then they built this ridiculously startupy building in Lehi
00:49 jxqz across I-15 from the ministry of information
01:14 whit_ joined #salt
01:16 mgw joined #salt
01:25 rberger joined #salt
01:25 logix812 joined #salt
01:26 Nexpro joined #salt
01:31 halfss joined #salt
01:32 malinoff joined #salt
01:32 longdays joined #salt
01:33 aantony joined #salt
01:36 naemon joined #salt
01:37 NV fxhp: yeah, master config it seems
01:38 halfss_ joined #salt
01:39 maspwr joined #salt
01:39 hannesstruss_ joined #salt
01:39 NV which would require restart, so sad - back to pillars it is
01:40 whit joined #salt
01:44 liuyq joined #salt
01:46 liuyq joined #salt
01:47 jbunting joined #salt
01:48 Katafalkas joined #salt
01:49 sgviking joined #salt
01:50 NV hrm, can you define pillar data directly in the pillar top.sls?
01:53 sssslang cannot start master: M2Crypto.RSA.RSAError: unknown padding type. when master init it's key: self.key.private_encrypt('salty bacon', 5).
01:53 fxhp V
01:53 fxhp NV - I don't think so
01:53 fxhp NV - give it a test?
01:54 fxhp NV - I'm pretty sure pillar/top.sls is for targeting only.
01:55 xl joined #salt
01:55 UtahDave joined #salt
01:56 rberger joined #salt
01:56 Drexx joined #salt
01:56 lemao joined #salt
02:00 NV yeah doesn't appear to work
02:01 NV which brings me to point 2, is there any way to target in the same manner that top.sls does, in another file?
02:02 drags is github issues the central / only place for bugs?
02:02 NV usecase: i want to be able to create an array of attributes for hosts that doesn't require restarting master or minion to update, doesn't require data on the minion (this is configuration management, the idea is to keep all your attributes centrally after all!) and isn't overly verbose
02:02 NV drags: I believe so
02:03 UtahDave drags: yep!
02:03 UtahDave NV: have you tried using an external pillar?
02:03 NV if top.sls - where you do your matching - can only include other pillar files, then that fails the overly verbose check (requires a file for every role that would just contain "roles: [rolename]")
02:04 drags UtahDave: running into fun behavior.. my cp.push'd files have ~250,000 binary control codes as the first line of the file
02:04 NV id like to be able to make use of the existing glob matching
02:04 drags from all except 2 of my minions
02:04 NV using an external pillar would require reimplementation of all that glob matching magics
02:04 NV (being able to match on grains, hostnames, etc to assign attributes)
02:04 NV unless I'm missing something?
02:04 drags mentioning it in case it's known, but will try and come up with repro-steps/test case and post an issue if not
02:05 UtahDave NV: you can also just do those comparisons right within your jinja in one sls file
02:06 UtahDave drags: I haven't heard of that before.
02:06 UtahDave drags: Yeah, if you can open a bug report with the steps to reproduce, that would be awesome
02:06 NV http://pastie.org/private/dijr6rxznuseifyzmmttq something like that is what i'm after
02:07 NV where smtp-in.example.com would have examplecompanyhost and mailserver roles, while say bob.example.com would just have examplecompanyhost
02:07 andredublin joined #salt
02:08 NV that sort of matching can be done with jinja?
02:08 andredublin joined #salt
02:09 UtahDave NV: yeah, definitely. You have to power of most of python in jinja. You could do a glob match or pcre  {% if 'example.com' in grains.get('id') %}
02:09 UtahDave that's not tested, but do you get the idea?
02:10 rberger joined #salt
02:10 UtahDave It's actually better that way because you can't merge the same dict keys in pillar yet.
02:10 NV that was my next question :P - although in this case it would be a list not a dict
02:10 NV (did i mix up my yaml?)
02:11 UtahDave well, roles is a key in a dict
02:11 NV oh gotcha
02:12 andredublin left #salt
02:14 oz_akan_ joined #salt
02:23 SpX joined #salt
02:25 NV can jinja do regex or glob style matching?
02:26 NV google isn't being terribly helpful at this point in time
02:26 dthom91 joined #salt
02:27 UtahDave yeah, I think it can
02:29 NV http://www.mail-archive.com/pocoo-libs@googlegroups.com/msg00535.html closest thing i could find - guessing salt uses jinja2?
02:31 UtahDave yes
02:33 UtahDave hm
02:35 NV http://jinja.pocoo.org/docs/templates/#list-of-builtin-tests not seeing it there either, hmm
02:36 NV which is why i wanted to be able to use the in-built glob matching which is already quite powerful - although that would require the ability to define entries directly in top, and for merging of dict values
02:36 whit joined #salt
02:40 halfss joined #salt
02:45 whit joined #salt
02:49 Katafalkas joined #salt
02:52 Ryan_Lane joined #salt
02:54 mwillhite joined #salt
02:59 NV any ideas for solutions UtahDave? Glob matching on hostnames is kinda important to be able to group hosts together, etc
02:59 duck_ joined #salt
03:07 dthom91 joined #salt
03:10 Jahkeup_ joined #salt
03:20 torandu joined #salt
03:25 oz_akan_ joined #salt
03:28 baniir joined #salt
03:31 UtahDave joined #salt
03:35 ingwaem joined #salt
03:35 mannyt joined #salt
03:40 dthom91 joined #salt
03:42 vipul joined #salt
03:49 Katafalkas joined #salt
03:52 bhosmer joined #salt
03:55 wolfpack joined #salt
03:55 isomorphic joined #salt
03:56 hellome joined #salt
04:01 hellome joined #salt
04:01 jalbretsen joined #salt
04:03 today joined #salt
04:08 hellome joined #salt
04:08 littleidea joined #salt
04:09 NV if i write an external pillar, am i able to make use of the glob matching magics that salt does by use of a python import or anything like that perchance?
04:16 kula look in salt/utils/minions.py, at CkMinions. maybe that's usable outside?
04:20 amfarrell joined #salt
04:30 anuvrat_ joined #salt
04:32 jalbretsen joined #salt
04:43 felixhummel joined #salt
04:48 emocakes joined #salt
04:50 Katafalkas joined #salt
05:05 dthom91 joined #salt
05:12 tuxIO joined #salt
05:13 amfarrell does the install script have a checksum?
05:17 druonysus joined #salt
05:17 karlgrz joined #salt
05:19 karlgrz Hey all, is there an accepted way to install a version of ruby using rvm with salt? The rvm module seems broken in 0.16, unless I'm doing something terribly wrong.
05:21 aat joined #salt
05:29 karlgrz nm, this article helped me: http://stackoverflow.com/questions/16563115/how-to-install-rvm-system-requirements-without-giving-sudo-for-rvm-user
05:31 kevinbrolly joined #salt
05:33 jinrou joined #salt
05:37 g4rlic left #salt
05:50 halfss joined #salt
05:50 Katafalkas joined #salt
05:52 tuxIO joined #salt
06:06 carlos joined #salt
06:19 CheKoLyN joined #salt
06:22 gadams joined #salt
06:22 gadams joined #salt
06:22 TheCodeAssassin joined #salt
06:27 TheCodeAssassin morning
06:29 TheCodeAssassin except for UtahDave, who is probably somewhere in utah?
06:29 TheCodeAssassin So good evening UtahDave?
06:30 xmj TheCodeAssassin: is bored
06:33 TheCodeAssassin hey guys, for me installing mariadb-server takes a really long time
06:34 ml_1 joined #salt
06:40 mgw TheCodeAssassin: good morning
06:40 mgw do you see anything in the minion logs?
06:42 tca joined #salt
06:48 sfello joined #salt
06:49 Ryan_Lane joined #salt
06:50 Katafalkas joined #salt
06:54 maspwr joined #salt
06:59 balboah_ joined #salt
07:01 tuxIO joined #salt
07:02 TheCodeAssassin joined #salt
07:05 dthom91 joined #salt
07:07 TheCodeAssassin weirdest thing
07:07 balboah_ joined #salt
07:07 TheCodeAssassin i got this sls: https://gist.github.com/thecodeassassin/3b25103475ae292b3b4b
07:08 TheCodeAssassin it's saying it made /usr/share/phpmyadmin
07:08 TheCodeAssassin but the directory wasn't created
07:10 druonysus joined #salt
07:10 druonysus joined #salt
07:19 gildegoma joined #salt
07:22 quantalrabbit joined #salt
07:28 vaxholm joined #salt
07:29 bhosmer joined #salt
07:29 sssslang how to show self rsa key's fingerprint on minion?
07:31 maspwr joined #salt
07:35 tseNkiN joined #salt
07:39 itwasntme joined #salt
07:40 ProT-0-TypE joined #salt
07:40 itwasntme left #salt
07:41 ProT-0-TypE joined #salt
07:41 ProT-0-TypE joined #salt
07:43 ProT-0-TypE joined #salt
07:44 ProT-0-TypE joined #salt
07:45 ProT-0-TypE joined #salt
07:46 rjc joined #salt
07:50 druonysus joined #salt
07:50 efixit joined #salt
07:52 felixhummel joined #salt
07:53 mafrosis joined #salt
07:56 ProT-0-TypE joined #salt
07:57 ProT-0-TypE joined #salt
07:58 ProT-0-TypE joined #salt
07:58 ProT-0-TypE joined #salt
07:59 ProT-0-TypE joined #salt
08:00 ProT-0-TypE joined #salt
08:01 ProT-0-TypE joined #salt
08:01 ProT-0-TypE joined #salt
08:02 ProT-0-TypE joined #salt
08:03 ProT-0-TypE joined #salt
08:04 ProT-0-TypE joined #salt
08:04 ProT-0-TypE joined #salt
08:05 ProT-0-TypE joined #salt
08:05 MrTango joined #salt
08:06 Furao joined #salt
08:09 ProT-0-TypE joined #salt
08:11 linjan_ joined #salt
08:18 Furao max sendq?
08:20 tomviner joined #salt
08:20 aleszoulek joined #salt
08:22 malinoff joined #salt
08:22 ProT-0-TypE joined #salt
08:25 Pate_ joined #salt
08:27 ProT-0-TypE joined #salt
08:29 djinni` joined #salt
08:34 ProT-0-TypE joined #salt
08:35 ProT-0-TypE joined #salt
08:36 ProT-0-TypE joined #salt
08:42 ProT-O-TypE joined #salt
08:44 ProT-0-TypE joined #salt
08:52 ggoZ joined #salt
08:54 scott_w joined #salt
08:56 fredvd joined #salt
08:59 tru_tru joined #salt
09:05 ronc joined #salt
09:20 Katafalkas sorry to repeat my question but: I am using parted to make a file system. I got warning that you are planing to remove parted in later releases. Is anyone working on anything yet ?
09:22 ProT-0-TypE left #salt
09:23 shiin repeating questions is fine. the next step might be developer mailing lists or bug trackers.
09:26 yml I am a bit puzzled because I am using salt 0.16.3 where according to the doc there are a bunch of mysql states : mysql_user, mysql_database, mysql_grants
09:26 malinoff Katafalkas: Try to ask your question in https://groups.google.com/forum/#!forum/salt-users
09:26 yml but when I try to use them salt tell me that they are not available
09:26 Katafalkas kk. cheers guys
09:27 yml and when I do `sudo salt '*' sys.list_modules` I do not see them
09:27 malinoff yml: Can you pastebin your state?
09:29 bhosmer joined #salt
09:29 yml malinoff: https://dpaste.de/mn9wX/
09:29 yml here it is ^
09:32 backjlack joined #salt
09:33 yml and the states are available https://dpaste.de/5Hnw1/
09:37 malinoff yml: Do you have MySQLdb python module installed?
09:38 * yml facepalm
09:38 yml probably not on the server
09:38 yml https://groups.google.com/forum/#!topic/salt-users/EwHh7SjKjgU
09:39 yml I was just reading about this
09:39 yml thank malinoff
09:39 malinoff yml: Hehe. I have to say, RTFM :)
09:39 malinoff http://docs.saltstack.com/ref/states/all/salt.states.mysql_user.html?highlight=state%20mysql#management-of-mysql-users
09:39 yml huhuhuhu
09:40 * yml double facepalm it was in front of my nose for the last 30 min
09:46 tuxIO joined #salt
09:46 malinoff yml: As usual.
09:59 tuxIO_ joined #salt
10:22 unicoletti_ joined #salt
10:23 Lue_4911 joined #salt
10:48 jslatts joined #salt
10:48 mastrolinux joined #salt
10:49 mastrolinux hi, in a cron state I am trying to use "{{ 10 * int(grains['nodename'].split('-')[1].lstrip('0')) % 60 }}"
10:49 mastrolinux but I obtain: UndefinedError: 'int' is undefined
10:52 mastrolinux is there a way to use a python expression in sls without writing a whole state in python?
11:05 blee_ joined #salt
11:08 Pate_ joined #salt
11:09 vaxholm joined #salt
11:13 jinrou joined #salt
11:18 jbunting joined #salt
11:24 logix812 joined #salt
11:29 jinrou joined #salt
11:35 tuxIO joined #salt
11:37 mwillhite joined #salt
11:47 zooz joined #salt
11:49 littleidea joined #salt
11:58 Pate_ joined #salt
12:03 littleidea joined #salt
12:05 jinrou joined #salt
12:06 lemao joined #salt
12:07 lineman60 joined #salt
12:07 xt joined #salt
12:09 emocakes joined #salt
12:09 xl Hi, can salt master change minion's configuration? e.g. settings for mongo returner
12:11 littleidea joined #salt
12:12 oz_akan_ joined #salt
12:13 oz_akan_ joined #salt
12:16 xmj i sure hope so.
12:18 TheCodeAssassin anybody here chrooting users using salt?
12:21 giantlock joined #salt
12:23 kspath joined #salt
12:23 mastrolinux FYI I solved the cron problem doing something like:
12:24 jslatts joined #salt
12:25 mastrolinux https://gist.github.com/mastrolinux/6449425
12:32 brianhicks joined #salt
12:33 tuxIO joined #salt
12:41 nocturn Hi, I'm trying to use environments in salt.  It finds my SLS files, but filesources fail (Source file salt://<file> not found)
12:42 nocturn I tried with salt://<env>/<module>/<file>
12:42 nocturn and without <env>
12:42 nocturn What am I missing?
12:42 fredvd joined #salt
12:49 tuxIO_ joined #salt
12:50 Koma joined #salt
12:50 tyler-baker joined #salt
12:52 Katafalkas What is the difference between writing simple script using salt python api , and writing salt-runner, which is still using python api ?
12:55 Jahkeup joined #salt
12:59 Jahkeup_ joined #salt
13:00 Pakdel joined #salt
13:00 juicer2 joined #salt
13:09 naemon joined #salt
13:11 longdays joined #salt
13:12 bhosmer joined #salt
13:13 Gifflen joined #salt
13:14 Tekni joined #salt
13:16 lineman60 joined #salt
13:20 whit joined #salt
13:23 mastrolinux @nocturn
13:23 mastrolinux http://docs.saltstack.com/ref/states/all/salt.states.file.html?highlight=environment file.managed:
13:23 mastrolinux - source:
13:23 mastrolinux - salt://foo.conf?env=dev
13:24 nocturn Thank you
13:24 mastrolinux so salt://module/file?env=environment
13:24 mastrolinux be sure you have the proper env path in your master file
13:24 sgviking joined #salt
13:26 anteaya joined #salt
13:28 nocturn mastrolinux, it seems to work now
13:28 nocturn thanks
13:28 mastrolinux @nocturn, you are welcome!
13:35 santagada_ joined #salt
13:36 faldridge joined #salt
13:42 wolfpack_ joined #salt
13:43 m_george|away joined #salt
13:43 cppgohan joined #salt
13:44 isomorphic joined #salt
13:46 emocakes joined #salt
13:49 jinrou joined #salt
13:50 sgviking joined #salt
13:53 kaptk2 joined #salt
13:53 alunduil joined #salt
13:53 hellome joined #salt
13:54 mannyt joined #salt
13:57 mgw joined #salt
13:57 cwright i need to have a -require on of a particular version of a package.  i don't see any docs on how to do that.   is this possible?
13:58 fredvd joined #salt
13:58 cwright for example, i need to require that the linux kernel be an exact version before i install another package.  i want that other package to have a -require on a specific version of the kernel
14:01 m_george left #salt
14:06 Kholloway joined #salt
14:10 jbunting joined #salt
14:11 imaginarysteve joined #salt
14:15 naemon joined #salt
14:25 gildegoma joined #salt
14:25 toastedpenguin joined #salt
14:30 isomorphic joined #salt
14:31 az87c joined #salt
14:32 imaginarysteve joined #salt
14:34 whyzgeek is it normal that salt doesn't complain if a salt file is not there?
14:35 whyzgeek like top.sls points to vim.sls but that is not there
14:35 whyzgeek it just silently skip it
14:36 isomorphic joined #salt
14:37 jalbretsen joined #salt
14:42 santagada left #salt
14:42 VertigoRay joined #salt
14:45 abe_music joined #salt
14:47 mmilano joined #salt
14:47 pdayton joined #salt
14:50 turksheadsw joined #salt
14:51 kermit joined #salt
14:51 ccase joined #salt
14:55 maspwr joined #salt
14:56 dml_ joined #salt
14:57 mgw joined #salt
14:57 teskew joined #salt
14:58 JaredR Is it possible, from the master, to tell a minion to add a grain and have it 1. be persistent, 2. take effect without restarting the minion?
14:59 bhosmer_ joined #salt
15:01 abe_music JaredR: i don't think it's possible, but maybe it's been added….AFAIK, you have to go edit the grains file and restart the minion
15:03 ccase Does salt '*' grains.append key val save it to the config file?
15:05 JaredR I'm looking into this: salt '*' grains.setval key val
15:05 rhoml joined #salt
15:05 ckao joined #salt
15:06 jslatts joined #salt
15:09 premera joined #salt
15:09 JaredR salt example-host1 grains.setval deleteme please
15:09 JaredR TypeError encountered executing grains.setval: setval() takes exactly 2 arguments (1 given). See debug log for more info.  Possibly a missing arguments issue:  ArgSpec(args=['key', 'val'], varargs=None, keywords=None, defaults=None)
15:10 lemao joined #salt
15:11 JaredR Errr. Real error: TypeError encountered executing grains.setval: 'NoneType' object is not iterable. See debug log for more info.  Possibly a missing arguments issue:  ArgSpec(args=['key', 'val'], varargs=None, keywords=None, defaults=None)
15:12 tca joined #salt
15:12 DerekRBN1 joined #salt
15:12 DerekRBN left #salt
15:13 KennethWilke joined #salt
15:13 tca joined #salt
15:14 mwillhite joined #salt
15:22 SpX joined #salt
15:27 mgw1 joined #salt
15:29 KennethWilke does anyone know what would cause salt-key to crazy slow?
15:31 UtahDave joined #salt
15:33 ccase JaredR: salt foobar grains.setval delete me
15:33 ccase foobar:
15:33 ccase delete: me
15:33 ccase Not sure what's wrong with your command, but the same works for me.
15:34 JaredR My custom grains are defined in /etc/salt/grains. Does that make a difference?
15:34 zwevans joined #salt
15:35 rhoml joined #salt
15:35 ccase Not sure... The grains end up in /etc/salt/grains on my test box as well:
15:35 ccase cat /etc/salt/grains
15:35 ccase delete: me
15:42 TheCodeAssassin joined #salt
15:47 unicoletti_ left #salt
15:47 abele joined #salt
15:49 StDiluted joined #salt
15:53 StDiluted joined #salt
15:54 naemon joined #salt
15:54 chrisgilmerproj joined #salt
15:54 naemon left #salt
15:55 naemon joined #salt
15:55 wolfpack joined #salt
15:56 forrest joined #salt
15:57 dthom91 joined #salt
15:58 bhosmer joined #salt
16:01 soukihei joined #salt
16:03 jinrou_ joined #salt
16:03 dthom91 joined #salt
16:05 littleidea joined #salt
16:05 tuxIO joined #salt
16:06 forrest hey abe_music, we figured out why you kept pulling in the 0.16.0 branch yesterday
16:06 mephx joined #salt
16:08 JaredR joined #salt
16:13 bitz joined #salt
16:16 Sypher joined #salt
16:17 abe_music forrest: what was it? i double checked again this morning and i'm pulling the latest commits
16:17 eculver joined #salt
16:18 forrest abe_music, you're pulling the 0.16.3?
16:18 UtahDave abe_music: what's the output of salt --version?
16:18 forrest Yesterday we tested what you were doing (minus pip because we hadn't used that method before), and the issue was that it would pull 0.16.0 if we didn't pull down the git tags
16:18 forrest after doing that and checking out the version again, it was good to go
16:18 abe_music forrest, UtahDave : salt 0.16.0-2985-g35f3d17
16:18 Ryan_Lane joined #salt
16:18 forrest pull the tags down
16:18 forrest and you should be ok
16:19 tomviner left #salt
16:19 forrest You're still pulling from dev.
16:19 UtahDave abe_music: ok, that means you have installed from the develop branch from the salt repo
16:19 UtahDave you're install is 2985 commits past the 0.16.0 release tag
16:20 UtahDave and you're at commit hash g35f3d17
16:20 abe_music ok, so i definitely need to be at 0.16.3 then? i'll update my tags and pull that
16:20 chrisgilmerproj left #salt
16:20 forrest yea try doing that abe
16:20 forrest it worked for us yesterday.
16:21 forrest like I said though we didn't use pip because of a lack of familiarity with pulling git down through that.
16:24 abe_music alright, salt --version is reporting "salt 0.16.3"
16:24 forrest for the master?
16:24 abe_music yes
16:24 forrest nice
16:24 abe_music pip requirement i'm using: -e git://github.com/saltstack/salt.git@v0.16.3#egg=salt
16:25 forrest but you pulled the tags down manually before re-running that right?
16:25 forrest and it actually pulled in 0.16.3 instead of 0.16.0?
16:26 abe_music it did…git describe shows v0.16.3 and git tag shows all the available tags
16:26 abe_music git branch reports i'm not in a branch
16:26 abe_music i have to run to a meeting, i'll keep testing when i get back…thanks both forrest  and UtahDave
16:29 KyleG joined #salt
16:29 KyleG joined #salt
16:29 whit joined #salt
16:32 KennethWilke UtahDave: any idea why salt-key and restarting the salt-master would take an excessively long time?
16:32 KennethWilke excessive being like a few minutes sometimes
16:33 xet7 joined #salt
16:37 UtahDave KennethWilke: No, that sounds quite odd.
16:38 UtahDave how much ram does the master server have and how many minions are attached to it?
16:38 KennethWilke the server has 2gb ram, and 6 minion
16:39 UtahDave that's plenty good
16:39 CheKoLyN joined #salt
16:39 UtahDave what version of Salt are you running?
16:39 KennethWilke 0.16.3
16:40 KennethWilke on debian
16:41 mgw joined #salt
16:41 KennethWilke trying to find something that could be the cause, but it's making me angry. rah!
16:42 * KennethWilke flips chairs
16:43 forrest why don't you strace the restart process?
16:44 UtahDave have you tried starting up the master in debug mode in the console?
16:44 KennethWilke it's an intermittent issue, not happening atm
16:44 KennethWilke but after i start getting into the flow of work and it happens again, i can try to strace it
16:46 UtahDave /msg KennethWilke Hey, do you have a second for a question?
16:47 KennethWilke yar
16:48 bhosmer_ joined #salt
16:48 vaxholm joined #salt
16:49 Jahkeup joined #salt
16:52 whiskybar joined #salt
16:58 dthom91 joined #salt
17:00 TheCodeAssassin joined #salt
17:01 tuxIO joined #salt
17:03 forrest Hey terminalmage, do you have a minute to discuss https://github.com/terminalmage/djangocon2013-sls/blob/master/foo/app.sls#L26 ? I'm curious as to whether there's a way to chown a virtualenv env, say I wanted it to exist as a non-root user. Am I just missing it in the options?
17:03 erchn joined #salt
17:03 terminalmage forrest: hmm
17:03 terminalmage good question, lemme check
17:04 forrest ok, I don't see anything in the actual state itself when I look in the repo
17:04 erchn hi all, I'm trying out Salt on Ubuntu for the first time, and was wondering if other people have seen a similar issue in using pkgrepo, in that it runs apt-get -q update on every invocation, even when there is no change to the repository definition
17:04 terminalmage forrest: looks like "runas" is what you want
17:04 efixit joined #salt
17:05 terminalmage forrest: but beware, we're deprecating runas in favor of "user"
17:05 terminalmage hasn't been done everywhere yet so you can't just use "user"
17:05 erchn I suspect it'll be easier to just create a managed file that executes update when changes are made, but was wondering if there's an easier way
17:05 forrest does using the user option modify the user/group that owns it?
17:06 terminalmage forrest: it actually runs the virtualenv command to create the virtualenv as that user
17:06 terminalmage as far as chowning an existing virtualenv if you change the user, almost certainly not
17:06 forrest oh I see that's exactly what I'm looking for, awesome
17:06 terminalmage but it's something that wouldn't be too difficult
17:06 forrest yea I'm building the virtualenv out, so that's perfect
17:07 forrest thanks
17:07 forrest Wasn't sure what all the options did :D
17:08 SunSparc joined #salt
17:09 erchn I guess that's a no. :-)
17:11 forrest terminalmage, I noticed your pillar is just called pillar.example, but then inside of the foo sls items you just declare it as pillar when you do the lookup. Can you name it pillar.anything as long as pillar is the first word?
17:11 ingwaem joined #salt
17:12 forrest erchn, you could code something up so in your sls it only performs a check on that repo if the md5sum of the file doesn't match or something along those lines.
17:15 terminalmage forrest: no. I should probably put this in the readme. So, I didn't use git_pillar, I actually copied that file and the overstate example file to their proper locations in file_roots and pillar_roots
17:15 terminalmage and called it django.sls
17:15 terminalmage the pillar one that is
17:16 terminalmage then I assigned "django" to all hosts in my pillar top.sls
17:16 terminalmage forrest: I'll update the readme in a bit once I am done with what I am working on right now.
17:17 terminalmage forrest: what do you mean that it's called "pillar" when I do the lookup
17:17 terminalmage just want to be sure we're on the same page
17:17 forrest so you do this: % set foo_venv = salt['pillar.get']('foo:venv') %}
17:18 forrest and I thought you were using pillar.example for where you were pulling it from, because I don't see a file_roots, or pillar_roots in your top.sls (I believe that's where it is supposed to go right?)
17:18 [diecast] joined #salt
17:19 erchn forest: yea, probably could, I'll look into wrapping my managed calls in a get_repo call in Jinja or something, just not sure why it's not handled by default
17:19 forrest erchn, might be worth seeing if there's an open issue on that.
17:20 erchn I couldn't find one, but will look again
17:20 forrest oh opk
17:20 forrest *ok
17:20 erchn ahh, found it
17:20 erchn https://github.com/saltstack/salt/issues/6866
17:21 forrest nice
17:25 forrest oh nevermind terminalmage I'm an idiot, didn't realize the file roots were set in the config file
17:25 terminalmage yeah, pillar.get is just navigating a multi-level dict
17:27 troyready joined #salt
17:39 Ryan_Lane joined #salt
17:40 ingwaem joined #salt
17:41 giantlock joined #salt
17:43 druonysus joined #salt
17:43 druonysus joined #salt
17:44 dthom91 joined #salt
17:46 Jahkeup joined #salt
17:47 maspwr joined #salt
17:49 benspaulding joined #salt
17:51 druonysus joined #salt
17:58 druonysuse joined #salt
17:59 Ryan_Lane joined #salt
18:00 Ryan_Lane joined #salt
18:00 Ryan_Lane joined #salt
18:02 jinrou joined #salt
18:03 Jahkeup joined #salt
18:04 dkubb joined #salt
18:04 eculver joined #salt
18:04 eculver joined #salt
18:05 pdayton joined #salt
18:10 pdayton joined #salt
18:12 isomorphic joined #salt
18:12 felixhummel joined #salt
18:15 montuori joined #salt
18:18 tempspace joined #salt
18:18 cmthornton joined #salt
18:19 tempspace Can anybody help me out with the syntax for the new pillar defaults described in http://docs.saltstack.com/topics/pillar/index.html
18:19 tempspace In http://docs.saltstack.com/topics/pillar/index.html#including-other-pillars specifically
18:24 erchn joined #salt
18:25 tempspace The syntax in the documentation appears to just be wrong
18:28 erchn sorry, in what way, I had to restart my browser, so maybe I missed your previous comment
18:30 ml_1 joined #salt
18:30 montuori Hi y'all -- Perhaps a dumb question: is there a way to force the loading of a module in an sls template?  I'd like to use the mysql module which isn't loaded at the start of a highstate run -- presumably because the mysql libs haven't been installed yet.
18:30 ml_11 joined #salt
18:31 erchn montuori: no, I don't think so
18:32 dthom91 joined #salt
18:32 montuori Alas, that's too bad, but not insurmountable.  Thanks!
18:33 erchn right at the top of the mysql.py file it tries the import and if that fails will not finish loading the module
18:36 montuori rightly so.  :)  i was hoping that it might be possible for force the module to load as part of a requires: condition.
18:37 jslatts joined #salt
18:39 jslatts joined #salt
18:42 jslatts joined #salt
18:47 felixhummel_ joined #salt
18:47 faldridge joined #salt
18:49 tempspace This is what I'm talking about, https://gist.github.com/tempspace/6454428
18:50 tempspace I know my syntax must be wrong somehow, but I don't know where
18:51 UtahDave montuori: have your other states require a state that installs the mysql libs.  You should be fine
18:54 sfello joined #salt
18:55 jpeach joined #salt
18:56 jpeach is there a way to test connectivity from a minion to a master?
18:56 Ryan_Lane joined #salt
18:57 UtahDave tempspace: can you execute that with the minion running in a terminal in debug mode?     salt-minion -l debug
18:58 abe_music joined #salt
18:59 tempspace UtahDave: I did, it throws [CRITICAL] Failed to load grains defined in grain file opts.opts in function <function opts at 0x1c042a8>, error: when the test2 pillar is included
19:03 holmb swehlm
19:03 maspwr joined #salt
19:03 holmb err, wrong window. :)
19:03 UtahDave tempspace: I'm kind of guessing here, but is that the correct syntax for jinja includes like that?
19:03 holmb I'm lucky that wasn't my password!
19:03 druonysuse joined #salt
19:03 druonysuse joined #salt
19:03 UtahDave :)   lol
19:04 tempspace UtahDave: I have no idea, that's what the syntax looks like on http://docs.saltstack.com/topics/pillar/index.html#including-other-pillars to me
19:04 tempspace the docs aren't very clear
19:05 erchn tempspace, I ididn't know that even worked, existed
19:05 UtahDave Yeah, I'm not real sure on that.
19:05 erchn there is still an issue open that it doesn't
19:05 erchn https://github.com/saltstack/salt/issues/4244
19:06 JaredR joined #salt
19:06 UtahDave tempspace: you might ask on that mailing list
19:06 robertkeizer joined #salt
19:06 jpeach ok, I think I see what is going on
19:07 erchn tempspace: for what's it's worth, Jinja includes do work, so you could {% include "test1.sls" %} and then reference variables as expected
19:07 jpeach no, actually I still don't know
19:08 jpeach when I run a state.highstate, my minion goes deaf and doesn't return any more
19:08 jpeach nothing in the logs
19:10 erchn tempspace: actually, just try removing the "-" from in front of "test1" in your gist, should work then
19:11 Gifflen_ joined #salt
19:11 dkubb left #salt
19:12 mgw joined #salt
19:13 tempspace erchn: don't think so, Include Declaration in SLS 'test2' is not formed as a list
19:13 Gifflen_ joined #salt
19:14 erchn tempspace: oh, you are right, I didn't see that message in my output, sorry about that.  I would probably request more information in github on issue 4244, or ask on the mailing list as UtahDave mentioned
19:15 abe_music joined #salt
19:19 jinrou joined #salt
19:20 jpeach can anyone advise me on how to debug a communication problem between master and minion?
19:21 gadams did you run 'salt-key -L' on master?
19:21 gadams and then 'salt-key -A' afterwards/
19:21 jpeach yes, it's fine
19:22 gadams and /etc/salt/minion is pointing to the correct master ?
19:22 jpeach after  I run state.highstate, the minion stops processing messages from the master
19:22 gadams Oh, well.
19:22 gadams I am unsure of that one.
19:22 jpeach after restarting the minion, all is well again
19:23 pdayton joined #salt
19:23 holmb Did you enable debug logging on the minion?
19:23 tempspace jpeach: run the minion using salt-minion -l debug and see if it gives any indication
19:23 holmb Start it with salt-minion -l debug and run a highstate.
19:24 bhosmer joined #salt
19:24 middleman_ joined #salt
19:24 jpeach tempspace: yeh I have that on minion and master and I don't see anything
19:25 jpeach holmb: the state.highstate is successful (I have to increase the default timeout on the salt command though)
19:25 Jahkeup joined #salt
19:25 jpeach independent of the timeout, a subsequent test.ping will report "Minion didi not return"
19:25 jpeach the salt-minion log never logs the job ID that is seen on the master
19:27 gadams Does anyone use salt for machine persistence ?
19:27 devinus joined #salt
19:27 gadams e.g. if a user changes a conf file or installs another package salt replaces or removes it?
19:29 wimbo joined #salt
19:29 wimbo hello all, somebody can told me how i can build salt from git repo?
19:29 wimbo for testing some my fix in source code
19:30 robertkeizer wimbo: "python setup.py build", "python setup.py install".
19:30 UtahDave wimbo: the easiest way is to install salt with your package manager to get all the deps.  Then clone the repo, cd salt;   sudo python setup.py install --force
19:31 robertkeizer There is some documentation regarding installing it along side somewhere.. half a sec, let me find a link.
19:31 linjan_ joined #salt
19:31 wimbo thx
19:31 jpeach weirdly, when the minion goes "offline" salt-call on that minion still works, but there's no log information from salt-minion
19:31 robertkeizer http://docs.saltstack.com/topics/hacking.html
19:32 erchn gadams: yes...you can use the scheduler, or you can setup a cron job (my preferred method)
19:32 wimbo That's what I was looking for! thank yo
19:32 gadams erchn: do I have to run another command other htan salt.highstate ?
19:33 erchn you don't have to, but it can be nice to target specific formulas, via salt.sls <formula>, which can make execution faster and easier on the master
19:34 erchn gadams: it's also a nice of running specific formulas without having to target specific nodes via top.sls
19:35 jpeach aha … the jobs *do* come back from the "offline" minion, but it takes time, maybe 15mins
19:37 gadams erchn: are you using salt to auto register your minions in nagios?
19:37 erchn nope
19:38 holmb gadams: At least in Ubuntu, you could use the new pkg.get_selections and pkg.set_selections functions to "revert" a change in the list of installed packages.
19:38 gadams hmm.
19:38 holmb gadams: It would require you to preserve the output of pkg.get_selections and compare it between runs.
19:38 holmb gadams: https://github.com/saltstack/salt/pull/6882
19:41 gadams holmb: nice code :)
19:43 Ryan_Lane joined #salt
19:43 holmb gadams: Thanks
19:45 cwright holmb: thanks for that functionality, I've been waiting for it for a while.  looking forward to it in the next release
19:46 holmb I'm happy that it will be used. :)
19:47 Kholloway joined #salt
19:48 abe_music forrest, UtahDave: so, after getting salt master v0.16.3, i still see the broken pipe exception on the minion until i manually restart it
19:48 abe_music https://gist.github.com/abemusic/6455214
19:48 abe_music there's the log before and after the restart
19:48 forrest of the minion?
19:49 forrest Did you restart after installing the latest release?
19:49 forrest before doing this?
19:50 devinus joined #salt
19:50 blee joined #salt
19:51 abe_music forrest, the master was stopped and started after the v0.16.3 upgrade. the minion was installed automatically through bootstrap by salt-cloud
19:51 abe_music the first time i run the pkg.install on the master i get the error, then i restart the minion and it works
19:52 forrest but this is on a fresh machine where you should have bootstrapped the latest 0.16.3 release, so when you start the minion the first time it's that version right?
19:52 middleman_ joined #salt
19:53 abe_music that's right, brand new centos 6.4 machine bootstrapped with salt-minion v.0.16.3
19:53 forrest hmm, I wonder if maybe the grain data isn't getting set or something? Very odd
19:54 austin987 joined #salt
19:55 jpeach looks like my problem is networking … related to running lokkit to punch firewall holes
19:55 austin_laptop joined #salt
19:56 isomorphic joined #salt
20:05 gadams What's the word on python3?
20:10 CheKoLyN joined #salt
20:13 blee_ joined #salt
20:15 druonysus joined #salt
20:15 druonysus joined #salt
20:16 Niichan joined #salt
20:17 cedwards o
20:23 jpeach joined #salt
20:29 qba73 joined #salt
20:29 baniir joined #salt
20:32 gildegoma joined #salt
20:35 middleman_ joined #salt
20:39 rjc joined #salt
20:48 middleman_ joined #salt
20:50 efixit joined #salt
20:59 azylman joined #salt
21:05 oz_akan_ joined #salt
21:05 adam__ joined #salt
21:05 jbunting joined #salt
21:05 andermic joined #salt
21:06 adam__ Bit of a newbie question here - but how do I write a state to install my own python package. I have a setuptools packages .tar.gz python package that I want to pull from the salt master and install
21:07 littleidea joined #salt
21:07 bdf joined #salt
21:10 Niichan Would you guys welcome contributions to salt to support Alpine Linux?
21:12 cedwards Niichan: Salt loves contributors. If you add support and do a pull request on github I'm sure it'll get looked at.
21:12 Jahkeup joined #salt
21:12 Niichan cedwards: Sweet. Do you know where I should start looking?
21:13 Niichan About the only big difference is going to be detecting an Alpine System and having it understand apk AFAIK
21:13 cedwards you might look at the grains system. that's what detects system attributes.
21:16 Niichan Okay, thanks :)
21:16 Jahkeup_ joined #salt
21:16 bhosmer joined #salt
21:17 druonysus joined #salt
21:18 adam__ can anybody help?
21:23 cedwards adam__: sorry, i haven't done much with python packages / setuptools
21:23 cedwards adam__: you might try the mailing list if nobody else pops in
21:24 adam__ Basically I can pip install from pypy fine, but I have my own code which I've got in a python package, and I basically want to transfer it to the minion and pip install it
21:25 middleman_ joined #salt
21:26 cedwards adam__: i suppose you could try file.managed to push the file to the minion and then a cmd.run to pip install it.
21:26 azylman joined #salt
21:26 VertigoRay Does a minion know what environment it is in?
21:27 adam__ cedwards - Thanks - yes I was thinking about that, but it just seems slightly kludgey
21:28 VertigoRay I don't see anything stored in pillar[master] ... which seemed like the most logical place for it.
21:29 cedwards adam__: like i said, i haven't done much with that. i'm guessing the pip module doesn't support local packages?
21:29 StDiluted anyone use the user-data on AWS?
21:29 holmb adam__: Check out virtualenv.create and pip.install
21:29 VertigoRay let me rephrase ... there's a pillar[master][environment] = None ... even though the machine is in my dev env.
21:30 adam__ holmb: I've tried pip install but I can't see how to do it from a file from the master as opposed to a an http URL or pypy source
21:31 holmb adam__: pip.install will probably (I haven't tried it) use pypi.python.org, and if so, that is configurable.
21:31 holmb See the documentation for pip and distutils.
21:32 holmb adam__: Found it for you:
21:32 holmb sudo mkdir -p /root/.pip
21:32 holmb echo -e "[global]\nindex-url = ${PYPI_INDEX}" | sudo tee /root/.pip/pip.conf
21:32 holmb echo -e "[easy_install]\nindex_url = ${PYPI_INDEX}" | sudo tee /root/.pydistutils.cfg
21:33 holmb Before running that, set PYPI_INDEX to a local pypi repository.
21:33 mgw left #salt
21:34 adam__ thanks
21:35 devinus joined #salt
21:41 m_george|away joined #salt
21:41 mgw joined #salt
21:43 azylman joined #salt
21:44 jacksontj joined #salt
21:44 alunduil joined #salt
21:48 jinrou joined #salt
21:50 Ryan_Lane joined #salt
21:53 VertigoRay Hey guys, quick question ... if you run `salt '*' config.get environment` from your master, do your minions return anything but None?
21:54 cedwards VertigoRay: all of mine return None
21:55 cedwards VertigoRay: I don't have any environments setup though. I wouldn't expect anything different on my setup.
21:56 benspaulding I have a situation where I have master and minion on the same machine, and the only fileserver backend I am using is gitfs. When calling highstate, it finds the tree and attempts to execute the states, but any state using a salt:// file fails, saying that file cannot be found.
21:56 benspaulding Any idea why that would be?
21:56 benspaulding (If I remove the gitfs configuration and just put the files in /srv/salt manually, then restart salt-master, I can run highstate and it finds the files without issue.)
21:56 VertigoRay cedwards: think it should return "base", in your situation
21:57 azylman joined #salt
21:57 azylman left #salt
21:57 middleman_ joined #salt
21:58 jacksontj joined #salt
21:58 Kilsharion joined #salt
21:58 VertigoRay cedwards: None is the default (https://github.com/saltstack/salt/blob/develop/salt/pillar/__init__.py#L24) and isn't actually being overwritten.
22:06 oz_akan_ joined #salt
22:07 s00pcan joined #salt
22:09 joshe joined #salt
22:11 kermit joined #salt
22:18 robertkeizer joined #salt
22:21 teebes joined #salt
22:27 cewood joined #salt
22:30 jslatts joined #salt
22:30 jacksontj joined #salt
22:30 middleman_ joined #salt
22:44 mgw joined #salt
22:53 middleman_ joined #salt
22:56 TheCodeAssassin joined #salt
23:07 mwillhite joined #salt
23:09 chrisgilmerproj1 joined #salt
23:09 bhosmer joined #salt
23:11 UtahDave joined #salt
23:30 KyleG1 joined #salt
23:35 oz_akan_ joined #salt
23:35 hellome joined #salt
23:40 jacksontj joined #salt
23:40 oz_akan_ joined #salt
23:42 middleman_ joined #salt
23:45 hellome joined #salt
23:53 hellome joined #salt
23:57 hellome joined #salt
23:59 druonysuse joined #salt
23:59 druonysuse joined #salt

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