Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-08-30

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

All times shown according to UTC.

Time Nick Message
00:09 teryx510 joined #salt
00:14 silicon_id joined #salt
00:20 woodtablet left #salt
00:20 UtahDave left #salt
00:27 silicon_id joined #salt
00:29 brotatochip joined #salt
00:30 filippos joined #salt
00:32 raspado iggy: is there a salt command to do mkswap?
00:32 raspado i couldnt find anything to actually mkswap without doing an actual bash command
00:35 daishan joined #salt
00:35 fannet joined #salt
00:35 Jimlad joined #salt
00:38 mohae joined #salt
00:39 wm-bot425 joined #salt
00:44 nsidhu raspado: Did you partition the drive? You have to create a partition on the drive and set it as a swap partition.
00:45 iggy raspado: probably not
00:45 iggy cmd.run it
00:45 raspado mmk
00:45 raspado thx
00:45 nsidhu say its /dev/sdb1 . ..... then run the command swapon /dev/sdb1
00:45 raspado mount.swap does that nsidhu
00:46 raspado i think the issue is what iggy mentioned, i need to mkswap first but i cant find this integrated into saltstack
00:47 nsidhu you can use salt.modules.parted.mkfs with linux-swap
00:47 nsidhu see : https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.parted.html
00:47 raspado nice thx nsidhu
00:50 John_Kang joined #salt
00:51 nsidhu no worries..... remember to install the dependencies parted, partprobe, lsblk (usually parted and util-linux packages) on the minions
00:55 iggy cmd.run mkswap is probably easier
00:56 raspado is there any reason why salt automounts a device with /mnt?
00:56 raspado i've created a device mapping in the cloud profile but once the host is built, it assigns /dev/sdb -> /mnt
00:57 misconfig joined #salt
01:02 silicon_id joined #salt
01:04 nsidhu joined #salt
01:04 stopbyte joined #salt
01:05 nsidhu joined #salt
01:07 amcorreia joined #salt
01:09 nsidhu joined #salt
01:12 ssplatt joined #salt
01:20 silicon_id joined #salt
01:21 bilal80 joined #salt
01:22 brotatochip joined #salt
01:35 jenastar joined #salt
01:35 Nahual joined #salt
01:46 JPT joined #salt
01:46 catpigger joined #salt
01:48 swa_work joined #salt
01:50 teryx510 joined #salt
02:01 jaybocc2 joined #salt
02:11 sp0097 joined #salt
02:19 nicksloan joined #salt
02:22 bastiand1 joined #salt
02:25 pppingme joined #salt
02:32 orionx joined #salt
02:34 writtenoff joined #salt
02:36 fannet joined #salt
02:45 pipps joined #salt
02:50 pipps joined #salt
02:53 ninjada joined #salt
02:55 ub joined #salt
03:05 sjorge joined #salt
03:10 subsignal joined #salt
03:11 jcockhren joined #salt
03:11 evle joined #salt
03:13 ub joined #salt
03:13 jhauser joined #salt
03:19 eichiro joined #salt
03:19 scc joined #salt
03:21 justan0theruser joined #salt
03:23 ub2 joined #salt
03:28 ub joined #salt
03:33 orionx joined #salt
03:35 auha joined #salt
03:36 auha Anybody here used saltstack with docker?
03:39 sp0097 joined #salt
03:40 ub joined #salt
03:45 _JZ_ joined #salt
03:54 ub joined #salt
04:04 zer0def joined #salt
04:04 jaybocc2 joined #salt
04:06 ub joined #salt
04:12 DEger joined #salt
04:19 akhter joined #salt
04:21 subsignal joined #salt
04:26 ninjada joined #salt
04:28 ajw0100 joined #salt
04:31 rdas joined #salt
04:33 ZachLanich joined #salt
04:33 ALLmightySPIFF joined #salt
04:37 fannet joined #salt
04:39 ninjada joined #salt
04:46 nidr0x joined #salt
04:48 nidr0x joined #salt
04:58 bocaneri joined #salt
05:00 jenastar joined #salt
05:06 subsignal joined #salt
05:13 iggy you mean saltstack to manage docker or saltstack inside docker?
05:18 armguy joined #salt
05:23 jimklo joined #salt
05:28 jaybocc2 joined #salt
05:32 ninjada joined #salt
05:40 armyriad joined #salt
05:40 impi joined #salt
05:48 ZachLanich joined #salt
06:02 ivanjaros joined #salt
06:07 jxm_ joined #salt
06:07 amy_ joined #salt
06:09 akhter joined #salt
06:09 dariusjs joined #salt
06:10 systo joined #salt
06:13 Xenophon1 joined #salt
06:13 armyriad joined #salt
06:15 \ask joined #salt
06:15 lorengordon joined #salt
06:18 \ask joined #salt
06:20 wm-bot4 joined #salt
06:36 ALLmightySPIFF joined #salt
06:36 edrocks joined #salt
06:37 fracklen joined #salt
06:38 fannet joined #salt
06:38 DEger joined #salt
06:41 DEger joined #salt
06:43 kshlm joined #salt
06:44 yuhlw_ joined #salt
06:49 keimlink joined #salt
06:54 mavhq joined #salt
06:56 IanV0rn2341 joined #salt
07:09 ffredrikk joined #salt
07:09 keimlink_ joined #salt
07:11 ninjada_ joined #salt
07:17 manji joined #salt
07:18 CeBe joined #salt
07:21 ivanjaros3916 joined #salt
07:26 keimlink joined #salt
07:27 eset joined #salt
07:27 eset Hey , small question. To start adventure with budilding states in salstack should go from that doc at the beginning ? https://docs.saltstack.com/en/latest/topics/tutorials/states_pt1.html
07:34 dariusjs joined #salt
07:43 impi joined #salt
07:52 dariusjs joined #salt
07:53 badon joined #salt
07:54 keimlink joined #salt
07:55 Electron^- joined #salt
07:59 GreatSnoopy joined #salt
08:04 auha I'm referring to saltstack to manage the docker engine in production. Use something like Calico to manage the networking and then use saltstack to manage the orchestration.
08:08 dariusjs joined #salt
08:32 dariusjs joined #salt
08:36 babilen eset: I'd start playing with https://docs.saltstack.com/en/getstarted/ to get an overview, but the states (and pillar) tutorial you linked is fine also
08:43 dariusjs joined #salt
08:45 atmosx joined #salt
08:46 dariusjs joined #salt
08:48 DEger joined #salt
08:52 keimlink joined #salt
08:53 jhauser joined #salt
09:06 fannet joined #salt
09:12 tooth joined #salt
09:15 lero joined #salt
09:22 west575 joined #salt
09:32 silicon_id joined #salt
09:32 atmosx Hello, on mysql-formula I see a 'schema' directive: https://github.com/atmosx/mysql-formula/blob/master/pillar.example#L48-L51 is this equivalent of mysqldump ?
09:33 atmosx The source: salt://mysql/files/foo.schema can be a mysqldump_output.sql file?
09:47 jaybocc2 joined #salt
10:01 ub joined #salt
10:01 N-Mi joined #salt
10:02 descrepes_ joined #salt
10:03 descrepes joined #salt
10:04 Karthik427 joined #salt
10:04 marie1972 left #salt
10:07 jaybocc2 joined #salt
10:09 dariusjs joined #salt
10:09 fredvd joined #salt
10:16 ub2 joined #salt
10:29 writtenoff joined #salt
10:31 lovecraftian joined #salt
10:31 lovecraftian joined #salt
10:35 edrocks joined #salt
10:47 MadHatter42 joined #salt
10:48 JPT joined #salt
10:50 DEger joined #salt
10:54 teryx510 joined #salt
10:54 amcorreia joined #salt
10:56 jaybocc2 joined #salt
11:00 Brijesh1 joined #salt
11:11 babilen atmosx: https://github.com/atmosx/mysql-formula/blob/master/mysql/database.sls#L39 -- It would be used to define databases (schemata) I guess
11:17 ninjada joined #salt
11:17 ub joined #salt
11:17 atmosx Hm, I can't manage to create users for some reason.
11:18 atmosx using the mysql formula
11:18 atmosx the root user created successfully, but the rest hm
11:19 atmosx anyway bbl
11:20 babilen atmosx: There is very little people can do without additional information (actual states, pillars, output, logs, ...)
11:20 atmosx babilen: true
11:21 atmosx let's delay lunch a bit! give me a sec I'll show some files
11:21 babilen Most interesting is probably the minion debug log
11:22 babilen (just run it with salt-call -ldebug ... on the minion)
11:23 impi joined #salt
11:23 ub2 joined #salt
11:26 atmosx babilen: https://gist.github.com/atmosx/31617e9b8c7423724ee35134cde43df0 - gaterhring the minion debug log now
11:29 atmosx added the debug log as a comment
11:30 pjs joined #salt
11:30 kossy_ joined #salt
11:31 xenoxaos joined #salt
11:34 babilen atmosx: On which platform is this? What is the name of your mysql server service?
11:34 babilen atmosx: Oh, and did you copy the example pillar in toto?
11:35 Harmless_Sponge joined #salt
11:36 atmosx babilen: platform? Linux trusty on vagrant. mysql-server runs on minion2. Well I edited the pillar to fit my needs. I need to create 2 users and 2 dbs, etc.
11:36 atmosx s/Linux/Ubuntu trusty
11:36 batdan joined #salt
11:37 babilen atmosx: What's the name of the service?
11:37 babilen 'mysql' isn't it?
11:40 babilen atmosx: ping?
11:40 babilen I'm asking because you explicitly override the defaults on https://gist.github.com/atmosx/31617e9b8c7423724ee35134cde43df0#file-pillar-mysql-sls-L82 by setting it to "mysql-service"
11:41 babilen That service isn't available on Ubuntu and the state that'll start it therefore fails: "Comment: The named service mysql-service is not available"
11:41 babilen I wonder why you override the defaults at all and assume that you simply copied the complete pillar.example in the assumption that it doesn't contain any setting that you don't want to set.
11:42 babilen I'd recommend to remove line 77-85
11:44 atmosx babilen: yes
11:45 atmosx babilen: thanks for the pointers
11:46 babilen You might not want to just copy the pillar.example completely as they often showcase options you might not want to set or correspond to default values
11:47 babilen In particular "lookup:" settings don't need to be set often unless you want to override your platform defaults
12:03 ilbot3 joined #salt
12:03 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.11, 2015.8.11, 2016.3.2 | Support: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
12:04 om joined #salt
12:05 SJReese joined #salt
12:06 om2 joined #salt
12:11 ttrumm joined #salt
12:17 edrocks joined #salt
12:23 voileux joined #salt
12:27 atmosx great
12:30 voileux joined #salt
12:35 XenophonF joined #salt
12:37 XenophonF eset: the tutorial is an excellent place to start
12:37 XenophonF eset: my recommendation is to keep it simple at the beginning
12:38 XenophonF eset: maybe write a state that just manages a single config file, or installs a package, or starts a service
12:38 Cadmus joined #salt
12:39 XenophonF eset: later on, once you're more comfortable, take a look at the various formulas and example repos there are out there
12:39 ssplatt joined #salt
12:40 ALLmightySPIFF joined #salt
12:41 eset XenophonF: I'm starting  from basic stuff , first https://docs.saltstack.com/en/getstarted/system/plugins.html
12:43 rburkholder joined #salt
12:43 edrocks joined #salt
12:44 west575 joined #salt
12:46 fracklen joined #salt
12:47 _JZ_ joined #salt
12:47 jaybocc2 joined #salt
12:50 jhauser joined #salt
12:54 descrepes_ joined #salt
12:55 hosttor joined #salt
12:56 gh34 joined #salt
12:57 scoates joined #salt
13:00 west575 joined #salt
13:00 om joined #salt
13:02 Tanta joined #salt
13:03 jaybocc2 joined #salt
13:04 wangofett joined #salt
13:04 ttrumm joined #salt
13:06 numkem joined #salt
13:07 netcho joined #salt
13:10 ninjada joined #salt
13:10 agend joined #salt
13:14 freelock[m] joined #salt
13:15 M-liberdiko joined #salt
13:15 Harmless_Sponge Hi guys, is this a good place to ask about an issue we're having with a highstate failing?
13:16 Harmless_Sponge It looks like highstate is not completing, and possibly that some states are running constantly for a couple small files, eventually hitting an exception on python's max recursion depth.
13:18 ssplatt do you have logs or pastebins of examples of what you’re trying to do?
13:20 Harmless_Sponge Aye, trace minion logs, I'll pull out some snippets and stick them in gist. We're deploying an app under jboss, versions: salt-minion 2015.5.3 (Lithium), CentOS release 6.7 (Final)
13:21 rdas joined #salt
13:23 Harmless_Sponge ssplatt: I think this is the stacktrace that is causing the issue https://gist.github.com/anonymous/25eece403d5dade79788e681c18dbb94
13:23 netcho hi all, using this profile to create aws instances with salt cloud
13:23 netcho https://paste.debian.net/795261/
13:23 netcho it was working and now it terminiats instances in creeation
13:24 ssplatt Harmless_Sponge: whats inside jboss-log4j.xml
13:25 ssplatt seems like you have an infiinite loop in one of your states.
13:25 ssplatt and what’s the state definition that places that file
13:26 Harmless_Sponge splatt: it is just the log4j config that our app uses, I believe there is jinja template that is associated with it (bear with me I'm in at the deep end with salt)
13:27 Harmless_Sponge I'll find the definition now
13:29 austinpapp joined #salt
13:31 mapu joined #salt
13:33 tiwula joined #salt
13:36 racooper joined #salt
13:38 dariusjs joined #salt
13:40 austinpapp i have a beacon watching a file. when i modify the file, i see the event on the bus which is obviously good
13:40 austinpapp however, my salt.wait_for_event does not actually fire
13:41 austinpapp however, if i use salt-call send.event with the exactly signature... it works
13:41 austinpapp do i _need_ a reactor state file mapped ?
13:42 ssplatt you need a reactor
13:42 ub joined #salt
13:42 ssplatt reactors watch tbe bus for events
13:43 ssplatt beacons send events. reactors see it and do things.
13:43 austinpapp in my orch file... salt.wait_for_event should do the same? no?
13:43 ssplatt no the reactor would kick off the orchestration
13:43 austinpapp ugh.
13:43 austinpapp i dont need to kick off anything. just return True that it picked up the change and move to the next block
13:44 ssplatt oh. hmm, i dunno then
13:44 austinpapp hmmm
13:45 ssplatt never used wait_for_event so i’m not 100% sure
13:46 ssplatt but i’d probably just break the orch into two files, step 1 and step2 or similar.  have the last step of 1 be the state that sends the event.  and step 2 would get triggered by the reactor when it sees the event.
13:46 Ztyx joined #salt
13:46 Ztyx left #salt
13:48 austinpapp splitting the orch file seems super hackish. it would become impossible for someone to know how the workflow happens w/o knowing that something is buried in a reactor file
13:48 austinpapp but i understand what you are saying
13:48 ub2 joined #salt
13:50 lumtnman joined #salt
13:50 lumtnman joined #salt
13:52 austinpapp sooo thats interesting. using a state.event runner worked. using the wait_for_event did not
13:57 whitenoise joined #salt
13:58 ssplatt https://docs.saltstack.com/en/latest/ref/states/all/salt.states.saltmod.html#salt.states.saltmod.wait_for_event  looks like it should do the thing you want.  “blocks and waits for event"
14:02 austinpapp exactly. but did not work
14:03 jerredbell joined #salt
14:03 austinpapp so the real question is, who should be responsible for this? is the saltmod expected to be the proper pattern for orch or should the state runner be it? however they in fact handled differently
14:03 austinpapp one expects a count
14:04 austinpapp the other has a list of ids and a timeout
14:04 austinpapp i'd much prepare the timeout
14:04 M-liberdiko joined #salt
14:04 austinpapp because i want it to fail hard _if_ it doesn't find an event in N secs
14:04 austinpapp i can't have the workflow blocked indefinitely
14:05 mpanetta joined #salt
14:06 mpanetta joined #salt
14:09 jaybocc2 joined #salt
14:12 haam3r joined #salt
14:15 SirMikkalot joined #salt
14:16 nicksloan joined #salt
14:18 ssplatt austinpapp: care to pastebin your state?
14:19 hasues joined #salt
14:19 hasues left #salt
14:23 nZac joined #salt
14:24 jaybocc2 joined #salt
14:28 p3rror joined #salt
14:30 tapoxi joined #salt
14:31 raspado joined #salt
14:31 tapoxi I have my entire salt config in a git repo, including pillar. does it read the pillar data if its under gitfs_remotes and not pillar_roots ?
14:32 silicon_id joined #salt
14:34 armonge joined #salt
14:35 catpig joined #salt
14:39 tapoxi oh nevermind git_pillar, guess that means it'll pull the repo twice
14:42 ALLmightySPIFF joined #salt
14:43 gareth_ joined #salt
14:43 armonge joined #salt
14:44 dyasny joined #salt
14:44 armonge joined #salt
14:46 ALLmightySPIFF joined #salt
14:49 haam3r joined #salt
14:54 BattleChicken joined #salt
14:57 XenophonF tapoxi: you can play around with how salt mounts the git repo
15:01 _JZ_ joined #salt
15:03 haam3r joined #salt
15:06 XenophonF dear person who wrote salt.modules.hashutil, thank you. you rock.
15:08 fracklen joined #salt
15:09 sp0097 joined #salt
15:10 numkem joined #salt
15:11 orionx joined #salt
15:11 jimklo joined #salt
15:13 BattleChicken I keep getting "Legacy package server <guid> from child tier requesting a package <guid> at periet tier while LAC = OFF
15:13 nZac joined #salt
15:13 BattleChicken wrong chat window - please ignore
15:16 Rumbles joined #salt
15:21 austinpapp https://gist.github.com/austinpapp/c1835b138b47dc745a22edcdd1287446
15:21 austinpapp ssplatt: this is what i'm seeing
15:21 austinpapp if you need bus output, i'll have to get that together
15:33 Patch joined #salt
15:36 Brijesh1 joined #salt
15:40 fracklen joined #salt
15:43 orionx joined #salt
15:43 onlyanegg joined #salt
15:44 ZachLanich joined #salt
15:44 nZac joined #salt
15:50 jenastar joined #salt
15:53 amcorreia joined #salt
15:55 kingscott joined #salt
15:56 nZac joined #salt
15:56 kingscott in the etc/ssh/sshd_config file there is a line "#Banner none" I'd like to change that to "Banner /location/of/file" using a salt state. I don't want to manage the sshd_config file on my saltmaster though. Any Ideas?
15:57 jenastar joined #salt
15:58 cmarzullo kingscott: there's a number of states you can use to enforce that. file.line file.uncomment
15:59 kingscott perfect. i'll look at those. Thanks!
15:59 ivanjaros joined #salt
16:04 Brijesh1 joined #salt
16:07 nZac joined #salt
16:07 XenophonF well, dammit, salt on this platform is too old, doesn't include salt.modules.hashutil
16:08 XenophonF i don't understand saltstack's release engineering
16:10 twork_ joined #salt
16:11 wendall911 joined #salt
16:12 Fiber^ joined #salt
16:13 XenophonF wordpress releases new versions about as often as saltstack, and the packages in epel seem to track pretty closely to wordpress
16:14 bluenemo joined #salt
16:14 XenophonF compare/contrast https://bodhi.fedoraproject.org/updates/?packages=wordpress with https://bodhi.fedoraproject.org/updates/?packages=salt
16:14 pipps joined #salt
16:15 pipps joined #salt
16:20 twork_ hey all.  if i've run across a (picky, but maybe poignant) error in an online docs page (under docs.saltstack.com), what's the proper channel for reporting that?
16:22 JPT joined #salt
16:22 XenophonF twork_: i've filed documentation bug reports against their github repo
16:22 cro twork_: right, open an issue on GH
16:22 twork_ ok, thanks
16:22 XenophonF if you can track down where in the sources the buggy doc is, you can file a pull request
16:23 brotatochip joined #salt
16:23 XenophonF just be mindful of https://docs.saltstack.com/en/latest/topics/development/contributing.html
16:23 whitenoise joined #salt
16:24 jimklo joined #salt
16:25 XenophonF and depending on how complicated your changes need to be, here's a link to the Sphinx documentation - http://www.sphinx-doc.org/en/stable/
16:25 XenophonF sorry if you know all this already
16:25 pipps joined #salt
16:25 twork_ XenophonF: har, no, you just got me to backspace "uh, sources...? buh?"
16:26 twork_ <- willing, but, well.  he's a nice boy, really.
16:28 pipps99 joined #salt
16:30 anotherZero joined #salt
16:31 XenophonF hah
16:31 XenophonF where's your documentation bug?
16:31 twork_ ...ooh, step-by-step "how to git clone a docs archive"!  i drool.
16:34 atmosx Hello, I'm in a weird situation: For some reason, when installing mysql-server-5.5 or 5.6 it tries to install both breaking the state.
16:35 atmosx not sure why this happens... It happens no matter if I stub versions or not. I'm using the trusty vagrant setup from the tutorial.
16:36 atmosx error message: https://gist.github.com/atmosx/3b710d0d06454ceef4bd8475af13faff blah
16:36 IanV0rn2341 joined #salt
16:37 twork_ XenophonF: it's way up at the top of https://docs.saltstack.com/en/latest/ref/states/top.html#environments "...which contain a top files and a set of files."  shouldn't that be either "contain a top file" or "contain top files"?  like i said, minute, but that can actually trip up a noob.
16:38 twork_ XenophonF: not sure, but it may have actually confused me, months ago
16:40 schemanic joined #salt
16:41 schemanic Hi. In Salt Cloud, for the provider's ssh_username param, if I remove this user during highstate, after I've created the instance, does salt-cloud still function with the instance?
16:41 twork_ XenophonF: just looked, and it's the same in the 'Develop' copy
16:42 cyborg-one joined #salt
16:42 orionx_ joined #salt
16:43 woodtablet joined #salt
16:44 XenophonF yeah "a top files" should be changed to "a top file"
16:44 orionx_ joined #salt
16:44 XenophonF that's an easy typo to fix
16:45 XenophonF so you should fork saltstack/salt on github and then clone your fork locally
16:45 twork_ tx
16:45 XenophonF that contributing link has the details
16:46 twork_ i was about to ask... this'll be the first i've ever git-submitted a bug to anybody who actually knows what they're doing
16:46 XenophonF once you've got a local fork, assuming Unix you'd do something like `find salt -type f -exec fgrep -iH "a top files" '{}' \;`
16:46 twork_ yeah, /that/ i know how to do...
16:47 XenophonF :)
16:47 XenophonF looks like the salt(7) man page has the same error
16:47 twork_ for shame!
16:47 XenophonF yeah they need a copy editor
16:47 XenophonF unfortunately, they get us
16:47 twork_ heh.  yes well.
16:48 twork_ when you've read something 4,831 times, and you don't have execution bugs to clue you in...
16:48 XenophonF absolutely
16:49 twork_ unfortunatly, you get *me*. muahahaha.
16:49 XenophonF anyway, in your local clone, make a new branch, commit your edits there, push those commits up to your fork on github, and when you view the fork, it should give you the option to generate a pull request
16:49 DammitJim joined #salt
16:49 twork_ neat!
16:50 twork_ i feel like such a grownup.
16:50 ajw0100 joined #salt
16:50 XenophonF man, i *know*
16:50 XenophonF actually sometimes i feel like ralph wiggum "I'm helping!"
16:51 twork_ every. single. damn. day. ...and then they have me go run all this machinery...
16:52 atmosx left #salt
16:52 twork_ ...oh yeah, with a tool that can make me go "...oh my goodness..."
16:55 XenophonF that's exactly how i feel about the federated identity management infrastructure they dumped on me
17:06 sp0097 joined #salt
17:06 impi joined #salt
17:08 beardedeagle joined #salt
17:12 cyrus_mc Trying to setup PAM authentication. Have it workign when using the CLI. But thorugh the API I get "Configuration for external_auth could not be read"
17:13 jaybocc2 joined #salt
17:20 pipps joined #salt
17:21 pipps99 joined #salt
17:21 twork_ HAR. ok, this'll teach you (XenophonF): trying to follow the strux at https://docs.saltstack.com/en/latest/topics/development/contributing.html#sending-a-github-pull-request...
17:22 twork_ at "1." there, the link, "Fork saltstack/salt" points to https://github.com/saltstack/salt/fork ...and that just gave me a 404.
17:23 brotatochip joined #salt
17:24 bltmiller joined #salt
17:25 netcho joined #salt
17:28 marie1972 joined #salt
17:29 marie1972 left #salt
17:32 akhter joined #salt
17:34 nZac joined #salt
17:39 edrocks joined #salt
17:40 scoates joined #salt
17:50 tuxx joined #salt
17:51 Blike joined #salt
17:52 Llmiseyhaa Hey, question... in JINJA, say I have a variable "my_location" and I need to use that in a target spec, how do I go about that?
17:52 Blike Hi here, quick question I have a module which looks like: application/config.sls and application/deploy.sls I'd like to exclude application/deploy.sls from highstate otherwise every time we run highstate it's going to purge one folder ect ,,,
17:52 Blike What's the proper way of doing that?
17:53 Llmiseyhaa (like in a compound target spec, I've got 'G@roles:some_role and G@location:my_location' but I want the my_location to be a variable substitution.)
17:54 Llmiseyhaa ah looks like I can use string concatenation operator +?
17:55 ALLmightySPIFF joined #salt
17:57 GreatSnoopy joined #salt
17:58 Llmiseyhaa cool yup that works =D
17:59 Llmiseyhaa Sorry if I wasted anyone's time. (=
17:59 austinpapp is there anything i need to know about when trying to get beacon to work correctly in a dev env?
18:04 pipps joined #salt
18:04 cmarzullo Blike: we'd need more information. Does your top file include both app/config and app/deploy ?
18:06 XenophonF cyrus_mc: how are you hosting the API? is it seteuid root?
18:07 XenophonF Blike: don't reference "application.deploy" in top.sls, but tbh, you're probably doing it wrong
18:10 XenophonF subsequent runs of a state should have no effect (i.e., they should be idempotent)
18:10 raspado why does salt bootstrap mount an ephemeral host to /mnt?
18:10 XenophonF it's not always easy to achieve this, but to give an example of a state that handles deployment and configuration, see https://github.com/irtnog/shibboleth-formula/tree/master/shibboleth/idp/
18:11 XenophonF Llmiseyhaa: i think you can use jinja in the top file
18:11 Llmiseyhaa well, in this case it was on a mine.get function in a jinja file so (=
18:14 XenophonF twork_: are you signed into github? that link works for me
18:17 Netwizard joined #salt
18:23 Blike XenophonF: That
18:24 Blike XenophonF: That's what I was doing but with the different env it wasn't displaying what it should
18:25 jenastar joined #salt
18:25 Blike I wasn't understanding why state.highstate doesn't need saltenv= and state.sls needs it
18:26 Blike but it makes sens because highstate computes using top.sls so it knows where is what.. state.sls is just a dumb apply
18:28 cyrus_mc XenophonF: I had to upgrade to the latest and that solved my issue
18:29 cyrus_mc XenophonF: although now I am trying to do LDAP auth and getting the following error: https://gist.github.com/cyrus-mc/af21d8b4579acdbf599a75a2f8071c08
18:31 cyrus_mc https://gist.github.com/cyrus-mc/04eb8c3d98f25bd1ecbe71739a50253a is my configuration for ldap
18:32 agentnoel joined #salt
18:34 subsignal joined #salt
18:35 sjmh joined #salt
18:38 twork_ XenophonF: i wasn't at first, that was at least one of my problems
18:40 twork_ ...but yeah, got a local copy now.  thanks.
18:41 twork_ gotta go unfortunately but i'll be back to submit my fixes (read: screw up the world) in a bit
18:42 armonge_ joined #salt
18:42 JPT joined #salt
18:43 bltmiller joined #salt
18:46 ajw0100 joined #salt
18:49 leev_ joined #salt
18:51 muep__ joined #salt
18:51 stfknd joined #salt
18:52 raspado anyone have experience with saltcloud and creating block devices?
18:52 Micromus joined #salt
18:53 dunz0r joined #salt
18:54 gpampara joined #salt
18:54 cyrus_mc can't get this LDAP/AD auth to work at all. Documentation I read seem to indicate I have the correct setup but I keep getting the error "Authentication module threw module object has no attribute filter"
18:55 brotatochip joined #salt
18:56 smkelly joined #salt
18:56 Patch joined #salt
18:56 capri joined #salt
18:56 JPT joined #salt
18:56 xMopxShell joined #salt
18:57 lubyou joined #salt
18:58 cebreidian joined #salt
18:59 AbyssOne joined #salt
19:01 intr1nsic joined #salt
19:01 debian112 joined #salt
19:01 xenoxaos joined #salt
19:04 gmoro joined #salt
19:04 khaije1 I've never quite understood the justification for seperate wheel and runner job types. Is there an underlying logic? It seems that wheel should be a runner module.
19:04 ponyofdeath joined #salt
19:05 riftman joined #salt
19:05 afics joined #salt
19:07 drawsmcgraw joined #salt
19:07 Vaelatern Is it intentional that pkg.installed fails if the package is already installed?
19:10 nebuchadnezzar joined #salt
19:11 IanV0rn2341 joined #salt
19:12 badon joined #salt
19:13 t0nyhays joined #salt
19:16 tkharju joined #salt
19:16 edrocks joined #salt
19:25 cscf Vaelatern, no, it should be idempotent.  What error does it give?
19:30 Vaelatern One minute, asking the person who actually encounters the error
19:31 XenophonF cyrus_mc: i got it working with the salt-api service hosted in apache/wsgi
19:32 XenophonF but i cheated - i'm using nis with pam_krb5, so it doesn't need any special privileges
19:34 subsignal joined #salt
19:38 jav joined #salt
19:48 MajObviousman hallo, I'm the person what encountered the error asked about the pkg.installed
19:48 MajObviousman should have come here first I suppose
19:48 MajObviousman here's the state: https://gist.github.com/anonymous/59451d497ea55ea4569b9dd9c8d2fdc9
19:50 MajObviousman and here's what I get when I run it: https://gist.github.com/anonymous/957cdcf6713018e2ba94e3c6bdf0cceb
19:50 MajObviousman waaaait a second. the require is a tuple of (module, ID) isn't it
19:53 Vaelatern I think you want to change line 15 to be: - pkg : iptables
19:53 Vaelatern Same on line 21
19:54 Vaelatern Not a tuple, a dict, but it works
19:54 LostSoul joined #salt
19:54 teryx510 joined #salt
19:54 MajObviousman yeah, is what I'm seeing too
19:55 MajObviousman I need to go through these states and do some re-writing to the best practices standards
20:00 cyrus_mc XenophonF: that was to my LDAP auth question?
20:02 cyrus_mc XenophonF: nvm, I got it. Our systems are tied into AD via SSSD so I can use pam auth (which I got working) to authenticate AD users
20:03 nicksloan joined #salt
20:04 evidence is it possible to modify a state to always return no change even when there is one?  for example I have a file.touch i'd like to not show up in the changed output
20:04 evidence you can modify return codes on cmd.run, but not seeing a way to change the return on states
20:05 cyrus_mc well, sort of. That works using the CLI, but not via the API. The API can auth local users via pam but not users that are in AD. Honestly, I am coming from a mcollective/puppet world and for all the talk salt is easier to setup, not finding that at all
20:05 pipps joined #salt
20:07 armonge joined #salt
20:08 jaybocc2 joined #salt
20:10 sp0097 joined #salt
20:13 doyouevensunbro joined #salt
20:14 GreatSnoopy joined #salt
20:18 cyborg-one joined #salt
20:22 teryx510 joined #salt
20:24 teryx510 joined #salt
20:28 XenophonF cyrus_mc: i'll bet it's a permissions problem
20:29 XenophonF i don't know how pam_sssd works, but maybe there's a socket or something to which salt-api needs permission?
20:29 XenophonF how are you hosting salt-api? under what service account is it running?
20:30 teryx510 joined #salt
20:31 XenophonF i'm using kerberos auth which doesn't require special privileges
20:37 raspado is it possible to expand a logical volume through a salt map file as opposed to a salt state?
20:38 cyrus_mc XenophonF: I am just running salt-api using rest_cherrypy
20:38 cyrus_mc the service itself is running as root
20:38 cyrus_mc selinux is off
20:40 titilambert joined #salt
20:42 cyrus_mc XenophonF: pam_sssd is just include in the login pam file, which salt is specified to use. So really salt doesn't interact directly with pam_sssd it shoudl just make a pam call and let pam handle what modules are actually called
20:46 pipps joined #salt
20:49 XenophonF hm, if salt-api's running as root, that should be cool
20:50 XenophonF what service name is salt-api calling pam with?
20:50 XenophonF login? salt? something else?
20:50 ALLmightySPIFF joined #salt
20:51 XenophonF gtg bbl
20:52 snarfy^ joined #salt
20:53 snarfy^ does this log msg about "insecure logging configuration" mean to suggest that I should make the minion log dir 0770?
20:58 cyrus_mc XenophonF: login
20:59 cyrus_mc seems to be working now..not sure what I did though
20:59 jxm_ joined #salt
21:02 debian112 joined #salt
21:02 pipps joined #salt
21:03 fredrick joined #salt
21:04 fredrick Getting https://gist.github.com/rchannel/7b82f180675ebfae281eefc51607e99e
21:04 fredrick have install libnacl via pip and libnacl-dev
21:07 haam3r joined #salt
21:07 velikan joined #salt
21:08 velikan hi all! why don’t run iptables.append?
21:13 ALLmightySPIFF joined #salt
21:15 ALLmightySPIFF joined #salt
21:23 david9838 joined #salt
21:23 pipps joined #salt
21:30 david9838 am new to salt so maybe a silly question:  Is Salt in masterless mode a good fit for replacing a traditional software "installer" script? Has this been done?
21:31 pfallenop joined #salt
21:41 win_salt i use salt for personal use if that is what you mean
21:45 debian112 joined #salt
21:45 om joined #salt
21:49 chrichip joined #salt
21:51 haam3r joined #salt
21:51 brotatochip joined #salt
21:52 snarfy^ david9838, depends how many you're replacing. on a small level, it might not be worth the effort. it will feel like a new DSL for the same thing
21:56 amcorreia joined #salt
21:56 david9838 Interesting. The situation is that we've got an in-house app with an old home-brewed bash installer. It's used to load this app on a variety of linux machines before we send them out with users.  But...
21:57 Matthew_ david9838: Maybe build an image instead?
21:57 david9838 we keep needing to extend that script to do more "system config" types tasks like service configurations etc and I wonder if there is a batter way.
21:57 tkharju joined #salt
21:58 david9838 cant do an image, these are boxes we get for service.  So we're not wiping, etc.
21:58 justanotheruser joined #salt
21:58 david9838 better way*
21:59 Matthew_ Oh... Hm.
22:00 justanotheruser joined #salt
22:00 david9838 Sounds like it's not a common use for Salt. Correct? I do wonder how bad the mismatch is though.
22:00 snarfy^ it might - but I really think it may end up feeling like 6 of one half a dozen of the other. it might make sense if you've got ubuntu 12, 14, 16, and windows and you want to do the same things on all of them - salt will be easier to abstract that out
22:01 snarfy^ but if you keep your scripts in source control, and know how to write shell scripts, and that's your thing, then maybe just keep doing that.
22:01 pipps joined #salt
22:01 snarfy^ its not a terrible use of salt - i just find that using salt *correctly* is not a trivial investment
22:02 snarfy^ and to wrap my head around the salt methodology and best practices, if I already know bash, might not be worth it. just a counterpoint ;)
22:03 bltmiller joined #salt
22:04 ALLmightySPIFF joined #salt
22:05 david9838 Yeah, these scripts are all obviously version controlled.  The real challenge has been that systems do not start from a perfect known state.
22:05 david9838 So all the logic we have about trying to detect how things currently are and massing the syten sate correctly seems like a problem that some is probably solving better than our little bash scripts.
22:06 david9838 and massaging the system correctly*
22:06 david9838 (cant seem to type today...)
22:08 david9838 snarfy^: Can you share about more about the challenges of using Salt correctly?  Or at least what you see?
22:12 snarfy^ david9838, well - I might just be a n00b
22:12 snarfy^ but to properly leverage all of the advantages of salt - I would look at how they have set the template for their 'formulas'
22:13 snarfy^ https://github.com/saltstack-formulas/template-formula
22:14 snarfy^ you can see there is actually a (to me) complicated interplay of default key/values, merged key/values, and maps of data that can override and replace other data depending on context
22:14 snarfy^ that's both where the strength and the complexities lie - imho
22:16 david9838 interesting! yeah, I can see how risks getting buggy if you don't get it right.
22:18 jenastar joined #salt
22:30 ixs joined #salt
22:32 ixs evening. quick question: I am trying out salt for kicks. I want to use salt-ssh to manage a machine but as a first step before connecting I would like to use the ipmi module to actually power on the remote machine.
22:32 ixs I could just use salt-call --local for the ipmi part and then use salt-ssh... but I was wondering if that can be combined.
22:33 ixs coming from the ansible world I would just write a playbook that runs the ipmi commands first against localhost...
22:33 ixs how to do that best with salt? any pointers?
22:35 debian112 joined #salt
22:38 kiorky joined #salt
22:39 badon joined #salt
22:41 ajw0100 joined #salt
22:46 BattleChicken left #salt
22:49 lero joined #salt
22:51 N-Mi joined #salt
22:51 N-Mi joined #salt
23:03 brotatochip joined #salt
23:05 ninjada joined #salt
23:05 pipps99 joined #salt
23:06 ninjada joined #salt
23:08 pipps joined #salt
23:15 jenastar I think with bonuses you've surpassed me
23:15 jenastar GOOOD TO KNOW
23:17 pipps joined #salt
23:21 bltmiller joined #salt
23:32 brotatochip joined #salt
23:37 shaggy_surfer joined #salt
23:38 XenophonF ixs: you can use cmd.run to run ipmitool or whatever to power on the remote machine
23:39 nsidhu joined #salt
23:39 nsidhu joined #salt
23:40 ashmckenzie joined #salt
23:42 pipps joined #salt
23:43 lero joined #salt
23:47 brotatochip joined #salt
23:49 ssplatt joined #salt
23:51 debian112 joined #salt
23:54 subsignal joined #salt

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