Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-11-13

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

All times shown according to UTC.

Time Nick Message
00:00 dean joined #salt
00:10 opensource_ninja joined #salt
00:11 teryx510 joined #salt
00:14 ajw0100 joined #salt
00:14 yomilk joined #salt
00:15 zmalone joined #salt
00:26 waggott14 joined #salt
00:35 kulty joined #salt
00:35 clintberry joined #salt
00:36 markm joined #salt
00:44 opensource_ninja joined #salt
00:46 baweaver joined #salt
00:52 subsignal joined #salt
00:54 zmalone joined #salt
00:58 Rumbles joined #salt
01:05 thehaven joined #salt
01:13 jaybocc2 joined #salt
01:19 ignasr joined #salt
01:21 hightekvagabond joined #salt
01:24 ignasr joined #salt
01:29 dthom91 joined #salt
01:30 ignasr joined #salt
01:30 woodtablet left #salt
01:30 dthom911 joined #salt
01:33 breakingmatter joined #salt
01:36 fsteinel_ joined #salt
01:36 jaybocc2_ joined #salt
01:40 otter768 joined #salt
01:45 subsignal joined #salt
01:49 MaZ- joined #salt
01:50 ignasr joined #salt
01:51 otter768 joined #salt
01:53 opensource_ninja joined #salt
01:56 ajw0100 joined #salt
01:57 malinoff joined #salt
02:01 falenn joined #salt
02:01 opensource_ninja joined #salt
02:02 hightekvagabond joined #salt
02:07 tawm04 oh hai, I'm comming from puppet where I could make a defined resource type that would kinda give me a way to call a state and pass it variables. is there a way I can do something similar in salt?
02:08 tawm04 https://docs.puppetlabs.com/puppet/latest/reference/lang_defined_types.html
02:08 tawm04 can i pass variables to a jinja'd state?
02:09 Karunamon joined #salt
02:10 hemebond tawm04: It's done a little differently in Salt (I'm currently using Puppet too)
02:10 ajw0100 joined #salt
02:10 tawm04 looks like this is kinda what i want https://docs.saltstack.com/en/latest/topics/best_practices.html#variable-flexibility
02:11 tawm04 that gives examples of what i want to do
02:11 tawm04 but doesn't really explain it
02:11 tawm04 i should be able to flounder around with it from that example though
02:11 hemebond Yeah, you don't pass variables into things, things reference/import variables.
02:13 hemebond So you can create a .jinja file and import variables from it.
02:16 tawm04 hemebond: can you give me an example of a .jinja file?
02:16 tawm04 does it look like the pilar file they mention in the link i posted /srv/pillar/apache.sls
02:17 tawm04 or can you point me at a portion of the docs? little lost on the keywords i should be googling for
02:17 hemebond tawm04: Have a look at a formula. They will have a map.jinja file that is then imported into other files.
02:17 hemebond e.g., https://github.com/saltstack-formulas/nginx-formula/tree/master/nginx
02:19 CaptainM1gnus joined #salt
02:20 izibi_ joined #salt
02:22 hasues joined #salt
02:22 mikepea joined #salt
02:23 maduro joined #salt
02:24 synical joined #salt
02:24 retr0h_ joined #salt
02:24 tawm04 hemebond: thanks, still haven't gotten to formulas
02:25 hemebond tawm04: That's fine, just look at map.jinja and the files that use it.
02:25 nafg joined #salt
02:25 hemebond map.jinja just defines a Jinja variable and the other files import that variable.
02:26 hasues left #salt
02:27 antonw joined #salt
02:29 Ludo- joined #salt
02:33 stevej99 joined #salt
02:33 czchen joined #salt
02:34 tmkerr joined #salt
02:34 breakingmatter joined #salt
02:35 afics joined #salt
02:36 writtenoff joined #salt
02:36 kbyrne joined #salt
02:36 packeteer joined #salt
02:39 overyander joined #salt
02:39 cberndt joined #salt
02:39 dthom91 joined #salt
02:40 dthom911 joined #salt
02:42 Sacro_ joined #salt
02:45 RandyT whytewolf: fwiw, seems that you cannot point to a state ID with sls:
02:45 tawm04_ joined #salt
02:45 bVector joined #salt
02:45 czchen joined #salt
02:45 waggott14 joined #salt
02:45 Guest55101 joined #salt
02:45 mack22 joined #salt
02:45 deus_ex joined #salt
02:45 tawm04 joined #salt
02:45 stooj joined #salt
02:45 scarcry joined #salt
02:45 Kelsar joined #salt
02:45 tzero joined #salt
02:45 robinsmidsrod joined #salt
02:45 dimeshake joined #salt
02:45 notnotpeter joined #salt
02:45 hax404 joined #salt
02:45 Sacro joined #salt
02:45 garphy joined #salt
02:45 Ouzo_12 joined #salt
02:45 evle joined #salt
02:45 ronrib joined #salt
02:47 ilbot3 joined #salt
02:47 Topic for #salt is now Welcome to #salt | 2015.8.1 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | 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:51 jaybocc2 joined #salt
02:52 dthom91 joined #salt
03:01 larsfronius joined #salt
03:09 dimeshake joined #salt
03:13 cyborg-one joined #salt
03:14 llua joined #salt
03:14 llua joined #salt
03:19 favadi joined #salt
03:20 dthom91 joined #salt
03:24 hackel joined #salt
03:29 snarfy joined #salt
03:30 snarfy Yo. i'm trying to download a file from s3. but if i do salt-call s3.get bucket subdir/file.tgz it flips out and doesn't like me
03:33 snarfy i have files in subdirs, and if i list the contents with s3.get bucket, it will tell me the key is foo/bar.tgz
03:34 snarfy but if i s3.get bucket foo/bar.tgz it no work
03:38 RandyT snarfy: assume you have tried same op with a command line tool like aws cli?
03:41 lnxnut joined #salt
03:42 snarfy yeauh
03:47 amy joined #salt
03:55 jimklo_ joined #salt
03:55 hightekvagabond joined #salt
04:12 viq joined #salt
04:15 kulty joined #salt
04:17 snarfy left #salt
04:25 nafg_ joined #salt
04:26 clintberry joined #salt
04:32 twork man, i keep reading what a breeze formulas are to use, but i have yet to find one that i could plug in and use without extensive adjustment.
04:32 hemebond twork: Yeap :-(
04:32 Aleks3Y joined #salt
04:32 twork so it isn't just idiot ol' brain damaged me.
04:33 aurynn I think I was able to use one without adjustment
04:34 twork and while i'm ranting... the docs on dev/qa/prod strategy has now cost me another day with nothing to show for it.
04:34 aurynn yes! I used the sudoers formula by itself.
04:34 twork well! i have that to look forward to.
04:34 hemebond twork: Why is that?
04:34 twork hemebond: i'd love to tell you but i'm out of time on the day
04:35 ronrib joined #salt
04:35 twork the gist... i read the docs over and over, but i still end up guessing various pieces, always guessing wrong...
04:36 hemebond Oh. If you still have issues, sing out. I'm using something similar.
04:36 twork you tried to help me ealier today. much thanks. but i still came away befuddled.
04:37 twork i'll be starting at this again... at some point. right now my due date is up and the boss doesn't get the point of having d/q/p layouts so he's tapping his foot
04:37 hemebond Ah, crud, one of those.
04:38 twork windows.
04:38 hemebond Windows too? Just keeps getting worse.
04:38 twork i shouldn't say that, he's not so bad. but he doesn't get The Way.
04:38 twork anyhow.
04:38 twork i gotta go. thanks for hearing me whine.
04:39 hemebond Any time. Good luck.
04:39 twork i'll be back around soon i hope, but we'll see.
04:42 sunkist joined #salt
04:53 xDamox joined #salt
04:57 Wav35ync joined #salt
04:59 subsignal joined #salt
05:00 Wav35ync joined #salt
05:00 Wav35ync joined #salt
05:06 Wav35ync joined #salt
05:08 RandyT Anyone know if there is a way to "register" an event with a minion before a reboot and have the event sent when it comes up?
05:08 RandyT Looking for a way to continue a highstate that required a reboot.
05:08 hemebond RandyT: couldn't you just call another highstate if a file exists or something?
05:09 hemebond Or if a particular flag isn't set?
05:09 RandyT where could I set the flag?
05:09 iggy RandyT: lots of us want that
05:09 iggy I think there might even be an issue
05:09 RandyT iggy: :-)
05:09 hemebond You could set a grain perhaps, then have a reactor on the master listen for the startup event, check for the grain, call highstate again./
05:10 iggy we also want a "boot" event (vs minion start)
05:11 RandyT ok, I had not yet grasped that a grain is persistent
05:11 rawzone joined #salt
05:13 Wav35ync joined #salt
05:13 RandyT iggy: just ran across "start". you looking for something that does wake-on-lan?
05:14 hightekvagabond joined #salt
05:14 otter768 joined #salt
05:14 Wav35ync joined #salt
05:15 iggy no, but there's a difference between a system starting up and a minion starting (the minion start event is sent every time the minion service is (re)started)
05:16 hemebond Well /tmp should be cleared on reboot. File missing? Rebooted! :-D
05:16 RandyT understood. Would also seem handy if the master could trigger wol events to boot hardware cold
05:16 iggy not all distros
05:16 iggy RandyT: there is a module function to do that
05:23 mehakkahlon joined #salt
05:28 hackel joined #salt
05:31 zmalone joined #salt
05:34 whytewolf so many modules to work with the different machine power systems also, ilo, impi, drac
05:36 bfoxwell joined #salt
05:36 breakingmatter joined #salt
05:37 whytewolf RandyT: https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.network.html#salt.modules.network.wol
05:38 RandyT whytewolf: nifty
05:40 RandyT b
05:56 gldnspud joined #salt
06:00 subsignal joined #salt
06:06 mohan___ joined #salt
06:06 calvinh joined #salt
06:07 malinoff joined #salt
06:07 stooj joined #salt
06:07 mohan___ hi, there is any way to copy a directory from source to destination in minion locally.
06:08 __number5__ mohan___: salt state file.copy
06:09 mohan___ hi, but I want to copy a whole directory.
06:09 __number5__ mohan___: use param recursive=True
06:10 __number5__ sorry, recurse=True
06:11 __number5__ mohan___: ignore all above, it's file.recurse state
06:11 iggy file.recurse is master -> minion
06:12 iggy if you are using a new enough salt file.recurse with file:/// uris should work
06:12 __number5__ now I'm confused :P
06:13 pdayton joined #salt
06:14 mohan___ joined #salt
06:14 mohan___ I want to copy a directory locally inside a minion (windows) not from master to minion
06:15 hemebond mohan___: Use a regular copy command.
06:16 mohan___ hi hemebond you mean Xcopy
06:16 hemebond Sure :-)
06:17 ramteid joined #salt
06:18 mohan___ hemebond there is any way to add ruby code in .sls file
06:18 hemebond Ruby? Why would you do such an unpleasant thing?
06:18 hemebond To do what?
06:19 hemebond You'd be better of having it as a separate script/file.
06:19 mohan___ i need to create directory with current data as a directory name is there any way to do it in saltstack
06:20 hemebond Yes, the file module should have stuff you need.
06:20 golodhrim|work joined #salt
06:21 mohan___ can you please tell it in detail
06:22 hemebond I'll need a little more detail about what you're trying to do. You're on a Windows minion and you're trying to copy a directory from one location to another on the local file system?
06:23 mohan___ yes while copying, the destination folder name must be the current date
06:24 hemebond How would you normally do it on your Windows system?
06:25 ajw0100 joined #salt
06:27 mohan___ i did this thing using ruby "time = Time.now.strftime("%Y_%m_%d_%H_%M")"  and creating the folder with  "_#{time}" name
06:30 hemebond oh
06:31 hemebond I was just testing the command for them.
06:35 iggy you would use jinja
06:35 iggy jinja has a strftime filter
06:35 hemebond file.copy doesn't seem to work.
06:36 hemebond Not as described at least.
06:38 felskrone joined #salt
06:40 hemebond There's been a bug open since December last year.
06:52 Fiber^ joined #salt
06:53 scooby2 joined #salt
06:54 Segfault_ Is it possible to have a service.running only restart a service if a command.run returns exit code 0? I would like to do a configuration check before trying to restart a service
06:59 whytewolf humm, in theory you could use an onlyif to keep it from restarting if it fails. https://docs.saltstack.com/en/latest/ref/states/requisites.html#onlyif
07:01 subsignal joined #salt
07:01 jaybocc2 joined #salt
07:06 jaybocc2 joined #salt
07:10 Segfault_ whytewolf: Thank you, that looks promising. I've heard of "unless", but never "onlyif". I'll try it right now
07:13 colttt joined #salt
07:15 otter768 joined #salt
07:19 cro joined #salt
07:20 favadi joined #salt
07:21 mohan___ joined #salt
07:21 mohan___ hi, there is any way to copy a directory in a minion(windows) locally.
07:23 hemebond mohan___: I tried file.copy but it doesn't work properly on Windows.
07:23 harkx joined #salt
07:23 mohan___ any other ways
07:23 hemebond You could use cmd.run to run a Powershell comand.
07:23 hemebond *command.
07:24 mohan___ ok thanks hemebond
07:27 AndreasLutro joined #salt
07:27 babilen Hss that bug been reported? Seems to be pretty basic functionality
07:27 hemebond babilen: yes, there is a bug open for it.
07:28 hemebond #19048
07:28 babilen ta
07:29 babilen Guess the developer was unfamiliar with os.path.sep
07:31 rotbeard joined #salt
07:32 babilen I don't necessarily think that file.copy shouldn't work. https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.copy
07:32 babilen mohan___: Could you try ^ ?
07:32 babilen Ah, recursively
07:37 breakingmatter joined #salt
07:38 denys joined #salt
07:39 KermitTheFragger joined #salt
07:43 harkx joined #salt
07:45 mohan___ hi babilen, I need to copy a whole directory (directory contains sub-directory and files) I tried it but it is not working
07:48 seatan joined #salt
07:59 KajiMaster joined #salt
08:01 fredvd joined #salt
08:04 sunkist1 joined #salt
08:07 MeltedLux joined #salt
08:09 kawa2014 joined #salt
08:15 elsmo joined #salt
08:16 MeltedLux joined #salt
08:18 thalleralexander joined #salt
08:22 ignasr joined #salt
08:25 eseyman joined #salt
08:27 sunkist joined #salt
08:27 MTecknology mohan___: file.recurse isn't what you need?
08:32 kawa2014 joined #salt
08:32 Guest55101 joined #salt
08:33 sunkist joined #salt
08:38 hemebond MTecknology: I can't even see file.recurse in the docs.
08:38 hemebond Oh, maybe it's a state.
08:38 babilen https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.recurse
08:38 babilen That copies from the master to the minion though
08:39 hemebond Cheers. Yeah, not what mohan___ is after.
08:39 babilen indeed
08:39 AlberTUX1 joined #salt
08:40 babilen A cmd.run is probably the best solution. Curious that file.copy doesn't implement a "recursive=True" flag though
08:40 hemebond It doesn't?
08:40 hemebond It's in the docs.
08:41 babilen It is?
08:41 MTecknology I thought it was file.directory -recurse=true
08:41 babilen You know what .. I'll grab a coffee and we can then continue this :)
08:41 Rumbles joined #salt
08:41 MTecknology but ... haven't been fortunate to work with salt in 4 mo :(
08:41 hemebond salt.modules.file.copy(src, dst, recurse=False, remove_existing=False)
08:41 babilen That's the module
08:42 babilen Which you could call through module.run though
08:42 hemebond Oh, didn't know you were talking about the state.
08:42 babilen Question is if that works on MS Windows™
08:42 hemebond I guess it makes more sense to be reading the states.
08:42 Nazca__ joined #salt
08:43 babilen Maybe we should ask mohan___ what (s)he's after
08:44 jhauser joined #salt
08:46 informant1 joined #salt
08:50 KajiMaster joined #salt
08:50 ubikite joined #salt
08:50 ubikite joined #salt
08:50 Grokzen joined #salt
08:52 voileux joined #salt
08:53 CeBe joined #salt
08:57 tiriel joined #salt
08:58 tiriel Hello! Is it possible to override values from an external pillar on the root pillar? I don't seem to find info about this anywhere
09:01 mohan___ hi babilen and hemebond thanks for your reply
09:02 tiriel the ext_pillar_first option doesn't seem to have any effect as far as overrides are concerned
09:03 subsignal joined #salt
09:03 larsfronius joined #salt
09:14 justanotheruser joined #salt
09:16 otter768 joined #salt
09:24 traph joined #salt
09:28 calvinh hi guys just tried to use the mongodb module and got "Module 'mongodb' is not available."
09:28 calvinh master and minion are on 2015.5.3
09:29 calvinh can't really find the info when this module was implemented
09:29 hemebond calvinh: Does the minion have the mongodb python module installed?
09:29 hemebond I don't know if you're supposed to install it but that's what I would try.
09:29 thefish joined #salt
09:30 calvinh oh ok thanks, thought it's builtin, will try
09:30 calvinh thank you
09:30 tzero joined #salt
09:31 aqua^c_ joined #salt
09:36 Nazca joined #salt
09:37 lagachettefresh joined #salt
09:42 viq joined #salt
09:45 ziro` joined #salt
09:45 Xevian joined #salt
09:47 GreatSnoopy joined #salt
09:48 losh joined #salt
09:50 keimlink joined #salt
09:51 mohan___ hi, can anyone tell how a database can be created in mssql(minion) using the salt script
09:52 hemebond mohan___: Is your whole network Windows?
09:53 mohan___ my master is linux but all my minion are windows
09:53 impi joined #salt
09:53 hemebond Is there a reason you're not using the Windows tools to manage your servers?
09:54 mohan___ i am trying to automate the build operations in my servers that why i am doing this
09:55 hemebond What about WSUS, Group Policy and Active Directory?
09:55 s_kunk joined #salt
09:56 hemebond I'm not a Windows fan by any stretch, but they have good tools for managing Windows servers.
09:56 hemebond The Windows stuff in Salt is not as mature as the rest of the application.
09:57 mohan___ oh , thanks hemebond for your reply
09:57 is_null hi all, how do i get started testing salt entreprise ?
09:57 is_null is it the same as salt open ?
09:58 hemebond is_null: Salt Enterprise, as far as I understand it, is more a support thing that you buy.
09:58 is_null isn't there a web-ui that i can buy ?
09:58 hemebond They have support structures and other addons for working with Salt.
09:59 hemebond Salt Enterprise might have a web interface. There is also an open source Salt web interface in development.
09:59 hemebond (by the community(
09:59 is_null yeah i'm here to pay
09:59 is_null yeah i know, i'd rather have the paid-for version
09:59 hemebond Ah, I imagine you'd contact someone through the website then.
09:59 is_null k, thanks
09:59 hemebond saltstack.com
10:00 hemebond "Contact sales@saltstack.com for pricing and more information."
10:07 zmalone joined #salt
10:07 Tiriel joined #salt
10:07 larsfronius joined #salt
10:11 cyborg-one joined #salt
10:12 larsfronius joined #salt
10:19 zer0def uh, quick question - anyone having issues with salt mine over salt-ssh or is it way too experimental to even attempt using it?
10:20 markm joined #salt
10:22 colttt joined #salt
10:27 peters-tx joined #salt
10:28 giantlock joined #salt
10:31 slav0nic joined #salt
10:34 babilen zer0def: Does it work *at all* ?
10:34 babilen (I mean even in a broken state)
10:35 bash1235123 joined #salt
10:35 zer0def you mean specifically mine over ssh? doesn't look like it, despite docu trying to suggest so
10:35 babilen Which documentation?
10:35 zer0def so i'm guessing it at least *used to* work
10:35 bash1235123 Hi, Any idea when will saltstack support python3 fully ? like in 6 months or 1 year ? :)
10:36 babilen soon™
10:36 bluenemo joined #salt
10:36 zer0def babilen: https://docs.saltstack.com/en/latest/topics/mine/index.html#mine-in-salt-ssh
10:37 bash1235123 babilen: if you are answering to me I'll actually need a more accurate response .. if you have one :)
10:37 babilen I don't
10:37 babilen zer0def: Ah, very nice
10:37 bash1235123 babilen: thanks
10:37 zer0def babilen: i know, right? except if it didn't do this: https://github.com/saltstack/salt/issues/28852
10:37 saltstackbot [#28852]title: Attempts at using mine over salt-ssh result in KeyError: 'master_job_cache' | The entirety of my attempted salt-mine usage is within the exception log. Target machines are Ubuntu 14.04....
10:38 babilen zer0def: In a way I would consider the point at which you require the mine to be the same point at which you require a master
10:38 zer0def yeah, under ordinary conditions, yeah.
10:38 babilen But you are building a setup for the league of extraordinary gentlemen?
10:39 zer0def more like trying out stuff without setting up a master
10:39 zer0def and i understand it's part masochistic, but still, if it used to work (given existing documentation)…
10:40 babilen Just because it is written in the documentation doesn't mean that it ever worked.
10:40 babilen Which salt version are you using?
10:41 zer0def already documented in the ticket as 2015.8.1
10:42 babilen Does anybody know when the packaging code will be made public? I'd like to upgrade to 2015.8.* soon(ish), but don't consider it an option to install those packages right now
10:43 zer0def babilen: there are packages for ubuntu LTSes and debian versions, afaik
10:43 babilen Yeah, but they are automatically packaged and the code for that has not been open sourced (or I haven't found it)
10:44 babilen I want to see how they build it before I trust them
10:44 zer0def fair enough
10:45 babilen I trust Debian developers with building packages, but not necessarily saltstack. And even if I were to trust an internal maintainer, I'm even more hesitant when it comes to "automagic" building
10:53 apofis joined #salt
10:57 ziro` joined #salt
11:01 Jimlad_ joined #salt
11:02 fredvd joined #salt
11:06 subsignal joined #salt
11:16 otter768 joined #salt
11:19 ni3mm4nd Hello. Is somebody using salt-ssh? In documentation is written that salt-ssh will automatically generate ssh keys in "/etc/salt/pki/master/ssh/". After installation I do not have such folder as "ssh" under master
11:20 AndreasLutro ni3mm4nd: I use salt-ssh, and that is true
11:20 AndreasLutro ni3mm4nd: the keys will be generated when you first run salt-ssh, not on installation
11:21 ni3mm4nd after salt-ssh there is only "help" printed out :-)
11:21 AndreasLutro well you have to run something against an actual host I suppose
11:22 ni3mm4nd do you have some example?
11:23 AndreasLutro salt-ssh my-minion test.ping
11:24 ni3mm4nd I did "salt-ssh '*' test.ping" and I've received "No hosts found with target * of type glob"
11:25 AndreasLutro well, you need a roster file
11:31 AlberTUX1 joined #salt
11:33 fredvd joined #salt
11:39 breakingmatter joined #salt
11:39 kawa2014 joined #salt
11:40 aboe joined #salt
11:53 bhosmer joined #salt
11:53 thalleralexander joined #salt
12:03 Hetman left #salt
12:07 falenn joined #salt
12:08 Furlot joined #salt
12:09 Ph-x joined #salt
12:12 Ph-x Hi. I live in an rpm-based world and have so found salt 2015.5.5 in EPEL 6 and 2015.5.2 in Salt COPR, which is supposed to be ahead of EPEL judging from description. What is the status of salt's rpm packaging? Is there a secret repo with 2015.8? :)
12:14 lagachettefresh joined #salt
12:19 favadi joined #salt
12:20 tristianc joined #salt
12:27 denys joined #salt
12:43 chiui joined #salt
12:46 babilen Ph-x: Not really secret: https://docs.saltstack.com/en/latest/topics/installation/rhel.html#installation-from-the-saltstack-repository
12:48 amy_ joined #salt
12:54 ingslovak joined #salt
13:00 amcorreia joined #salt
13:12 breakingmatter joined #salt
13:14 Christian___ joined #salt
13:14 Christian___ Hi! I've a problem with autorizing minions with 2015.8.1
13:15 Christian___ salt-key only give a listing of my unautorized minions but -a or -A doesn't work
13:15 Christian___ With -a or -A I get the same listing without conformation question
13:17 otter768 joined #salt
13:18 ggoZ joined #salt
13:21 hightekvagabond joined #salt
13:21 dthom91 joined #salt
13:23 hightekvagabond joined #salt
13:25 mpanetta joined #salt
13:25 tkharju joined #salt
13:29 mik__R joined #salt
13:34 ziro` joined #salt
13:35 zzzirk joined #salt
13:35 dthom91 joined #salt
13:36 harkx joined #salt
13:39 breakingmatter joined #salt
13:41 zzzirk joined #salt
13:44 felskrone1 joined #salt
13:48 subsignal joined #salt
13:48 subsignal joined #salt
13:57 JDiPierro joined #salt
13:58 toastedpenguin joined #salt
14:00 fe92 joined #salt
14:01 toastedpenguin joined #salt
14:02 zzzirk_ joined #salt
14:03 bhosmer joined #salt
14:04 Grokzen joined #salt
14:04 subsignal joined #salt
14:08 insomniasalt joined #salt
14:11 denys joined #salt
14:11 kawa2014 joined #salt
14:19 mik__R joined #salt
14:26 dthom91 joined #salt
14:29 tkharju joined #salt
14:34 tristianc joined #salt
14:41 giantlock joined #salt
14:42 cpowell joined #salt
14:49 dthom91 joined #salt
14:50 RandyT good day folks
14:50 RandyT running into a little challenge getting a system.reboot to work on a windows minion.
14:50 RandyT little bit of log info here: https://gist.github.com/rterbush/2b14debf4ba1f519815d
14:51 RandyT seems every time I call system.reboot in the highstate, the "master stops responding"
14:51 RandyT No, it is not rebooting the master...
14:53 quix joined #salt
14:54 JDiPierro joined #salt
14:56 numkem joined #salt
14:58 winsalt joined #salt
14:58 malinoff joined #salt
14:59 mik__R joined #salt
15:04 ponpanderer joined #salt
15:05 ponpanderer hello
15:05 favadi joined #salt
15:07 denys joined #salt
15:07 I joined #salt
15:09 ponpanderer Using salt-cloud in 2015.8.1 I've noticed that my profiles with "WAIT_FOR_PASSWD_MAXTRIES: 30" option is no longer respected and the default 15 attempts is used. Anyone else seen issues with the conneciton timeout settings? (https://docs.saltstack.com/en/latest/topics/cloud/misc.html#connection-timeout)
15:12 toastedpenguin when creating a package install sls, can a URL to a vendors package repo be used?
15:12 Brew joined #salt
15:13 andrew_v joined #salt
15:13 bhosmer joined #salt
15:18 otter768 joined #salt
15:21 Tyrm joined #salt
15:21 kawa2014 joined #salt
15:24 quix joined #salt
15:27 Guest55101 joined #salt
15:29 chadhs joined #salt
15:30 hackel joined #salt
15:35 rotbeard joined #salt
15:35 pdayton joined #salt
15:37 zmalone joined #salt
15:37 hasues joined #salt
15:38 Ph-x babilen thanks! COPR was a red herring. You saved me some time :)
15:40 MadHatter42 joined #salt
15:42 babilen :)
15:43 pdayton joined #salt
15:43 clintberry joined #salt
15:44 stevednd anyone know if it's possible to batch salt.state calls when doing orchestration?
15:45 hasues left #salt
15:47 iggy I think there is an issue open for that
15:49 joyrida08 joined #salt
15:54 quix joined #salt
15:58 RandyT iggy: regarding discussion last night about a continuation process, I ran across this: https://github.com/saltstack/salt/pull/14935
15:58 saltstackbot [#14935]title: Added wait_for_event function to saltmod | This allows the orchestrate system to watch the event bus for arbitrary events....
15:59 RandyT I'm not clear on how I could continue a provisioning process, from that point...
15:59 zsoftich2 joined #salt
16:00 dthom91 joined #salt
16:10 breakingmatter joined #salt
16:10 zzzirk joined #salt
16:11 dthom91 joined #salt
16:12 Fiber^ joined #salt
16:12 LotR iggy: you're a developer for the postgres formula, right? what does the extensions key on databases in the pillar do exactly? just generate states that execute CREATE EXTENSION foo statements?
16:13 iggy LotR: I'm one of many, but yeah, that's what I'd expext it to do
16:13 winsalt any salt-cloud windows veterans in here?
16:14 RandyT winsalt: a determined rookie here
16:15 LotR iggy: hmm. how many extensions are bundled with postgres to make that useful? you still have to make sure yourself that the packages for the extension are installed yourself, right?
16:15 iggy LotR: I've never used postgres extensions, so...
16:15 LotR s/yourself// # one too many
16:16 jdubski joined #salt
16:16 winsalt Im still not able to get through port 445,  ive installed impacket, pywinrm, winexe everything on that page.
16:16 iggy but yes, you would have to make sure whatever software you were trying to use was installed
16:17 sathya joined #salt
16:17 sathya Hi all
16:17 sathya I am new to saltstack
16:17 sathya i have close to 200 minions connected to single master
16:17 sathya Now that i need to change the root password for all the minions with just one command from salt master
16:18 sathya is this possible ?
16:18 iggy sure
16:18 sathya if yes, can you please tell me how to do it
16:18 RandyT winsalt: you'll need to run your deploy with -l debug and provide some more info there...
16:18 stevednd iggy: what's your experience with performance tuning a master
16:18 RandyT winsalt: pywinrm is not needed if you have winexe working. either or
16:19 sathya I tied with the "salt '*' shadow.set_password root '$1$UYCIxa628.9qXjpQCjM4a..' " after getting the HASHES
16:19 winsalt I am running it with -l debug.  Everything goes fine, the vm shows up in vcenter totally fine.  it sticks at "Attempting connection to host IP on port 445"
16:20 sathya But the new password is not working
16:21 winsalt RandyT, was there anything special you did to the vm template?
16:21 sathya Can some one help me with a single command to change the password on all the minions... please
16:21 iggy sathya: why not just write a state that enforces the password for root being set to whatever you want
16:21 iggy that is after all, one of the core purposes of salt
16:21 RandyT winsalt: I've not done anything with vmware and salt, so not sure what you need to do to open up that firewall port on the minion.
16:22 RandyT that page we shared yesterday shows that the powershell snippet is passed to the minion for execution in the bootstrap process on AWS through user-data api.
16:22 iggy stevednd: not ever really had to do it... have always had minions spread across masters in a way that made that unnecessary
16:22 RandyT winsalt: would expect you need to find some way to do the same thing on vmware.
16:23 stevednd iggy: how many minions do you think a master could handle?
16:23 jimklo joined #salt
16:23 stevednd I currently have one, it's a 2 core machine with 2G, and 60 minions
16:23 RandyT winsalt: another option I suspect would be to use an image that has that preconfigured.
16:24 stevednd it frequently comes back saying with the error to check if the master is up, or to increase threads
16:24 RandyT winsalt: would help me to see the debug log in a gist though to see if you are hitting the issue with compatibility of winexe and the windows version you are trying to deploy
16:24 iggy sathya: there's also salt.modules.shadow.set_password
16:24 drawsmcgraw stevednd: I had to increase the worker threads once I hit ~45-50 minions. That was on a hardware box with....
16:24 iggy stevednd: did you increase worker_threads?
16:24 RandyT if your winexe is too old, it will not be able to communicate with a 2012 Windows server instance
16:24 drawsmcgraw looks like 48G of memory
16:25 iggy there's a page in the docs that's got some of the basics of tuning salt
16:25 stevednd I did increase the workers, but I seem to not be having much luck
16:25 winsalt the only thing coming out of debug is "Attempting connection to host IP on port 445", there are no errors
16:25 stevednd I'm not really strapped for memory from the looks of it. about 500M free, and no swapping
16:26 Sathya joined #salt
16:26 Sathya Hi
16:26 winsalt im using winexe 1.1
16:26 Sathya sorry got disconnected
16:27 Sathya iggy: thanks for the info
16:27 RandyT winsalt: you should be seeing this at some point...
16:27 RandyT [INFO    ] Running command under pid 26341: 'winexe -U \'Administrator%XXX-REDACTED-XXX\' //10.1.2.51 "hostname"'
16:27 Sathya But can you also share me some sample state file as to how to fix this
16:27 Sathya I am sorry, as said, Iam very new to this saltstack stuff and trying to learn to use it
16:27 iggy there are examples on how to use the user states in the docs
16:28 Sathya ok let me take a look at it
16:28 iggy in your case, you'd only specify the name and the password... leaving everything else blank should tell salt not to touch anything else about the user
16:28 iggy 11:24 < iggy> sathya: there's also salt.modules.shadow.set_password
16:29 dthom91 joined #salt
16:31 drawsmcgraw Sathya: *PLEASE* test this on a single machine and confirm success before doing it to all 200 of your minions.
16:32 RandyT could someone help me understand when I need to use data[''] vs grains[''
16:33 winsalt randyt, I don think im even getting to that point.  I am going to try messing with the template.  For data vs grains, i belive data is just a dictionary passed to reactors
16:33 Sathya iggy: I got the sls working for reseting the root password
16:33 Sathya but as i said before salt.modules.shadow.set_password is not working for all the minions
16:35 RandyT winsalt: I may be able to help you more if you put the debug log into a gist and share it.
16:35 ponpanderer @winsalt: consider using the winrm support instead of winexe. I never got winexe to work myself on 2012R2 and finding up was a little dubious
16:37 RandyT ponpanderer: fwiw, I am successfully deploying 2012R2 with winexe... but it was a pain to figure out.
16:37 mapu joined #salt
16:37 winsalt the only thing in the docs about winrm was to set use_winrm: True, that didnt change anything.
16:38 RandyT and winsalt , if you have set use_winrm true, then you are not going to see that line I sent you...
16:38 winsalt the debug log is simply the bootstrap script which is several pages long, and then what ive said before about port 445, there isnt anything there
16:38 bhosmer joined #salt
16:39 jdubski another salt noobie here. i'm trying to fix my company's implementation of salt and get these salt 'stragglers' up and connected again.. i started with salt test ping command but that gives me instances that are either stopped or not found.. i'm searching thru these debug commands now but if anyone has any simple suggestions, please let me know
16:39 winsalt like I said, im going to try changing the template and I'll let you know if anything changes
16:40 whytewolf winsalt: not sure if you said, but is the firewall disabled in the windows image?
16:40 winsalt i turned off the firewall after it was cloned, but its on in the template
16:40 whytewolf after it is cloned so after it has already failed?
16:41 stevednd is there any way to get *any* information about minions inside a reactor file?
16:41 stevednd pillar, mine, anything?
16:41 ponpanderer @winsalt: on the salt master you need pywinrm installed, and then you can add 'use_winrm: True' to your profile. Make sure it's TLS enabled winrm on the windows host
16:42 ponpanderer with that if you run salt-cloud with -l debug you should see it using winrm much as it would ssh on linux minions
16:44 whytewolf winsalt: you might need to change the template to allow the port through. or turn the firewall off in the template before spinning up
16:45 dthom91 joined #salt
16:46 winsalt yeah, thats what im going to try.  The thing is there are no "failures" it clones fine, it just gets stuck at the bootstrap step trying to get on that port.
16:46 Sathya Hi All
16:46 Sathya My sls for root login reset is not working
16:47 winsalt stevednd, reactors should have access to pillars like normal
16:47 Sathya I worte a simple sls file ( not sure if thats rite), but i have to reset root login for password for 200 minions
16:47 whytewolf winsalt: oh I don't doubt it clones fine. but are you able to get the firewall off before it gets to the bootstrap part of the deploy?
16:53 dthom91 joined #salt
16:55 jalbretsen joined #salt
16:57 LotR how do you use salt to create the tables in a postgres db? or do people generally not do that?
16:57 LotR (in a state)
16:59 sontek joined #salt
17:00 quix_ joined #salt
17:06 ageorgop joined #salt
17:06 lexter joined #salt
17:10 writtenoff joined #salt
17:10 sbogg joined #salt
17:10 breakingmatter joined #salt
17:10 RandyT anyone have any hints for me as to what might be happening when attempting to reboot a windows minion in process of highstate?
17:10 RandyT https://gist.github.com/rterbush/2b14debf4ba1f519815d
17:10 unknown22 joined #salt
17:11 RandyT consistently get message that master is not responding and minion does not reboot.
17:11 RandyT I can issue system.reboot at command line on master and minion reboots as expected.
17:11 amy joined #salt
17:14 fsteinel joined #salt
17:16 bhosmer joined #salt
17:16 perfectsine joined #salt
17:16 unknown22 left #salt
17:19 otter768 joined #salt
17:19 RandyT LotR: I would probably start with using cmd.run to pass the sql to psql
17:19 RandyT There may be other ways to do that though...
17:19 fivehole joined #salt
17:21 dthom91 joined #salt
17:28 scoates joined #salt
17:28 hightekvagabond joined #salt
17:30 chiui joined #salt
17:30 KajiMaster joined #salt
17:31 winsalt if I do a netstat and see "TCP 0.0.0.0:445 Listening", that should mean the port is open right?
17:31 zmalone It means something is listening, it doesn't necessarily mean that it is open.
17:32 zmalone iptables/pf/whatever might block it
17:35 stevednd winsalt: so it would appear, thanks. I'm wondering if that's something that has been added since I last attempted it around a year ago
17:36 stevednd is it possible to fire an event from inside an orchestration?
17:36 stevednd the way I do it now is calling a state.sls that fires an event.send
17:37 jaybocc2 joined #salt
17:37 winsalt I would guess so, maybe https://docs.saltstack.com/en/latest/ref/states/requisites.html#fire-event-notifications is what you are looking for?
17:37 stevednd basically will calling event.send through salt.function work properly?
17:38 whytewolf stevednd: I do not see why it wouldn't
17:38 stevednd yeah, I guess it would work correctly since it would fire on each of the minions targeted
17:39 bhosmer joined #salt
17:40 whytewolf if so inclined you can in theory also have orch wait till for an event. https://docs.saltstack.com/en/latest/ref/states/all/salt.states.saltmod.html#salt.states.saltmod.wait_for_event
17:41 tiadobatima joined #salt
17:41 tiadobatima1 joined #salt
17:41 tiadobatima1 left #salt
17:42 lagachettefresh joined #salt
17:43 tiadobatima joined #salt
17:43 stevednd whytewolf: yeah, I haven't had use for that yet, but the thing that I wish it did was be able to generate the list to wait for based off of a compound matcher
17:46 ziro` joined #salt
17:47 lemur joined #salt
17:48 kulty joined #salt
17:50 eseyman joined #salt
17:55 nafg joined #salt
17:56 cyberdog joined #salt
17:59 szhem joined #salt
17:59 cyberdog Hi guys, wondered if someone could point me in the right direction here. When making pillar changes during a highstate on the command line using pillar={}, is it supposed to overwrite dicts? Is there anyway I can get it to merge with a dict and not completely rewrite it?
18:02 Micromus joined #salt
18:03 geekatcmu Is there a doc somewhere that I'm missing on how to read the return.p files the salt master writes out?
18:04 RandyT Heyo, struggling here to figure out what data structures I should be using in orchestration.
18:04 RandyT https://gist.github.com/rterbush/e360eb2b7e085c2a218a
18:04 RandyT would appreciate it if someone could help me understand grains vs data and if what I am trying to do with this orchestration startup is valid.
18:07 winsalt if you run "salt-run state.event pretty=True" you can see what the data dict is getting sent to the reactor
18:08 whytewolf RandyT: that doens't look right at all. what are you doing in the reactor state file?
18:08 geekatcmu nm my question, I found the msgpack reference
18:09 mik__R joined #salt
18:09 ajw0100 joined #salt
18:10 RandyT whytewolf: updated the gist to include that critical info
18:12 whytewolf RandyT: I'm not sure how that would ever work.
18:12 JDiPierro joined #salt
18:12 RandyT whytewolf: going off of what is a slightly older example, but actually, it mostly works...
18:13 denys joined #salt
18:13 RandyT the example had used tgt: '*'  which as I mention in the gist runs these states on every minion and not just the newly created one
18:13 RandyT but struggling how to identify the tgt:  data['id'] does not work here.
18:14 ziro` joined #salt
18:14 winsalt data['id'] isnt available in the reactor sls? thats weird
18:14 whytewolf winsalt: data['id'] is available to reactor, but he needs it in orchestrate
18:15 RandyT winsalt: it is available in reactor, but not in orchestration.... and not clear to me where that changes.
18:15 bastiandg joined #salt
18:15 RandyT whytewolf: yes
18:15 dthom91 joined #salt
18:17 RandyT there are not a lot of orchestrate examples that I have found...
18:18 whytewolf RandyT: the problem is they are seperate systems. you have no way of directoing the targeting like that. using {{ grains['id' }} as a tgt should compleatly blow up. as it is an undirected target. however pillar in thery should be avalible. I would say try this. chang ethe target to {{pillar['tgt_id'}} and add and arg: to your reactor that is something like pillar={'tgt_id': data['id']}
18:19 whytewolf or, move all of those orchestrate tasks into reactor
18:20 RandyT I just added error to the gist that I get when running with grains as I have shown in the gist.
18:20 RandyT "No changes made for saltutil.sync_all"
18:21 RandyT whytewolf: ok, thanks for the input, I will give that a try.
18:22 whytewolf calling orchestration from reactor is more for say hey i just launched another node for this cluster app. it needs to let all nodes that are part of this cluster app run a set of commands that allow this one in
18:23 kulty joined #salt
18:24 RandyT ok... so perhaps moving back to reactor is better approach. I've forgotten at this point what steered me toward orchestration...
18:27 Tyrm joined #salt
18:29 Tyrm joined #salt
18:30 scarcry joined #salt
18:35 quix joined #salt
18:42 cberndt joined #salt
18:46 hightekvagabond joined #salt
18:48 DammitJim joined #salt
18:49 whytewolf Ugh, why did i ever think that rewriting my openstack saltstack was a good idea? soooo much work
18:50 wendall911 joined #salt
18:50 babilen http://www.joelonsoftware.com/articles/fog0000000069.html
18:50 babilen whytewolf: ^
18:51 babilen Also: "My code is not ugly, it's battle-scarred!" ;)
18:52 whytewolf lol. to be honest it isn't a 100% rewrite. more of a refactoring to make it have a lot more config options. and bemore robust.
18:53 * geekatcmu is about to totally rewrite a state which is used by ... many other teams.
18:53 geekatcmu This will be "fun"
18:56 RandyT whytewolf: getting complaints in reactor "start" event that data['id'] does not exist...
18:57 RandyT cloud/start event I should say
18:57 murrdoc joined #salt
18:57 JDiPierro joined #salt
18:58 JDiPierro Is there a way to tell salt-cloud to install an older version of salt on a minion it creates?
18:58 whytewolf RandyT: um. thats new. I'm pretty sure 99% of events pass a id as part of the data
19:00 jaybocc2 joined #salt
19:00 whytewolf JDiPierro: script_args https://docs.saltstack.com/en/latest/topics/cloud/misc.html#deploy-script-arguments and knowing how the bootstrap script works. see https://github.com/saltstack/salt-bootstrap
19:01 JDiPierro Thanks whytewolf
19:01 timoguin joined #salt
19:01 whytewolf has the bootstrap script ever been updated to use repo.saltstack.com for ubuntu yet?
19:01 RandyT whytewolf: perhaps because I am calling saltutil.sync_all for example and not local.saltutil.sync_all?
19:02 quasiben joined #salt
19:02 quix_ joined #salt
19:02 whytewolf RandyT: Shrug. that shouldn't matter it is a a jinja variable.
19:03 babilen whytewolf: Events should always pass data['id'], yeah
19:03 babilen And I don't think that the bootstrap script uses the "new" repo (yet)
19:04 losh joined #salt
19:05 whytewolf sigh, thats going to complicate things when i get to the salt-cloud part of my setup.
19:05 babilen Wait, somebody filed: https://github.com/saltstack/salt-bootstrap/issues/690
19:05 saltstackbot [#690]title: Fail to bootstrap Ubuntu 14.04 | Hello,...
19:06 subsignal joined #salt
19:06 RandyT whytewolf: dropping back to minion_start event to see if that has different results.
19:07 andrew_v_ joined #salt
19:07 JDiPierro So I'm running 2014.7.1 but salt-cloud broke for Digital Ocean since they deprecated their V1 API... I've spun up a new master running 2015.8.0 just to use salt-cloud to build machines.. it makes the first machine then just hangs.. is this a dumb idea? :P
19:07 RandyT fwiw, I moved to installing minion code from git repo tag and have not had any repo package issues since...
19:07 iggy ^
19:08 ggoZ joined #salt
19:08 babilen whytewolf: repo.saltstack.com is mentioned several times in the bootstrap script, haven't quite verified the current behaviour on Ubuntu
19:10 jY is there a good way to pass a var from one state to another in a highstate?
19:10 whytewolf looking at the code now. it does show ubuntu_stable_deps as installing repo.saltstack.com
19:10 timoguin joined #salt
19:10 JDiPierro Salt-cloud is hanging after: Removed /tmp/.saltcloud-UUID/minion
19:11 RandyT JDiPierro: there were some important updates in 2015.8.1 for salt-cloud...
19:11 JDiPierro RandyT: Thanks, I'll rebuild my VM as that and see if that helps.
19:12 babilen 2018.8.2 has been released
19:12 RandyT that issue does not ring a bell, but I know I had to quickly move to 8.1...
19:12 dthom91 joined #salt
19:12 RandyT and lookign forward to 8.2
19:13 tanta I ended up using cloudformation instead of salt-cloud
19:13 tanta I find wrappers for APIs that have native templating formats cumbersome
19:14 JDiPierro Isn't that AWS only?
19:14 lagachettefresh joined #salt
19:14 tanta yeah, it is AWS only
19:14 JDiPierro Yeah :( We deploy to AWS, DO, and Rackspace so salt-cloud's pretty helpful
19:14 whytewolf JDiPierro: tanta: same concept for heat with openstack [which has a cloudformation also]
19:15 iggy JDiPierro: salt-cloud -U
19:15 tanta you must work at a big company
19:15 JDiPierro nope, 15 people :P
19:15 JDiPierro the power of Salt!
19:15 iggy wait, salt-cloud -u (little u)
19:15 jcockhren JDiPierro: Same here. I haven't **had** to deploy something to DO for a while. So I'll be looking into the salt-cloud module soon
19:16 RandyT iggy: ah yes, did run into that one as well...
19:16 iggy I use GCE, DO, and vultr... so hooray for salt-cloud
19:16 JDiPierro iggy: What's the -u flag? Can't find documentation on that?
19:16 MTeck joined #salt
19:16 jcockhren aw man. it's real now. We have labels! -> https://github.com/mitchellh/vagrant/issues/6276
19:16 saltstackbot [#6276]title: [salt] provisioner fails to copy minion config on 1.7.4 | Hey all! This is more than just a reproduction #5973 (which you should read for context. I won't duplicate here)....
19:16 tanta I do some of the boto states for various resources in AWS, they are handy
19:16 iggy JDiPierro: update salt-bootstrap
19:16 JDiPierro Ahh, ty
19:16 RandyT reactor startup script still blows up looking for data['id'] when triggered off of minion_start
19:17 jcockhren of course, that Issue goes with -> https://github.com/mitchellh/vagrant/pull/6382
19:17 saltstackbot [#6382]title: [salt] [bugfix] Restablize Salt provisioner  | Hey all! This PR answers #6276. For the brave/bored, feel free to drill down through the referenced issues and PRs. ...
19:18 szhem joined #salt
19:18 babilen jcockhren: Finally
19:18 dthom91 joined #salt
19:19 babilen Ah, why is nobody fixing this. :(
19:19 jcockhren babilen: for realz.
19:19 babilen s/fixing/merging/
19:19 jcockhren yeah. it's mainly code deletion. You'd think
19:20 babilen I'm really quite gutted, as I'm on vbox 5.* and hence can't use 1.7.2 anymore and 1.7.4 has been broken in a *very* long time. The workaround posted in one the reports also doesn't work anymore and ... well .. it's about time.
19:20 jcockhren they'd merge it or at least provide some feedback.
19:20 babilen I love that PR that essentially fixes this by deleting a number of lines
19:20 otter768 joined #salt
19:20 jcockhren :D
19:20 babilen There's a certain beauty to that :)
19:21 bhosmer joined #salt
19:21 JDiPierro babilen: Oooo I just got a notice to upgrade vbox today and ignored it.. glad I did cause I'm on 1.7.2 :P Thanks for the heads up
19:21 babilen Maybe I should just build it myself and upload packages to our repo ...
19:21 babilen JDiPierro: hehe
19:21 jcockhren JDiPierro: do NOT upgrade to 1.7.3+
19:21 babilen That too
19:21 babilen Just .. don't upgrade
19:21 JDiPierro Already have, had to downgrade :P
19:21 Gareth o/
19:22 MTeck FRICK! I HATE CHEF!!!! :'(
19:22 * MTeck wants to cry and cuddle with salt
19:22 JDiPierro babilen: But that mentality is why I'm stuck on 2014.7.1 :(
19:22 jcockhren yeah. my testing workflow depends on salt provisioner in vagrant
19:22 jcockhren soo... yeah...
19:23 nidr0x joined #salt
19:24 babilen JDiPierro: That is very much not "generic" advice, but in the case of vagrant it really holds true. The sad thing is that you can't use recent vbox versions ...
19:24 JDiPierro (indeed)
19:24 babilen I essentially ditched vbox (it is too slow anyway), but use landrush to manage a local DNS server, which did, last time I checked, not work with libvirt/kvm boxes
19:25 babilen I might look into that again. Maybe it is easier to fix landrush and get it working with vagrant-libvirt than to wait for this issue to be resolved.
19:25 jcockhren vmware provider is nice but $$$
19:25 babilen KVM boxes were a *lot* faster anyway
19:25 johtso joined #salt
19:26 babilen And I also don't have the time to change my dev stack every other month, just because $tool decided to break everything :)
19:26 jcockhren so true
19:26 babilen My colleagues yell at me whenever I do it and .. so far I just keep them all at vbox < 5 and vagrant 1.7.2
19:27 Sketch <3 KVM
19:27 babilen Yeah, lets see if landrush works with vagrant-libvirt by now
19:28 lagachettefresh joined #salt
19:29 geekatcmu For whatever reason, we were never able to get vagrant to work right with kvm, so we're doing vbox on our dev servers.
19:29 babilen https://github.com/phinze/landrush/pull/124
19:29 saltstackbot [#124]title: Support libvirt provider | This PR adds the right hooks for libvirt provider.
19:31 babilen geekatcmu: It work(ed) pretty well, but I have some pretty large setups (~10 different boxes) that I "split" into different Vagrantfiles ... I use landrush to tie them all together as that allows me to uniquely identify the boxes by "HOSTNAME.test"
19:31 geekatcmu sure
19:32 babilen It was amazing just *how* much faster KVM boxes are
19:32 geekatcmu Our *standard* setup is 4 boxes: trusty, precise, centos, and freebsd, with a salt-master running on trusty.  Mostly, we just need to use KVM instead of vbox, but ... yeah.
19:32 * babilen ♥ libvirt-{xen,kvm}
19:32 joyrida08 joined #salt
19:32 murrdoc joined #salt
19:33 babilen geekatcmu: Sure, I model entire setups (frontend, lb, webserver, db server, ...) in vagrant and sometimes don't need everything.
19:35 murrdoc1 joined #salt
19:36 mik__R joined #salt
19:40 joyrida08 joined #salt
19:42 JDiPierro Oh man was the "low hanging fruit" label removed from salt's issues?
19:43 Edgan joined #salt
19:45 baweaver joined #salt
19:45 MikeyYeahYeah joined #salt
19:52 RandyT so, I have split the list of 4 state calls I was trying to make in one file from reactor to 4 files in an attempt to debug which one might be causing the error...
19:52 RandyT every one of them error out with the following: altRenderError: Jinja variable 'dict object' has no attribute 'id'
19:52 RandyT data['id'] not available in reactor states...
19:53 RandyT must be doing something stupid here as  I am sure it worked earlier...
19:54 hoonetorg joined #salt
19:54 larsfronius joined #salt
19:57 MaZ- joined #salt
19:58 cberndt joined #salt
20:01 joyrida08_ joined #salt
20:02 mung720 joined #salt
20:07 amunger joined #salt
20:07 amcorreia joined #salt
20:08 dthom91 joined #salt
20:09 opensource_ninja joined #salt
20:11 dthom911 joined #salt
20:17 mung720 Is there a way to filter a list of grain values to be used inside of pillar? For example I want to pull out an address from 172.16.10.* range out of the ipv4 grain but i have multiple addresses for that grain key and I only want one that is in a certain address range? Interface names are not a good way of pulling it out as they are non-determanisitic and might change though out the environment. Any help is most appreciated.
20:17 zzzirk joined #salt
20:18 vstoniest joined #salt
20:18 iggy mung720: that's what the network module is for
20:19 iggy i.e. https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.network.html#salt.modules.network.ip_addrs with the cidr arg set
20:19 mung720 thanks i knew i was making it way more complicated than it should be.
20:21 mung720 that worked perfectly
20:25 keimlink joined #salt
20:28 gimpy2938 Does the network state actually set up interfaces or just create sysconfig files such as ifcfg-em1?  I seem to recall it only doing the latter last time I looked.
20:33 mehakkahlon joined #salt
20:34 ntropy the best way to know is to look again :)
20:34 ntropy setting up the interfaces ins't difficult, its just a few commands and config files
20:38 lagachettefresh joined #salt
20:38 Edgan Anyone else using salt rpms from the saltstack rhel7 repo?
20:39 gimpy2938 ntropy: I just don't want to waste time, if it isn't going to just set an IP and VLAN id on a real interface then I would just write my own to do so
20:39 andrew_v_ joined #salt
20:40 johnkeates joined #salt
20:41 Guest55101 joined #salt
20:45 hightekvagabond joined #salt
20:47 zzzirk joined #salt
20:48 baweaver joined #salt
20:49 baweaver joined #salt
20:49 morissette joined #salt
20:50 winsalt is there a list of all the options for a salt-cloud profile/provider?
20:52 s_kunk joined #salt
20:56 RandyT Still battling the issue where data['id'] is not available to me in reactor state. Would appreciate it if someone could please take a look. I have boiled this down about as simply as I can: https://gist.github.com/rterbush/37b595345d1498c841fe
20:57 RandyT winsalt: this is about  the only place I have found that has remotely accurate info: https://docs.saltstack.com/en/latest/topics/cloud/index.html#core-configuration
20:59 ajw0100 joined #salt
21:00 babilen RandyT: I'd file a bug
21:01 denys joined #salt
21:01 winsalt yeah, i cant find a complete list though.  There are random options under windows specific stuff, vmware specific stuff etc.
21:01 RandyT babilen: ok, thanks for having a look at it for me.
21:02 quasiben joined #salt
21:02 quasiben joined #salt
21:03 babilen RandyT: https://github.com/saltstack/salt/blob/develop/salt/modules/event.py#L44 -- Events fired to the master *always* contain id.
21:03 toastedpenguin win_update.install_updates categories="['Updates']" indicates the categories must be passed as a list, whats the proper way to pass the list?
21:03 * babilen ♥ libvirt-{xen,kvm}RThis must be a problem with the renderer in that it probably monkey-patches the data dictionary in too late ... :-/
21:03 amy joined #salt
21:04 babilen oops
21:04 babilen RandyT: ^
21:04 babilen toastedpenguin: From where?
21:04 toastedpenguin cli or within an orchesration as a salt.function
21:04 RandyT babilen: I also see the code you referenced is transport == raet
21:05 MikeyYeahYeah joined #salt
21:05 babilen toastedpenguin: CLI: salt ..... win_update.install_updates categories="['Updates']"
21:05 babilen RandyT: Ah, sorry .. let me take a look again :)
21:06 _JZ_ joined #salt
21:06 RandyT babilen: happily switching to raet if that fixes this and allows me to move on. :-)
21:06 toastedpenguin babilen: there are several categories, I'd like to run more than one when it executes
21:06 babilen toastedpenguin: YAML: something: \n categories: \n - Updates
21:06 whytewolf babilen: actually can use that same "
21:06 babilen toastedpenguin: Yeah, sure .. just add more: ['Updates', 'Foobar']
21:07 whytewolf categories="['item1','item2']" format
21:07 whytewolf wow fagrented thoughts.
21:07 whytewolf that last bit was about salt.function in orchestration
21:07 toastedpenguin when I executed it without categories it "looked" like it did the update for all...though mayb I am blind...
21:08 babilen RandyT: Good call, lets dig deeper into that code ... Something must have fired an event without 'id' ... that really shouldn't happen.
21:08 babilen RandyT: Please file a bug, I would happily look into it more, but making this "official" would be good
21:08 whytewolf toastedpenguin: since it has a type of None. it looks like if you don't included it it will do all
21:09 babilen RandyT: Which version are you on exactly?
21:09 RandyT if I drop to else: in that code, it appears that id may not be there.  2015.8.1.
21:09 RandyT I saw your post that .2 is out...
21:09 babilen RandyT: yeah, the non-preload one
21:09 dthom911 joined #salt
21:09 toastedpenguin whytewolf: that was what I experienced via cli, but when I tried that as a salt.function it doesnt appear to have had the same result
21:09 RandyT is trying raet as simple as setting transport: raet on the master?
21:10 RandyT I will file the bug now.
21:11 whytewolf toastedpenguin: gist up your orchestration stanza
21:11 whytewolf and what error are you getting?
21:13 MikeyYeahYeah joined #salt
21:13 toastedpenguin whytewolf: no error that I can see, but when I logged onto the minion there were still updates, when I then ran the module via cli it ran without issue and the minion had no updates when I logged on
21:13 babilen RandyT: Well, "out" ;)
21:14 babilen Give it a little time, but it should hit mirrors/GH soon
21:14 toastedpenguin https://gist.github.com/toastedpenguin/2333267f5553ac1cf0be
21:17 whytewolf toastedpenguin: is there a formatting error here? - require: looks like it tabbed to under - categories
21:17 whytewolf also, you are missing a ' after 'Critical Updates
21:18 RandyT babilen: filed: https://github.com/saltstack/salt/issues/28877
21:18 saltstackbot [#28877]title: reactor triggered state fails with "no attribute 'id'" | Triggering a reactor SLS file from a 'salt/minion/\*/start' event and am hitting this error....
21:19 quix joined #salt
21:20 Vaelatern joined #salt
21:21 RandyT babilen: I see release tag is not in the repo yet. Not sure if that is an oversight or intentional at this stage.
21:21 otter768 joined #salt
21:22 hasues joined #salt
21:22 babilen RandyT: Probably the latter
21:26 toastedpenguin whytewolf: https://gist.github.com/toastedpenguin/2333267f5553ac1cf0be thanks
21:27 hightekvagabond joined #salt
21:27 whytewolf toastedpenguin: were those things that were wrong in the real file?
21:27 whytewolf the missing ' would compleatly throw off orchestration
21:28 toastedpenguin testing it now, but I see the gist formatting was corrected by making those changes
21:33 bhosmer joined #salt
21:42 hasues left #salt
21:48 whytewolf ack!!! meant to run the sls on 1 minion. ran it on all minions
21:49 Edgan Was there a big change in the pkg.* syntax with salt-2015.8.x?
21:50 DammitJim whytewolf, that's my problem
21:50 babilen whytewolf: Oh, dear ... Anything bad?
21:50 babilen "I accidentally the whole cloud"
21:50 Dev0n whytewolf, I'm always explicit in my top.sls so something like this doesn't happen.
21:51 whytewolf Dev0n: I was testing with state.sls
21:51 Dev0n ahh
21:51 aboe joined #salt
21:51 whytewolf it isn't horrible. just intalled keystone on every system including my master
21:52 whytewolf as well as the openstackclient
21:54 whytewolf but hey it ran flawlessly on all the systems ...
21:54 jaybocc2 joined #salt
21:57 mapu Good afternoon. Having some difficulty with a route53 state. I have a VPC with 2 Hosted private zones (forwards and reverse) and 1 Hosted Public zone. When I run the state- the only thing that gest populated is the Hosted Public zone. My init.sls is here: http://pastie.org/private/cfnas9igmyp0bye4rusmig. Any guidance would be most helpful.
22:02 whytewolf thats better. copy that file to a remove. change all the pkg.latest to pkg.purged, ran that then ran salt '*' pkg.autoremove purge=True
22:02 whytewolf back to normal
22:09 ajw0100_ joined #salt
22:10 subsignal joined #salt
22:10 tristianc joined #salt
22:11 GreatSnoopy joined #salt
22:17 gimpy2938 left #salt
22:17 Sokel joined #salt
22:18 Sokel I'm reading the linux_acl states documentation, and it's straight forward. However, it's not clear if it supports "default" acl's. Example, setfacl -d -m woudl set a default ACL for new files/folders on a directory. Is there an option for this or no?
22:28 jtd joined #salt
22:30 apofis joined #salt
22:30 jtd hi gang. anyone here use SaltStack w/ Windows? I ran the installer and it talks to my master fine, but I can't actually run the "salt" command. if you look at salt.bat it expects something called "salt" to be in Scripts, and it doesn't exist. every other script *does* appear to be there.
22:30 jtd to wit: Set Script=%SaltDir%\bin\Scripts\salt
22:30 Vaelatern joined #salt
22:31 whytewolf jtd: salt is run on the master. salt-call is the minion
22:32 subsignal joined #salt
22:33 jtd whytewolf: I know. should I not be able to run salt commands from a minion, to the master?
22:34 whytewolf no
22:34 jtd oh.
22:34 jtd hm.
22:34 * jtd is trying to figure out how to restart Apache from a Windows machine
22:34 jtd I figured SaltStack was the trick
22:35 jtd (Apache on Ubuntu, to be specific)
22:37 whytewolf depends really on what exactly you are doing. if you want something on the windows system to trigger an event that causes the master to restart the apache service on the ubuntu box. that actually is possable
22:37 iggy Edgan: shouldn't be
22:37 denys joined #salt
22:38 whytewolf but it takes some config before hand
22:38 Edgan iggy: it is a bug, https://github.com/saltstack/salt/issues/28526 /facepalm
22:38 saltstackbot [#28526]title: yumpkg.installed broken in salt v2015.8.1 on CentOS 6 minions | Hi,...
22:38 jtd right, but I can't manually run "do a salt thing" commands on the Windows box, because the Master has no idea who tf I am on the Windows system, because there is no authentication mechanism for that (at least that I can find)
22:38 iggy seems like kind of a big thing to mess up
22:38 iggy almost as if there is no testing at all before releases
22:39 Edgan iggy: <--- !!!!!
22:39 iggy #jadedfridays
22:39 Edgan iggy: :)
22:39 babilen the thirteenth
22:39 iggy if the release was today, I'd almost understand
22:41 whytewolf sometimes it feels like the .1 release was rushed. what i don't understand is we get RC's for all the .0 releases. but not a single rc for a point release
22:44 babilen That's because a point release *should* only contain bug fixes and *NO* features (even code such as the "run repoquery less" PR there ...)
22:44 RandyT babilen: or others, any suggestion for a workaround on the issue I just reported?  Major roadblock for finishing this server role.
22:44 iggy I'm just not going to that conversation
22:44 babilen iggy: hehe
22:44 babilen Sorry, forgot the </s> there
22:45 babilen https://github.com/saltstack/salt/issues/28877 that is, RandyT ?
22:45 saltstackbot [#28877]title: reactor triggered state fails with "no attribute 'id'" | Triggering a reactor SLS file from a 'salt/minion/\*/start' event and am hitting this error....
22:45 RandyT babilen: afirm
22:45 babilen Lets look what changed with the start events
22:46 iggy salt cloud has had a fair amount of behind the scenes reworking recently
22:49 babilen RandyT: And this is in the context of salt-cloud, isn't it?
22:49 RandyT babilen: yes
22:50 iggy oh wait, I was thinking salt/cloud/<id>/created
22:51 RandyT happens for both cloud/<id>/created as well as minion_start
22:51 RandyT seems to be more about reactor not passing the data
22:51 RandyT but I would think that someone besides myself would have noticed this...
22:52 RandyT which has me thinking it is more about my setup...
22:52 iggy yeah... what'd you do?
22:52 RandyT spent the last hour pouring through master config just to see if I have anything that is out of the ordinary
22:53 RandyT iggy: would happily admit it if I knew. :-)
22:54 iggy does cloud..created work with data['name']?
22:54 RandyT I'll give it a spin. would be great to know of a quicker way to test this than firing off another deploy...
22:55 iggy welcome to my 2 weeks ago
22:56 iggy spent like 2 days git bisecting a bug that required spinning up servers in the slowest cloud provider known to man
22:56 RandyT :-)
22:56 RandyT which cloud provider would that be?
22:56 fedgoat joined #salt
22:57 iggy vultr
22:57 iggy great prices on servers that require a lot of storage
22:57 RandyT gives plenty of time to get distracted by something else I have found.
22:57 iggy but about the slowest to deploy of anything I've worked with
23:01 zzzirk joined #salt
23:01 lagachettefresh joined #salt
23:02 iggy go home murrdoc1
23:03 fedgoat joined #salt
23:04 RandyT it does not like data['name'] either
23:05 RandyT looking at some of the event code, it actually appears that id is a separate var from data...
23:13 RandyT id along is not the answer either...
23:14 RandyT Sorry to bail on all of you, but I must go drink some beer...
23:14 RandyT I'll check in later for any other suggestions.
23:15 RandyT I guess my workaround is to move all of these tasks I need to do to prepare for software install on this target into some common state and run the highstate manually.
23:16 RandyT seems the real issue of this "bug" is the fact that you cannot use reactor to trigger a highstate since it will only work if you run highstate on tgt: '*'
23:22 otter768 joined #salt
23:27 tristianc joined #salt
23:29 baweaver joined #salt
23:31 k00mi joined #salt
23:32 otter768 joined #salt
23:32 gimpy2938 joined #salt
23:33 markm joined #salt
23:34 gimpy2938 In a state module or whatever you call the Python you put in _states why is the variable "name" special and why does Salt require it to be in the state return?
23:36 workthrick can I use modules in my SLS files?
23:36 workthrick ie. I want to set the logrotate config, which is only available as a module, and not a state
23:37 workthrick but going logrotate.set: ... gives me an error about logrotate not being available
23:37 iggy module.run
23:37 babilen https://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html#salt.states.module.run
23:37 aurynn you can
23:37 * iggy wins
23:37 * babilen is more helpful
23:38 workthrick ah cool, thanks
23:38 aurynn I made a logrotate state to set config, because it was really annoying. There's an item on my list to write a state for it
23:38 workthrick aurynn: yeah, it looks annoying
23:38 aurynn like a state module, vs an SLS that implemented it
23:38 giantlock joined #salt
23:38 workthrick I'm just poking things so far to see if I can make it set the logrotate config I want
23:40 babilen https://github.com/saltstack-formulas/logrotate-formula
23:40 aurynn or, that
23:42 egbertfitzwilly joined #salt
23:42 babilen You would want a proper state for that though (much like cron)
23:42 egbertfitzwilly When I change a user password with salt the /etc/shadow file gets updated but the password does not change. Has anybody else seen this?
23:42 babilen I fixed a bug in the logrotate-formula recently, but don't actually use it in production as we decided to simply ship logrotate configs in our packages
23:46 iggy gimpy2938: there is a reason... something to do with tracking returns iirc
23:46 iggy i.e. any return without a name doesn't fire an event so you don't get endless loops of events fired by each other
23:47 workthrick "Module function logrotate.set threw an exception. Exception: 'include files'"
23:47 workthrick that's... less than helpful
23:48 murrdoc joined #salt
23:50 gimpy2938 left #salt
23:50 murrdoc fu iggy
23:56 larsfronius joined #salt
23:56 Tyrm joined #salt
23:59 dthom91 joined #salt

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