Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-02-28

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

All times shown according to UTC.

Time Nick Message
00:03 Eureka_ left #salt
00:07 ltsampros whiteinge: :( unfortunately no. although I enabled @jobs, @wheel, @runner on my external auth. and I can see it on the json response when i authenticate through /login
00:07 ltsampros whiteinge: btw that's on 2015.02.rc1
00:07 ltsampros whiteinge: so I might suspect a bug...
00:08 josephleon joined #salt
00:09 p0rkbelly is RAET the default in Lithium? Still considered Beta? Stable?
00:10 iggy p0rkbelly: it is definitely not the default
00:10 iggy I haven't heard of many people having success with it... but then you rarely do
00:15 ocdmw joined #salt
00:19 alexbst joined #salt
00:25 jeddi joined #salt
00:28 kermit joined #salt
00:33 baweaver joined #salt
00:34 aphoriser joined #salt
00:35 fxhp joined #salt
00:35 murrdoc joined #salt
00:45 Nazca__ joined #salt
00:46 stevednd it there not a file state that allows you to append text to a file is that text doesn't already exist in the file? right now I am using file.append with an unless statement that greps the file
00:47 iggy I thought that's what file.append did already
00:47 stevednd maybe I suck at reading
00:47 stevednd yep, confirmed
00:52 shaggy_surfer joined #salt
00:54 davet joined #salt
00:56 mdasilva joined #salt
00:57 shaggy_surfer joined #salt
01:12 bhosmer joined #salt
01:13 diegows joined #salt
01:14 baweaver joined #salt
01:19 teebes joined #salt
01:20 otter768 joined #salt
01:20 ocdmw joined #salt
01:22 holms joined #salt
01:26 tmh1999 joined #salt
01:29 RabidCicada joined #salt
01:31 ufd joined #salt
01:42 davedash I'm having trouble running this: http://salt.readthedocs.org/en/v2014.7.0/ref/states/all/salt.states.htpasswd.html?highlight=htpasswd#module-salt.states.htpasswd
01:43 davedash every time I run my state it says webutil.user_exists is unavailable.
01:43 davedash Tried the module too and got htpasswd.useradd
01:43 davedash unavailable
01:45 baweaver joined #salt
01:46 mamercad joined #salt
01:47 mamercad anyone know if you can pass 100% to lvm.lv_present ?
02:12 p0rkbelly if I bootstrap 2015.2.0rc1 vs develop. Two different things right now, correct?
02:12 michelangelo joined #salt
02:16 Nazca joined #salt
02:18 forrest joined #salt
02:19 whiteinge forrest, buxy: dirvish added to the Contributors team
02:19 aqua^mac joined #salt
02:23 JDiPierro joined #salt
02:25 teebes joined #salt
02:28 nitti joined #salt
02:31 pacopablo when running a command via cmd.run or possibly another way, is it possilbe to reference a salt:// path as an file argument?
02:38 bhosmer joined #salt
02:41 ocdmw joined #salt
02:47 stylica joined #salt
02:49 ilbot3 joined #salt
02:49 Topic for #salt is now Welcome to #salt | SaltConf 2015 is Mar 3-5! http://saltconf.com | 2014.7.2 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
02:52 malinoff joined #salt
02:57 aphorise joined #salt
03:01 jhauser_ joined #salt
03:05 tmh1999 joined #salt
03:08 codr joined #salt
03:08 Vynce The large number of chapter 1's in the http://docs.saltstack.com/en/latest/contents.html is a bit confusing
03:13 aqua^mac joined #salt
03:15 dario` joined #salt
03:19 SheetiS joined #salt
03:20 dimeshake joined #salt
03:20 RabidCicada Once you figure out counting to 16 it's not so bad....*snicker*
03:22 dimeshake joined #salt
03:23 badon joined #salt
03:25 dimeshake joined #salt
03:39 theologian joined #salt
03:46 josephleo joined #salt
03:48 stooj joined #salt
03:49 JlRd joined #salt
03:52 jahmed joined #salt
03:53 otter768 joined #salt
03:54 pdayton joined #salt
04:01 pdayton1 joined #salt
04:04 ocdmw joined #salt
04:05 victor- joined #salt
04:13 malinoff joined #salt
04:28 msheiny joined #salt
04:50 elfixit1 joined #salt
04:50 victor- joined #salt
04:59 aquinas joined #salt
05:23 favadi joined #salt
05:25 TTimo joined #salt
05:49 theologian joined #salt
05:49 sfxandy joined #salt
05:54 otter768 joined #salt
05:55 sourc3 joined #salt
06:03 ocdmw joined #salt
06:19 clintberry joined #salt
06:22 smcquay joined #salt
06:26 jahmed joined #salt
06:27 nullptr joined #salt
06:37 theologian joined #salt
06:37 favadi joined #salt
07:00 primechuck joined #salt
07:04 otter768 joined #salt
07:05 \ask joined #salt
07:26 TTimo joined #salt
07:28 ndrei joined #salt
07:32 JlRd joined #salt
07:33 cberndt joined #salt
08:01 primechuck joined #salt
08:03 jahmed joined #salt
08:08 totte left #salt
08:21 bash1245_ joined #salt
08:27 TTimo joined #salt
08:29 ajw0100 joined #salt
08:41 bhosmer__ joined #salt
08:50 evle joined #salt
08:55 sourc3 joined #salt
08:57 I3olle joined #salt
09:06 sourc3 joined #salt
09:11 jtang joined #salt
09:14 otter768 joined #salt
09:17 iromli joined #salt
09:18 teogop joined #salt
09:25 malinoff joined #salt
09:30 aqua^mac joined #salt
09:41 N-Mi_ joined #salt
09:56 stoogenmeyer joined #salt
10:23 sfxandy joined #salt
10:23 ocdmw joined #salt
10:25 TyrfingMjolnir joined #salt
10:31 cberndt joined #salt
10:41 jahmed joined #salt
10:50 netzmonster joined #salt
10:53 ocdmw joined #salt
10:54 CeBe joined #salt
10:57 favadi joined #salt
11:03 amcorreia__ joined #salt
11:04 ekkelett Trying to search for terms related to "salt" and "chef knife" is a nightmare.
11:05 ocdmw joined #salt
11:13 ltsampros ekkelett: yeah that's the problem with such catchy names
11:13 ltsampros back in 2004 i was trying to find blonde redhead albums on emule :/
11:13 ekkelett Especially hard when you combine ingredients with kitchen motifs
11:14 ekkelett hahaha
11:15 ekkelett Heh, looks like emule hasn't changed at all. That's quite the nostalgia feeling creeping up
11:15 otter768 joined #salt
11:16 dexter91x joined #salt
11:18 dexter91x is there any explanation for : when using filter_by any other grain instead of the default , like mem_total it doesn't work, or if the value was true/false , it doesn't work also , is this because it has a yellow color ?
11:19 ocdmw joined #salt
11:20 dexter91x i mean the grains where the values are yellow
11:21 ocdmw joined #salt
11:27 CeBe1 joined #salt
11:28 harkx joined #salt
11:29 TTimo joined #salt
11:30 favadi joined #salt
11:30 TyrfingMjolnir joined #salt
11:35 ocdmw joined #salt
11:37 netzmonster joined #salt
11:38 CeBe joined #salt
11:41 chiui joined #salt
11:43 jrluis joined #salt
11:45 bash1245_ joined #salt
12:01 flebel joined #salt
12:06 ssm joined #salt
12:06 harkx joined #salt
12:09 bash1245_ joined #salt
12:12 stoogenmeyer joined #salt
12:28 aboe joined #salt
12:31 TTimo joined #salt
12:40 ocdmw joined #salt
12:42 bhosmer joined #salt
12:48 ocdmw joined #salt
12:49 mdasilva joined #salt
12:52 dexter91x any one ?
12:55 aphorise joined #salt
13:15 I3olle_ joined #salt
13:15 tmh1999 joined #salt
13:16 otter768 joined #salt
13:19 mikeywaites joined #salt
13:22 dexter91x joined #salt
13:22 mikeywaites Hey, having a few issues generting a cmd.script call from a reactor event.  seems like salt thinks the remote source template is in the cache but it later fails to find the file.  Heres the issue replicated on the command line.
13:22 mikeywaites https://gist.github.com/mikeywaites/90a77bb7273ca9c0bc4d
13:25 teebes joined #salt
13:27 stoogenmeyer joined #salt
13:36 lovecraftian joined #salt
13:36 ltsampro` joined #salt
13:37 JPT mikeywaites: it looks like there is no bash shell installed to run your script
13:37 JPT check the shebang of the script
13:38 JPT no... bash is present, but somewhere in there is another bash call with a missing /
13:39 mikeywaites JPT:  you ledgend had a typo
13:39 mikeywaites jeez been staring at this for to long
13:39 mikeywaites thanks
13:41 JPT :)
13:49 Vynce joined #salt
13:58 sourc3 joined #salt
13:59 amcorreia__ Salt have something similar to chef community recipes?
14:00 ocdmw joined #salt
14:00 stylica joined #salt
14:09 TTimo joined #salt
14:13 JPT amcorreia: i'm not familiar with chef at all, but i guess salt states and formulars may be similar
14:13 RabidCicada joined #salt
14:14 amcorreia JPT, and have a place where i can just download other states/formular for salt?
14:14 JPT maybe/kind of...yes? https://github.com/saltstack-formulas
14:15 JPT e.g. there is a users formula that you can easily fetch, put into your gitfs_remotes and then use in your own salt states to deploy users with ssh keys, passwords and more
14:17 amcorreia i see, thank you
14:18 che-arne joined #salt
14:23 jri joined #salt
14:43 pdayton joined #salt
14:45 yes456 joined #salt
14:46 dude051 joined #salt
14:47 jri joined #salt
14:49 stoogenmeyer hey, is there a way to make sure that the docker client is logged in ? I see there's an execution module with the function docker.login but i dont see a state docker.logged_in or something of the sort
14:50 ocdmw joined #salt
14:54 jri joined #salt
14:57 toanju joined #salt
14:57 kellnola joined #salt
15:00 netzmonster joined #salt
15:06 primechuck joined #salt
15:09 favadi joined #salt
15:09 jri joined #salt
15:11 dude051 joined #salt
15:17 otter768 joined #salt
15:17 chiui joined #salt
15:17 theologian joined #salt
15:23 karimb joined #salt
15:23 mdasilva joined #salt
15:26 ufd joined #salt
15:31 stylica joined #salt
15:32 jri joined #salt
15:33 harkx joined #salt
15:34 TyrfingMjolnir joined #salt
15:36 clintberry joined #salt
15:37 stoogenmeyer figured out I could have a state cmd.run with a simple docker login command. Does anyone know how to format this yaml better though? thank you http://pastebin.com/QKJNthGx
15:37 stoogenmeyer it does not work as it is
15:38 jri joined #salt
15:40 rubenb joined #salt
15:41 Auroch joined #salt
15:41 yes456 joined #salt
15:42 TyrfingMjolnir joined #salt
15:42 dimeshake try this stoogenmeyer http://pastebin.com/DfixdCvV
15:43 dimeshake though it might interpret each line there as a separate command
15:45 holms joined #salt
15:45 stoogenmeyer dimeshake: thanks ! i'll give it a try
15:55 primechuck joined #salt
15:59 yes456_ joined #salt
16:05 malinoff joined #salt
16:11 mikeywaites joined #salt
16:15 dude051 joined #salt
16:20 ocdmw joined #salt
16:20 chamunks Is there a salt module for editing the salt-master list on the minions?
16:20 chamunks Is there a salt module for editing the salt-master list on the minions?
16:21 holms1 joined #salt
16:22 chamunks I want to add a new salt-master and potentially remove an old one.
16:27 markm joined #salt
16:28 TyrfingMjolnir joined #salt
16:31 toastedpenguin joined #salt
16:31 chamunks Oh right I remember now I asked this already.
16:32 theologian joined #salt
16:33 toastedpenguin joined #salt
16:34 dude051 joined #salt
16:34 favadi left #salt
16:35 Aikar chamunks: your name looks very familiar. what other channels you hang in?
16:35 chamunks I totally don't do anything related to minecraft ever. noooo
16:35 Aikar lol
16:35 chamunks o/
16:35 Aikar well the link has been established =P
16:37 chamunks haha
16:37 chamunks Aikar what do you use salt for?
16:37 Aikar day job
16:37 Aikar well i work closely with the devops team, and helping out build the dev environment
16:37 Aikar and I also asked for a change in infrastructure late in the picture so i told em ill do the work :P
16:38 Aikar but yeah mainly need to know basics for the dev buildout
16:38 chamunks Fair enough.
16:38 Aikar and i do sys admin work for MC of course...
16:38 chamunks Well I'm not nearly that involved but I am looking to have a prettier method for migrating salt-masters.
16:39 Aikar trying to figure out a more "DRY" salt-mine approach
16:39 chamunks what server/network?
16:39 Aikar EmpireMinecraft
16:39 chamunks I know you did that ever so appreciated timings parser.
16:40 chamunks I just wish that there was a way to visualize the heap without having to learn a profiler.
16:40 chamunks I think thats about the only thing thats not done easily.
16:40 Aikar http://timings.aikar.co/dev/ like that? lol
16:40 conan_the_destro joined #salt
16:40 Aikar day job set me behind greatly on that
16:41 chamunks Probably getting kind of OT is there a different channel?
16:41 Aikar spigot
16:41 Aikar but does anyone have a recommendation for me
16:41 Aikar we use <environment>-<role> for naming
16:42 Aikar salt['mine.get']('id:vag-mysql', 'network.ip_addrs', expr_form='grain').items() for the DB in this case (Vagrant)
16:42 Aikar any preferred way to drop the environment and go by role only, I was looking into this nodegroups that looks relevant
16:43 chamunks I know I have a far distance to travel before I'm at that level of knowledge hah
16:43 Aikar yeah devops did the initial work figuring salt.mine out, but at my career level I can read and understand anything by looking at it lol
16:44 aphoriser joined #salt
16:44 Aikar ultimately not my job, but I like to help
16:46 chamunks Salts a pretty great tool.  I like how low the entry level is.  Heres our bootstrap command enjoy.  Oh also heres some simple variables to boot.
16:48 Aikar its nice having modern tools. I was able to add a memcached server into the infrastructure complete with a local VM to test that matches every other environment completely in less than an hour
16:49 Ahrotahntee is there any way to get more verbose error messages out of reactor than "unable to render sls file" ?
16:50 Aikar Ahrotahntee: i believe there are some verbosity configs
16:50 Ahrotahntee I'm running at "debug" level for verbosity
16:50 Aikar i know ours is currently showing everything about a highstate, and i found the "only show me crap that went wrong" setting
16:51 chamunks If only there was an monitoring tool that was nearly as easy to set up as Salt
16:51 Ahrotahntee lets try trace.
16:51 Ahrotahntee I should scrap this as-is and try a simpler reactor maybe
16:52 Ahrotahntee something with output (and blackjack)
16:54 Aikar i don't even know what role reactors play yet
16:57 Sypher joined #salt
16:57 Ahrotahntee event handling
16:58 Ahrotahntee I don't get the output from state.sls, I need to watch the salt-master debug output to get it :V
16:58 Ahrotahntee which is kinda tedious
17:00 mdasilva joined #salt
17:00 Aikar is it maybe cached? Don't know how long minions cache master. I haven't worked on master. I work off vagrant minion accessing directly to the config. If you dont have that yet, look into vagrant so you can test config changes fairly quickly
17:05 Ahrotahntee the event is triggering, but there is an error with the .sls file it's executing
17:05 Ahrotahntee unfortunately it's not giving me any details as to why its failing (just that it does)
17:15 Ahrotahntee I have now discovered I have(had) a fundemental misunderstanding about how reactor.sls files are supposed to be structured.
17:18 otter768 joined #salt
17:19 Aikar in pillars/top.sls we have a root node per environment, what selects that identifier?
17:19 Aikar i cant seem to find that
17:19 Aikar so its prod: then prod-role*: stuff
17:24 ocdmw joined #salt
17:26 ocdmw joined #salt
17:28 nullptr joined #salt
17:29 stoogenmeyer What is the default user that each state is run as if I don't specify one?
17:30 Sypher joined #salt
17:32 micah_chatt joined #salt
17:34 tmh1999 joined #salt
17:35 tmh1999 joined #salt
17:42 teambrad joined #salt
17:45 sander_____ joined #salt
17:58 JPT stoogenmeyer: i guess the default (unless the minion runs as a different user) is root
17:59 JPT try salt '*' cmd.run 'whoami' and check the results
18:09 kermit joined #salt
18:10 chamunks I have 30 someodd servers that are extremely out of date.
18:10 chamunks 50% of them are centos and 50% of them are ubuntu.
18:10 chamunks Would it be remotely sane to salt -G 'os:CentOS' cmd.run "yum -y update"  or some variant?
18:11 JPT It depends on your exact configuration and the update process itself
18:11 JPT Anything that will interactively ask the user for things will stall the job on the minion
18:11 chamunks JPT well realistically the previous sysop left things fairly inconsistent.
18:12 chamunks Some of these servers haven't been touched in 500 days
18:12 chamunks indicated by running "uptime"
18:12 JPT I guess you can use salt to check and/or update the repositories for yum and apt
18:13 JPT are the servers running update-sensitive services?
18:13 JPT such as an old php application which will not survive a big upgrade
18:13 chamunks Shouldn't be.
18:13 chamunks its for this minecraft hosting company.
18:14 chamunks Its been left in an atrocious state.  Granted its not oversold or anything just its never been upgraded ever.
18:14 * SheetiS tends to have salt configure a system to register with spacewalk then have spacewalk handle the package updates.
18:14 JPT i guess the first step to a less nervewrecking experience would be to make sure the servers are all consistent in a very basic manner, ensuring an upgrade to fully work
18:15 pdayton joined #salt
18:15 SheetiS salt states etc to determine what packages are installed, then spacewalk for udpates etc
18:15 chamunks spacewalk huh
18:15 JPT sounds interesting
18:16 chamunks Realistically the only things that can't break is java which shouldn't be a huge issue.
18:16 JPT chamunks: if you want to avoid big downtimes of 30 servers at once, you can try upgrading the machines individually through salt. if something does not work, you can easily learn from that
18:17 chamunks Well I tried on node 8 and it seemed to go well.
18:17 JPT then maybe try ~3 other nodes at once and check the results :)
18:17 chamunks SheetiS have you any documentation on how you used spacewalk like this?
18:18 chamunks eh this looks overcomplicated.
18:18 chamunks I'll just stick with salt realistically.
18:19 theologian joined #salt
18:20 chamunks JPT I've been having issues targeting multiple things like defining hostname AND os "salt -G 'os:CentOS' 'ns*'" test.ping
18:20 SheetiS https://bpaste.net/show/a8ce7805762b is my state to configure spacewalk.  It's completely geared for working with Amazon Linux, and I probably should have used pkgrepo.managed for the repos, but I don't have an 'everything together' integration doc.
18:21 SheetiS chamunks: use -C for a compound match
18:21 SheetiS salt -C 'ns* and G@os:CentOS' test.ping
18:21 chamunks SheetiS to save me the trial and error would you be so kind as to show me an example?  ... and you're awesome haha
18:22 chamunks I tried targeting like that before, couldn't seem to get it to work for some reason.  Didn't remember why.
18:23 SheetiS http://docs.saltstack.com/en/latest/topics/targeting/compound.html has all the possibilities
18:23 chamunks I think that in most cases the language used in a new technology is the hardest part of learning the tech.
18:23 chamunks Well a lot of cases anyways.
18:25 JPT i love the verbose debug logging that you can use to test things. it helped me out quite a lot understanding what's going on
18:27 chamunks I wonder if I should execute the upgrades inside of a screen or something.
18:28 JPT the minion will return immediatly and you won't get the errors in your salt master output
18:28 JPT but you can use that screen to provide interactive input
18:29 JPT you may be able to use the pkg module from salt
18:29 JPT something like salt '...' pkg.upgrade
18:29 JPT i know that it provides nice feedback for debian machines and does a good job
18:31 toastedpenguin joined #salt
18:31 chamunks pkg.upgrade makes me feel like its only doing one
18:31 toastedpenguin joined #salt
18:32 chamunks http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.yumpkg.html#module-salt.modules.yumpkg
18:32 chamunks potentially
18:33 JPT yumpkg for centos, pkg (aptpkg) for the ubuntu ones
18:33 ocdmw joined #salt
18:34 SheetiS yumpkg.upgrade says a 'full system upgrade'
18:34 SheetiS I would assume the behavior is consistent across all the pkg modules when possible.
18:35 JPT the aptpkg modules default is to use dist-upgrade, so i guess it should be consistent in a way - depending on what repos the package manager has loaded
18:35 chamunks salt.states.pkg.uptodate
18:35 lude joined #salt
18:35 chamunks yumpkg.upgrade hmm
18:37 chamunks SheetiS where did you see this I've been searching in the documentation site.
18:37 JPT Just to share a valuable lesson i learned on friday evening: Always think about your salt command before hitting return. Instead of appending a line to a file, i replaced its content with the line, forcing me to fix an important file on 10 machines at once. ;-)
18:38 chamunks JPT I accidentally locked out by omitting an > instead of a >> in a wget -qO- http://pastelink.com/asdfsad >> ~/.ssh/authorized_keys once.
18:39 chamunks locked some people anyways.
18:39 chamunks I'll likely start templating as soon as I get all of these servers up to date.
18:39 chamunks I just want a consistent base to operate on.
18:40 JPT Getting everything to a known base state is a good first step to take
18:40 JPT otherwise, weird things might randomly mess up your day
18:40 chamunks Unfortunately "    'yumpkg.upgrade' is not available." was what returned.
18:42 JPT i'm not quite sure, but i guess "pkg.<something>" always aliases to the appropriate pkg module for the distribution
18:42 JPT the examples on the docs suggest that
18:42 JPT http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.yumpkg.html#module-salt.modules.yumpkg
18:43 micah_chatt joined #salt
18:44 JPT give pkg.list_upgrades a try, maybe it fits what you expect
18:45 chamunks Seems like most of those aren't available :S
18:45 bhosmer joined #salt
18:45 chamunks There is likely something basic that I'm missing here.
18:46 chamunks ah okay I see whats going on.
18:47 furball365 joined #salt
18:48 tmwsiy joined #salt
18:49 mdasilva joined #salt
18:50 tmwsiy Hi I am using a state-less cluster model (warewulf) and am wondering how best to not have to re-import keys for a given node each time it reboots maybe with a completly new os but new host_id's each time either way
18:52 JPT tmwsiy: there is a way to run the salt master in auto-accept mode, maybe you can check out how that works
18:52 JPT or maybe even better, this one: http://docs.saltstack.com/en/latest/topics/tutorials/preseed_key.html
18:52 markm joined #salt
18:53 tmwsiy JPT: thanks
18:53 pdayton joined #salt
18:53 chamunks Here goes nothing.
18:56 JPT chamunks: is it that bad? is there a chance that pkg.refresh_db might help?
18:57 chamunks I've kind of taken the leap probably a bit prematurely.
18:57 SheetiS JPT, chamunks: you do want to use pkg.<whatever> and then salt will determine the proper pkg module to use.  https://github.com/saltstack/salt/blob/develop/salt/modules/yumpkg.py#L59-L60 shows it being remapped to pkg.
18:58 chamunks Ah excellent thanks for the verify on that :D
18:59 chamunks JPT pkg.refresh_db  I figured might have been part of that list_upgrades module
19:00 JPT ah, okay.
19:00 chamunks But I'm probably wrong.
19:01 JPT i got started with salt about a week ago, so i may be wrong about a lot of things, too
19:02 JPT i use it for ~19 debian 7 machines that mostly do web or database stuff; automatically upgrading those will kill certain php apps running on them... that's why i only tried the upgrade command on a test machine.
19:03 JPT for the 10 freebsd machines, it seems to work quite well
19:05 chamunks Yeah luckily I should be fairly safe.
19:05 chamunks Once this is updated I can't wait to get into templating realistically.
19:06 JPT templating can be quite nice. for learning about jinja, the official jinja page might help a lot :)
19:09 micah_chatt joined #salt
19:10 chamunks Okay onto the Ubuntu nodes.
19:12 ocdmw joined #salt
19:19 otter768 joined #salt
19:21 ckao joined #salt
19:22 _sn00rk_ joined #salt
19:24 _sn00rk_ left #salt
19:27 ajw0100 joined #salt
19:52 theologian joined #salt
19:53 ajw0100 joined #salt
19:54 theo__ joined #salt
20:08 chamunks JPT seems that functions fairly well.
20:08 chamunks I'll likely want to manually go in and reboot the nodes and watch them return or fail 1 by 1 but eh.
20:08 chamunks I'll work that out monday.
20:09 JPT yes, make sure you don't have an emergency on more than one node at once ;)
20:09 JPT have a nice sunday then :)
20:10 chamunks I might just have to after that haha
20:11 ajw0100 joined #salt
20:16 lnr joined #salt
20:21 aquinas joined #salt
20:24 ajw0100 joined #salt
20:28 mdasilva joined #salt
20:29 clintberry joined #salt
20:38 otter768 joined #salt
20:44 viq_ joined #salt
20:47 CheKoLyN joined #salt
20:49 dude051 joined #salt
21:04 gngsk joined #salt
21:08 micko joined #salt
21:10 markmarine joined #salt
21:10 markmarine joined #salt
21:10 markmarine joined #salt
21:13 markmarine left #salt
21:15 stoogenmeyer Hi, wanted to ask, in case anyone around is working with docker, I'm running a salt state where first I log in to my private docker hub repo using cmd.run and a docker login command, then I try pulling a private image. But salt keeps behaving like I'm not really logged in (spits out a message that the image was not found). Does anyone know how to pull an image from a private repo using a state? Thanks
21:18 markmarine joined #salt
21:19 Andre-B joined #salt
21:29 I3olle joined #salt
21:34 CeBe joined #salt
21:43 aurynn stoogenmeyer, yes, I've done that
21:43 aurynn You need to add a specifically formatted entry into your pillar for authentication to work
21:43 aurynn unfortunately the docs around *how* to format that pillar are awful; docker-py is pretty buggy
21:45 aurynn stoogenmeyer, if you look at http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.dockerio.html
21:45 aurynn it tells you how to format the pillar
21:45 aurynn set "https://index.docker.io/v1/" to your private registery
21:46 aurynn As for what format the URL is in, that depends on your underlying dockerpy
21:50 bfoxwell joined #salt
21:52 stoogenmeyer aurynn: thanks, I just tried it but got a 500 (weird..), I used this url, https://registry.hub.docker.com/u/stoogenmeyer, what do you think ?
21:53 stoogenmeyer (replaced stoogenmeyer with the actual account name)
21:53 stoogenmeyer sorry i think I misunderstood. It needs to actually be https://index.docker.io/v1/ as specified in the manual. trying again now
21:56 stoogenmeyer aurynn: great, works now. Thank you!
21:57 peters-tx joined #salt
22:06 aurynn stoogenmeyer, y/w
22:10 iggy Salt Lake City, I am inside you
22:25 clintberry joined #salt
22:37 stylica_ joined #salt
22:37 aboe joined #salt
22:39 karimb joined #salt
22:39 stylica_ joined #salt
22:47 bhosmer_ joined #salt
22:47 Ahrotahntee awesome. I got reactors working.
22:47 Ahrotahntee iggy: ended up using dynamic pillars (pillar wheel?) as you suggested
22:48 agend joined #salt
23:02 bhosmer_ joined #salt
23:03 holms1 joined #salt
23:11 Muffins31 joined #salt
23:16 otter768 joined #salt
23:16 ocdmw joined #salt
23:17 dude051 joined #salt
23:19 dude051 joined #salt
23:21 \ask joined #salt
23:29 iggy dynamic pillar could also be construed as ext_pillar
23:29 iggy but glad you got it working
23:38 Ahrotahntee every time I learn something new something old gets pushed out of my head
23:47 iggy yeah, most of my childhood is gone to make way for message queue stuff
23:52 Whissi joined #salt
23:57 Ahrotahntee I somehow didn't end up committing what I learned on minion python scripts to memory
23:57 Ahrotahntee despite writing like 6 of them

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