Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-08-27

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

All times shown according to UTC.

Time Nick Message
00:04 raspado is it possible to call a specific value from a state file?
00:05 raspado for example "salt-cloud state.apply java7 install_java
00:05 stephanlooney joined #salt
00:05 raspado or to call something within a salt state specifically?
00:14 bluepaladin joined #salt
00:17 stanchan joined #salt
00:22 Taz raspado: you do that with the salt command after salt-cloud is run
00:22 onlyanegg What can be used in orchestrate sls files?
00:22 Taz salt yournewmachine state.sls java7 whatever
00:22 Taz you can do it as a reactor or orchestration
00:22 raspado oh state.sls ok
00:22 raspado i was doing state.apply
00:23 Taz ahh, yea i think state.sls is what you want :)
00:23 onlyanegg I'm having trouble finding a reference... only a tutorial
00:23 raspado state.sls being the actual state file name?
00:23 Taz onlyanegg: just about anything, states runners modules what are you trying to do?
00:23 Taz for example i have /srv/salt/test_state.sls
00:23 Taz i would do
00:23 Taz salt minion1 state.sls test_state
00:24 raspado cool cool thx taz
00:39 xbglowx_ hi all, trying to use postgres_database.present, but got an error: "State 'postgres_database.present' was not found in SLS 'containers.grafana'". Reason: 'postgres_database' __virtual__ returned False. Not sure what is going on.
00:41 onlyanegg uhh, I guess I mean, for example, for the salt.state 'state' (I guess), what can you put inside there?
00:41 onlyanegg for sure tgt: and sls:
00:41 onlyanegg anything else?
00:44 xbglowx_ hmm, seems to be a problem with develop branch. I just installed latest stable
00:45 onlyanegg for example, can I specify how many instances to run in parallel?
00:57 armonge joined #salt
01:00 antpa joined #salt
01:00 antpa joined #salt
01:01 _JZ_ joined #salt
01:05 brotatochip joined #salt
01:08 armonge joined #salt
01:14 stephanlooney joined #salt
01:15 bltmiller joined #salt
01:16 raspado is it not possible to symlink a folder in stalt?
01:18 aljosa joined #salt
01:18 wiqd joined #salt
01:18 OliverMT joined #salt
01:18 huddy joined #salt
01:20 bbhoss joined #salt
01:22 simonmcc joined #salt
01:22 gazarsgo joined #salt
01:24 linovia joined #salt
01:24 samkottler joined #salt
01:25 nahkiss joined #salt
01:26 trave_ joined #salt
01:27 tmkerr joined #salt
01:30 tcolvin joined #salt
01:31 bltmiller joined #salt
01:33 Nahual joined #salt
01:36 stephanlooney joined #salt
01:49 catpigger joined #salt
01:52 edrocks joined #salt
01:54 Taz raspado: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.symlink
01:54 raspado thx
01:55 Taz onlyanegg: you can do that in the normal salt command but not sure how to you do that in orchestration, you can just trigger a subset of machines i guess?
01:57 stephanlooney joined #salt
02:01 raspado Taz: is it possible to create a symlink if the path does not exist?
02:04 stephanl_ joined #salt
02:06 raspado i think i see its makedirs
02:14 stephanlooney joined #salt
02:25 MTecknology How can I find a list of timezones that I can slap on a system?
02:26 bastiandg joined #salt
02:26 MTecknology couldn't find it, asked, found it... thanks guys!  https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
02:26 saltstackbot [WIKIPEDIA] List of tz database time zones | "This is a list of time zones in the tz database release 2016f. The list is derived from the zones, links, and rules specified in zone.tab and the 7 "continent files" – africa, antarctica, asia, australasia, europe, northamerica, and southamerica. It also include other valid entries from the etcetera..."
02:27 johnkeates joined #salt
02:28 blu_ joined #salt
02:31 armonge joined #salt
02:38 stephanlooney joined #salt
02:41 stanchan joined #salt
02:46 schemanic_ joined #salt
02:51 Turl joined #salt
02:54 Turl left #salt
02:57 stephanlooney joined #salt
03:04 stephanlooney joined #salt
03:15 stephanlooney joined #salt
03:38 stephanlooney joined #salt
03:46 Brijesh1 joined #salt
03:57 stephanlooney joined #salt
04:00 DEger joined #salt
04:05 stephanlooney joined #salt
04:09 Brijesh1 joined #salt
04:13 raspado joined #salt
04:14 stephanlooney joined #salt
04:18 johnkeates joined #salt
04:24 jaybocc2 joined #salt
04:25 DEger joined #salt
04:45 jaybocc2 joined #salt
04:46 Brijesh1 joined #salt
04:47 Brijesh2 joined #salt
04:48 NlkIoUxhGD joined #salt
04:51 stanchan joined #salt
04:55 stephanlooney joined #salt
04:59 manji joined #salt
05:04 Brijesh1 joined #salt
05:08 DEger_ joined #salt
05:12 jaybocc2 joined #salt
05:15 stephanlooney joined #salt
05:16 johnkeates joined #salt
05:36 stephanlooney joined #salt
05:38 uDMCIOLLth joined #salt
05:42 jxm_ joined #salt
05:48 Brijesh1 joined #salt
05:53 manji joined #salt
05:56 stephanlooney joined #salt
05:57 stanchan joined #salt
06:01 MTecknology "Like all REST modules, the REST module requires a configuration profile to be configured in either the minion or master configuration file. This profile requires very little. In the example"
06:01 * MTecknology grumbles
06:01 MTecknology "the config file"
06:02 Miouge joined #salt
06:02 MTecknology ya? well... the syntax doesn't look like it goes willy nilly anywhere...
06:02 stanchan joined #salt
06:04 stephanlooney joined #salt
06:20 John_Kang joined #salt
06:21 MTecknology Any ideas what I'm doing wrong here? http://dpaste.com/1XCYJE2
06:21 antpa joined #salt
06:22 MTecknology If I try salt 'salt*' sdb.set ...  it'll return False
06:22 MTecknology both are wrong..
06:27 jijiki joined #salt
06:34 bocaneri joined #salt
06:34 stephanlooney joined #salt
06:36 fracklen joined #salt
06:40 MTecknology ooooh.... it's a minion AND master config
06:40 MTecknology this sdb system is weird as fuck
06:45 stephanlooney joined #salt
06:51 t0m0 joined #salt
06:52 fracklen joined #salt
06:59 manji left #salt
07:00 manji joined #salt
07:03 MTecknology WOOHOO!!!! I finally have it doing a thing
07:07 manji joined #salt
07:07 stephanlooney joined #salt
07:09 RandyT_ joined #salt
07:09 juanito_ joined #salt
07:11 mihait_ joined #salt
07:11 aljosa_ joined #salt
07:12 Matthew___ joined #salt
07:12 artemz- joined #salt
07:13 dustywusty_ joined #salt
07:13 patrek_ joined #salt
07:13 khorben joined #salt
07:14 LostSoul_ joined #salt
07:14 Kruge_ joined #salt
07:14 NVX joined #salt
07:14 douardda_ joined #salt
07:14 sarlalian_ joined #salt
07:16 invalidexceptio- joined #salt
07:17 leica joined #salt
07:17 ahammond joined #salt
07:17 lorengordon joined #salt
07:17 freelock[m] joined #salt
07:17 gtmanfred joined #salt
07:18 SubOracle joined #salt
07:18 darkalia joined #salt
07:19 manji joined #salt
07:20 jab416171 joined #salt
07:21 amy_ joined #salt
07:23 jaybocc2 joined #salt
07:23 fracklen joined #salt
07:26 baozi717 joined #salt
07:26 stephanlooney joined #salt
07:36 stanchan joined #salt
07:39 Fiber^ joined #salt
07:39 jaybocc2 joined #salt
07:41 ZachLanich joined #salt
07:44 esharpmajor joined #salt
07:46 stephanlooney joined #salt
07:52 guerby joined #salt
07:54 leica joined #salt
08:06 stephanlooney joined #salt
08:06 lilvim joined #salt
08:20 NVX joined #salt
08:21 pipps joined #salt
08:22 antpa joined #salt
08:24 colegatron joined #salt
08:24 jaybocc2 joined #salt
08:27 stephanlooney joined #salt
08:32 onlyanegg joined #salt
08:34 stephanlooney joined #salt
08:40 jaybocc2 joined #salt
08:45 stephanlooney joined #salt
08:46 Sammichmaker joined #salt
08:55 leica joined #salt
08:59 Miouge joined #salt
09:05 edrocks joined #salt
09:07 stephanlooney joined #salt
09:09 MTecknology iggy: I got it figured out!!! :D   I can do a git push to any salt repo and a countdown starts, if anything happens within ten minutes, it resets, after ten minutes, it kicks off a highstate, that highstate can only run at most once every hour. :D
09:24 akhter joined #salt
09:27 stephanlooney joined #salt
09:34 stephanlooney joined #salt
09:42 Miouge joined #salt
09:46 stephanlooney joined #salt
09:56 leica joined #salt
10:27 stephanlooney joined #salt
10:35 stephanlooney joined #salt
10:35 leica joined #salt
10:38 viq MTecknology: and you did that with sdb?
10:41 Miouge joined #salt
10:46 stephanlooney joined #salt
10:51 jaybocc2 joined #salt
11:05 amy_ joined #salt
11:07 stephanlooney joined #salt
11:07 jaybocc2 joined #salt
11:25 amy_ joined #salt
11:27 stephanlooney joined #salt
11:34 stephanlooney joined #salt
11:53 antpa joined #salt
11:53 amcorreia joined #salt
12:00 catpig joined #salt
12:09 afics joined #salt
12:25 stephanl_ joined #salt
12:34 stephanlooney joined #salt
12:55 antpa joined #salt
12:59 XenophonF MTecknology: you totally need to write that up and share it somewhere
13:05 toddnni joined #salt
13:09 edrocks joined #salt
13:19 jaybocc2 joined #salt
13:25 stephanlooney joined #salt
13:45 scoates joined #salt
13:45 nicksloan joined #salt
13:45 stephanlooney joined #salt
13:56 schemanic_ joined #salt
14:06 stephanlooney joined #salt
14:17 stephanlooney joined #salt
14:27 stephanlooney joined #salt
14:34 ninjada joined #salt
14:35 SpX joined #salt
14:38 Brijesh1 joined #salt
14:40 cyborg-one joined #salt
14:41 ivanjaros joined #salt
14:44 ninjada joined #salt
14:45 XenophonF joined #salt
14:47 XenophonF joined #salt
14:47 XenophonF left #salt
15:02 Miouge joined #salt
15:07 deus_ex joined #salt
15:07 kus joined #salt
15:10 squishypebble joined #salt
15:20 alrayyes Hi there
15:20 alrayyes when trying to start foreman-tasks in debian production log gives the following error:
15:20 alrayyes 2016-08-27T15:19:26 [app] [W] Failed running foreman-tasks daemon
15:20 alrayyes | Sequel::DatabaseConnectionError: SQLite3::CantOpenException: unable to open database file
15:20 alrayyes can anyone give me any pointers where this database is supposed to be?
15:21 alrayyes sorry, wrong channel
15:21 alrayyes my bad
15:25 mikeym joined #salt
15:27 mikeym joined #salt
15:27 mikeym joined #salt
15:27 mikeym joined #salt
15:28 mTeK joined #salt
15:31 SpX joined #salt
15:36 orionx joined #salt
15:38 Brijesh1 joined #salt
15:40 Miouge joined #salt
15:56 SpX joined #salt
15:57 Brijesh1 joined #salt
16:00 toddnni joined #salt
16:01 scoates joined #salt
16:04 stanchan joined #salt
16:05 stephanlooney joined #salt
16:06 XenophonF joined #salt
16:08 DEger joined #salt
16:12 amy_ joined #salt
16:12 XenophonF joined #salt
16:15 XenophonF joined #salt
16:19 Miouge joined #salt
16:21 Miouge joined #salt
16:21 antpa joined #salt
16:25 DEger joined #salt
16:34 stephanlooney joined #salt
16:35 Pie_Mage joined #salt
16:36 Pie_Mage hello
16:37 Pie_Mage and I am getting a 'global name Git is not defined' error when using the Git state (https://docs.saltstack.com/en/latest/ref/states/all/salt.states.git.html) in pyobjects
16:38 Pie_Mage (running 2016.3.2)
16:39 stanchan joined #salt
16:43 mohae joined #salt
17:01 amcorreia joined #salt
17:07 edrocks joined #salt
17:11 Electron^- joined #salt
17:16 mohae_ joined #salt
17:20 viq Pie_Mage: try running 'salt-call state.highstate' on the node and see what it says
17:26 Miouge joined #salt
17:33 stephanlooney joined #salt
17:47 stephanlooney joined #salt
17:47 Brijesh1 joined #salt
17:56 ajw0100 joined #salt
18:01 Miouge joined #salt
18:01 stanchan joined #salt
18:09 Pie_Mage same error:
18:09 Pie_Mage [CRITICAL] Rendering SLS system-specific.gitlab failed, render error: global name 'Git' is not defined
18:10 badon joined #salt
18:10 Pie_Mage hrm
18:11 ronnix joined #salt
18:18 Pie_Mage woohoo
18:19 Pie_Mage for some reason the python-git package wasn't installed
18:19 Pie_Mage ty viq :D
18:24 ZachLanich joined #salt
18:24 antpa joined #salt
18:24 stephanlooney joined #salt
18:29 lovecraftian joined #salt
18:33 agentnoel joined #salt
18:33 agentnoel joined #salt
18:34 MTecknology XenophonF: viq: sdb is just a tiny piece to store a tick; a reactor sets the tick, a schedule kicks off every minute to run a script, the script checks the tick value, drops it by one, (the reactor set it to 70 provided it was currently >60 or =0), if it hits 60, the script will trigger a highstate execution
18:36 MTecknology "trigger a highstate execution" <-- hasn't been built yet, but it'll just be the script triggering the orchestration runner that goes through and runs fileserver.update, salt -b 2 -C '* and not salt.lustfield.net' state.highstate, salt 'salt.lustfield.net' state.highstate
18:37 akhter joined #salt
18:39 MTecknology ^ just the spew version ^   it'll definitely make an excellent blog post. I also need to write one about how much I automated salt-cloud with openvpn 'n such
18:39 daemonkeeper joined #salt
18:39 Antipsychiatry joined #salt
18:40 stanchan joined #salt
18:42 squishypebble2 joined #salt
18:46 SpX joined #salt
18:51 Pie_Mage i'd figure it would be a dependency
18:51 stanchan joined #salt
18:55 MTecknology Pie_Mage: I don't mean to distract, but have you tried gogs? I used to have a big hardon for gitlab but it's a clusterfuck to deploy and maintain and opted for the stupidly simple gogs that does everything I need.
18:56 Pie_Mage I haven't
18:56 tiwula joined #salt
18:56 Pie_Mage i usually just run my own local git server and have bash scripts do a bunch of the integration stuff
18:57 Pie_Mage ooh
18:58 Pie_Mage i'm just playing around with gitlab really... I like it, but I also agree it feels like a clusterfuck
18:59 Pie_Mage I haven't used it extensively enough yet to have much of an opinion outside my first impression though
18:59 * Pie_Mage puts on his todo list
19:02 stanchan joined #salt
19:08 DEger joined #salt
19:08 above joined #salt
19:12 fracklen joined #salt
19:16 ivanjaros joined #salt
19:18 stanchan joined #salt
19:21 viq Yeah, I even wrote ages ago a formula for installing gitlab... Nowadays if possible I'd probably go with the omnibus. But gogs seems fine too. For my own use I just use gitolite :P
19:23 justanotheruser joined #salt
19:24 MTecknology or gitolite :)
19:28 justanotheruser joined #salt
19:29 ajv left #salt
19:42 bluenemo joined #salt
19:55 oida joined #salt
19:57 colegatron joined #salt
20:05 stephanlooney joined #salt
20:05 justanotheruser joined #salt
20:08 squishypebble joined #salt
20:16 west575 joined #salt
20:17 Nahual joined #salt
20:26 stephanlooney joined #salt
20:30 swa_work joined #salt
20:32 Miouge joined #salt
20:34 stephanlooney joined #salt
20:54 fracklen joined #salt
20:55 edrocks joined #salt
20:56 oida joined #salt
21:00 MTecknology I wonder if it's possible to store orchestrator sls files in git
21:03 stephanlooney joined #salt
21:07 iggy yes
21:07 Miouge joined #salt
21:08 MTecknology how?
21:09 MTecknology just create an orch dir in the root of the git fileserver root?
21:09 iggy that's what I have
21:09 iggy then state.orch orch.dostuff
21:11 stephanlooney joined #salt
21:15 MTecknology hm.. out of curiousity, what do you use runners for?
21:20 Miouge joined #salt
21:23 DEger joined #salt
21:25 schemanic_ joined #salt
21:26 mikeym joined #salt
21:27 mikeym joined #salt
21:27 mikeym joined #salt
21:28 mikeym joined #salt
21:28 mikeym joined #salt
21:29 mikeym joined #salt
21:31 |aaron seems like bechtoldt's formulas are generally a bit better put together than saltstack-formulas? anyone else using them?
21:40 sjmh @MTecknology - think of runners as a scripting language for running salt commands.
21:41 sjmh We use a runner to do our bare metal installation orchestration
21:47 stephanlooney joined #salt
21:51 kiorky joined #salt
21:54 stanchan joined #salt
22:09 stephanlooney joined #salt
22:16 ajv joined #salt
22:24 MTecknology sjmh: I was just curious about a practical use cases
22:25 antpa joined #salt
22:26 sjmh MTecknology : gotcha.  Two of our use cases: baremetal installation orchestration and our os patching mechanism
22:26 Llmiseyhaa I use them for staged, error-tolerant rollouts of software.
22:26 sjmh the patching one talks to our CMDB and figures out which hosts are in the patch window for that day, then executes patching jobs on those hosts
22:27 sjmh then it waits for them to report back through a reactor and generates a report at the end of who failed/succeeded
22:34 MTecknology sjmh: you... should make that public because I tried doing exactly that once upon a time
22:35 sjmh MTecknology : Maybe some day :)
22:35 MTecknology someday*
22:36 MTecknology due to a legal technicality, you now have to make it public today
22:37 MTecknology The system I'm building at home will push out highstate executions when you push to one of the salt repos; other repos might trigger specific states running on targeted systems.
22:39 MTecknology idea being that change management would be done by way of accepting PR's and letting them get merged
22:43 edrocks joined #salt
22:48 MTecknology I haven't figured out how to set a batch size on runner.state.highstate
22:49 MTecknology err.. local.state.highstate
22:50 MTecknology I'm guessing it's runner I should be using
22:52 MTecknology I need to learn that the salt source code isn't scary and just start looking there sooner
23:00 JPT joined #salt
23:00 ZachLanich joined #salt
23:08 badon joined #salt
23:16 cliluw joined #salt
23:20 smoores joined #salt
23:21 smoores left #salt
23:32 edrocks_ joined #salt
23:34 Nahual joined #salt
23:43 iggy |aaron: that's a matter of opinion... I personally hate the style he uses, but to each their own
23:44 |aaron iggy: his formulas ended up requiring almost as much modification as the saltstack ones so maybe its a moot point lol.  i guess you are going to end up writing a lot of your own stuff anyway?
23:45 iggy yeah, we don't use them at all at work, and my personal salt setup only uses one (letsencrypt)
23:46 iggy my old job used them heavily, but we were adding a lot of functionality to them
23:46 iggy MTecknology: use runners for? or use orchestrate for?

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