Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-11-16

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

All times shown according to UTC.

Time Nick Message
00:07 mrueg joined #salt
00:11 kellyp joined #salt
00:12 dxiri_ joined #salt
00:13 yoda83 is there a master command to install IIS on a windows minion (similar to installing say, nginx on an ubuntu minion)?
00:14 yoda83 i see stuff about creating AppPools, etc.... but nothing about an actual install
00:15 yoda83 i wonder if licensing is an issue
00:25 johnj_ joined #salt
00:35 KevinAn2757 joined #salt
00:35 threwahway_ joined #salt
00:38 Praematura_ joined #salt
00:45 KevinAn2757 joined #salt
00:46 klaas joined #salt
00:47 pipps joined #salt
00:47 dxiri joined #salt
00:50 kellyp joined #salt
00:52 GMAzrael joined #salt
01:03 saltslackbridge <gtmanfred> yoda83 i believe you need to use the win_servermanager.installed to enable the webserver role
01:03 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/ref/states/all/salt.states.win_servermanager.html#salt.states.win_servermanager.installed
01:03 saltslackbridge <gtmanfred> that is for enabling stuff that you just enable in windows settings
01:14 yoda83 ok. i will take a look..... right now i'm just baking an EC2 image w/ IIS (and a Salt Minion) installed
01:22 major joined #salt
01:22 GMAzrael joined #salt
01:25 theone joined #salt
01:26 johnj_ joined #salt
01:26 nledez joined #salt
01:26 nledez joined #salt
01:26 kuchi joined #salt
01:27 NightMonkey joined #salt
01:28 Valfor joined #salt
01:28 sarlalian joined #salt
01:28 CrummyGummy joined #salt
01:28 FL1SK joined #salt
01:28 Lionel_Debroux joined #salt
01:28 fxhp joined #salt
01:28 eseyman joined #salt
01:28 gmoro joined #salt
01:28 mk-fg joined #salt
01:28 daks joined #salt
01:28 chamunks joined #salt
01:28 aviau joined #salt
01:28 ntropy joined #salt
01:28 darvon joined #salt
01:28 rathier joined #salt
01:28 q1x joined #salt
01:28 ekkelett joined #salt
01:28 jeblair joined #salt
01:28 Arendtsen joined #salt
01:28 dwfreed joined #salt
01:28 izrail joined #salt
01:28 arif-ali joined #salt
01:28 duckfez joined #salt
01:28 scc joined #salt
01:28 sjohnsen joined #salt
01:28 LotR joined #salt
01:28 whytewolf joined #salt
01:28 mirko joined #salt
01:28 Udkkna joined #salt
01:28 Neighbour joined #salt
01:28 gadams joined #salt
01:28 beardo joined #salt
01:28 shbst joined #salt
01:28 Horgix joined #salt
01:28 shakalaka joined #salt
01:28 valkyr2e joined #salt
01:28 hillna joined #salt
01:28 preludedrew joined #salt
01:28 capn-morgan joined #salt
01:28 onlyanegg joined #salt
01:34 threwahway__ joined #salt
01:35 nethershaw joined #salt
01:36 daks joined #salt
01:40 theone left #salt
01:46 GMAzrael joined #salt
01:54 cyborg-one joined #salt
01:56 N-Mi joined #salt
01:56 N-Mi joined #salt
01:58 GMAzrael joined #salt
02:01 Praematura_ joined #salt
02:04 zerocool_ joined #salt
02:04 pipps joined #salt
02:06 mcqueenorama joined #salt
02:27 johnj_ joined #salt
02:28 GMAzrael joined #salt
02:37 zerocool_ joined #salt
02:39 nethershaw joined #salt
02:39 zerocool_ joined #salt
02:40 zerocool_ joined #salt
02:41 zerocool_ joined #salt
02:54 pipps joined #salt
02:54 pipps99 joined #salt
02:55 ilbot3 joined #salt
02:55 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.8, 2017.7.2 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
03:01 kellyp joined #salt
03:04 GMAzrael joined #salt
03:08 Lenz joined #salt
03:12 dxiri joined #salt
03:16 mcqueenorama joined #salt
03:16 zerocool_ joined #salt
03:28 johnj_ joined #salt
03:36 jeffspeff joined #salt
03:39 SkyRocknRoll_ joined #salt
03:39 tiwula joined #salt
03:41 Praematura joined #salt
03:43 mcqueenorama joined #salt
03:47 threwahway_ joined #salt
03:48 mcqueenorama joined #salt
03:50 GMAzrael joined #salt
03:51 mavhq joined #salt
04:03 evle joined #salt
04:05 zerocoo__ joined #salt
04:09 Deliant joined #salt
04:09 Lionel_Debroux_ joined #salt
04:25 McNinja joined #salt
04:26 justan0theruser joined #salt
04:26 justan0theruser joined #salt
04:28 dxiri joined #salt
04:29 johnj_ joined #salt
04:31 Vaelatern left #salt
04:33 Deliant joined #salt
04:39 Deliant joined #salt
04:40 zerocool_ joined #salt
04:45 GMAzrael joined #salt
04:53 mcqueenorama joined #salt
05:00 Praematura joined #salt
05:01 johnj_ joined #salt
05:01 GMAzrael joined #salt
05:03 om2 joined #salt
05:13 yoda83 joined #salt
05:28 zerocool_ joined #salt
05:32 threwahway_ joined #salt
05:35 zerocool_ joined #salt
05:41 zerocool_ joined #salt
05:48 threwahway__ joined #salt
05:48 zerocool_ joined #salt
06:00 threwahway_ joined #salt
06:07 DarkKnightCZ joined #salt
06:09 samodid joined #salt
06:15 msn joined #salt
06:17 LocaMocha joined #salt
06:18 zerocool_ joined #salt
06:24 XenophonF joined #salt
06:25 zerocool_ joined #salt
06:34 rewbycraft joined #salt
06:41 indistylo joined #salt
06:45 dxiri joined #salt
06:51 GMAzrael joined #salt
07:01 kellyp joined #salt
07:04 DarkKnightCZ joined #salt
07:08 GMAzrael joined #salt
07:18 zerocool_ joined #salt
07:22 SteamWells joined #salt
07:22 Ricardo1000 joined #salt
07:23 nahkiss joined #salt
07:23 zerocool_ joined #salt
07:25 manji joined #salt
07:25 djural joined #salt
07:29 onlyaneg1 joined #salt
07:31 hoonetorg joined #salt
07:33 samodid joined #salt
07:34 McNinja joined #salt
07:38 pualj joined #salt
07:39 threwahway__ joined #salt
07:41 blue left #salt
07:41 threwahway_ joined #salt
07:43 GMAzrael joined #salt
07:50 mavhq joined #salt
07:52 BarBQ joined #salt
08:00 jfelchner joined #salt
08:03 pualj joined #salt
08:08 toanju joined #salt
08:09 aldevar joined #salt
08:10 johnj joined #salt
08:10 do3meli joined #salt
08:11 do3meli left #salt
08:14 GMAzrael joined #salt
08:24 zerocool_ joined #salt
08:25 BioSpider joined #salt
08:25 BioSpider joined #salt
08:29 Hybrid joined #salt
08:35 shanth joined #salt
08:37 CrummyGummy joined #salt
08:41 jrenner joined #salt
08:46 jhauser joined #salt
08:51 Tucky joined #salt
08:52 aldevar1 joined #salt
08:53 mikecmpbll joined #salt
08:53 toanju joined #salt
09:09 pbandark joined #salt
09:09 xist joined #salt
09:12 johnj joined #salt
09:13 GMAzrael joined #salt
09:19 czchen joined #salt
09:19 daxroc joined #salt
09:20 impi joined #salt
09:24 Ricardo1000 joined #salt
09:25 SkyRocknRoll joined #salt
09:25 zerocool_ joined #salt
09:31 Tucky joined #salt
09:31 mavhq joined #salt
09:38 BHauser joined #salt
09:46 Mattch joined #salt
09:49 netcho_ joined #salt
09:59 samodid joined #salt
10:02 _KaszpiR_ joined #salt
10:02 colegatron joined #salt
10:02 zulgabis joined #salt
10:07 xist joined #salt
10:10 johnj joined #salt
10:22 toanju joined #salt
10:30 threwahway joined #salt
10:31 Naresh joined #salt
10:35 dhwt joined #salt
10:44 threwahway_ joined #salt
10:52 GMAzrael joined #salt
10:58 threwahway joined #salt
11:03 Praematura joined #salt
11:11 johnj joined #salt
11:18 Ricardo1000 joined #salt
11:18 GMAzrael joined #salt
11:23 netcho_ joined #salt
11:48 GMAzrael joined #salt
11:54 zerocool_ joined #salt
11:56 zerocool_ joined #salt
12:08 threwahway joined #salt
12:12 johnj joined #salt
12:14 mcqueenorama joined #salt
12:17 linovia gtmanfred: let me know if/how I can help somehow with the development for the openstack "driver"
12:28 alexlist joined #salt
12:28 evle joined #salt
12:42 Praematura joined #salt
12:48 GMAzrael joined #salt
12:50 mcqueeno1ama joined #salt
12:54 pbandark1 joined #salt
12:55 upb joined #salt
12:58 dxiri joined #salt
13:09 dhwt joined #salt
13:09 threwahway joined #salt
13:13 johnj joined #salt
13:16 tcpdump joined #salt
13:16 tcpdump Hello everyone.
13:17 Guest73 joined #salt
13:17 tcpdump salt 'prod*' cmd.run 'echo '* * * * *    root    /root/scripts/stats.sh >> /dev/null 2>&1' > /etc/cron.d/stats'
13:17 tcpdump So, that command is freaking out salt because of the double set of ' ' i'd presume.
13:17 tcpdump Is there a better way?
13:18 tcpdump hmmm
13:18 tcpdump i may have answered my own question...
13:19 tcpdump OK - double quote the string...
13:19 tcpdump my bad.
13:21 BarBQ joined #salt
13:29 mavhq joined #salt
13:32 GMAzrael joined #salt
13:32 fallenour joined #salt
13:50 dxiri joined #salt
13:57 Praematura joined #salt
14:02 mchlumsky joined #salt
14:09 skeeved joined #salt
14:10 threwahway joined #salt
14:10 mchlumsky joined #salt
14:15 johnj joined #salt
14:20 socket- joined #salt
14:28 gh34 joined #salt
14:47 noobiedubie joined #salt
14:51 mcqueenorama joined #salt
14:53 coredumb Hey folks
14:53 coredumb How do you keep a certain number of char from a string in jinja?
14:55 coredumb ok truncate should be able to do it
14:55 noobiedubie you could just use list syntax so for say variable string[numberyouwantokeep] inside the normal jinja syntax
14:55 coredumb noobiedubie: oh python slicing is available that easily?
14:56 racooper joined #salt
14:56 noobiedubie yup yup
14:58 coredumb bah so easy :D
15:04 lordcirth_work tcpdump, cron.present would be better
15:04 Mattch joined #salt
15:06 cgiroua joined #salt
15:10 threwahway joined #salt
15:14 XenophonF yoda83: instead of using the win_servermanager.installed state, I'd recommend using the dism.feature_present state instead
15:14 XenophonF oh they're gone :(
15:16 kellyp joined #salt
15:16 johnj joined #salt
15:18 mcqueeno1ama joined #salt
15:19 Praematura joined #salt
15:22 SkyRocknRoll joined #salt
15:23 Shirkdog joined #salt
15:24 csmule joined #salt
15:28 SkyRocknRoll joined #salt
15:29 ouemt joined #salt
15:37 tcpdump lordcirth_work: nice, I hadn't seen that.
15:40 lordcirth_work tcpdump, tip: always use the identifier feature
15:42 malsig joined #salt
15:45 om2 joined #salt
15:46 theo_ joined #salt
15:49 N-Mi joined #salt
15:49 N-Mi joined #salt
15:49 k1412 hello everyone, it's possible to use something like grains in a pillar (example grab the hostname ?)
15:50 _theo joined #salt
15:53 theo_deus joined #salt
15:56 DarkKnightCZ joined #salt
15:56 mikecmpb_ joined #salt
15:57 Brew joined #salt
15:58 Deliant joined #salt
15:59 samodid joined #salt
16:04 tiwula joined #salt
16:04 Deliant joined #salt
16:06 ntropy k1412: yes, grains are available in pillar & states, here's an example https://docs.saltstack.com/en/latest/topics/tutorials/states_pt3.html#using-grains-in-sls-modules
16:08 ntropy k1412: you should read through that 4 part tutorial, otherwise it might be challenging to get started
16:11 k1412 ntropy: thanks, I wil look at it. It's the first time I see a formula where I need to use a grain directly so I discover little by little.
16:12 threwahway joined #salt
16:13 Deliant joined #salt
16:17 johnj joined #salt
16:18 beardedeagle joined #salt
16:20 mikecmpbll joined #salt
16:21 indistylo joined #salt
16:26 _theo joined #salt
16:29 _theo Greetings.  I'm interested in running Salt as a system container (http://www.projectatomic.io/blog/2016/09/intro-to-system-containers/) Would Saltstack be interested in hosting an official Salt system container image on https://hub.docker.com/u/saltstack ?
16:31 Praematura joined #salt
16:37 edrocks joined #salt
16:40 XenophonF hm, packaging a master might be tricky - you'd have to keep some state somewhere
16:40 XenophonF specifcally the master and minion keymat
16:42 DarkKnightCZ joined #salt
16:43 fxhp joined #salt
16:43 nixjdm joined #salt
16:45 tiwula joined #salt
16:49 saltslackbridge <gtmanfred> _theo, not really, if you want to run salt in a container, the best way is to use `docker.call` then it just ships the thin tarball from salt-ssh into the container and runs the commands, and then deletes itself
16:50 saltslackbridge <gtmanfred> you can even run `docker.sls` to run state files in the container
16:52 theo_ joined #salt
16:54 onlyanegg joined #salt
16:55 MTecknology XenophonF: Outside of configs and keys, it doesn't really need to persist state. That's probably doable.
16:56 fatal_exception joined #salt
16:58 saltslackbridge <gtmanfred> _theo the saltstack hub stuff was from when we were looking into running our test suite in docker containers.
16:59 saltslackbridge <gtmanfred> _theo and here is a blog post about building docker containers using salt https://blog.gtmanfred.com/docker-and-salt.html
17:01 mikecmpb_ joined #salt
17:02 theo__ joined #salt
17:11 SkyRocknRoll_ joined #salt
17:13 threwahway joined #salt
17:18 johnj_ joined #salt
17:22 Praematura joined #salt
17:24 kellyp joined #salt
17:25 kellyp joined #salt
17:26 m4rk0 gtmanfred, nice post :)
17:26 saltslackbridge <gtmanfred> thanks
17:28 tiwula joined #salt
17:34 pipps joined #salt
17:34 Brew joined #salt
17:35 heaje joined #salt
17:38 theo_ joined #salt
17:39 pipps joined #salt
17:42 ECDHE_RSA_AES256 joined #salt
17:58 vexati0n is there any way in state.orchestrate to load the response from a minion into a variable to be used later in the orchestration?
17:58 saltslackbridge <gtmanfred> no
17:59 saltslackbridge <gtmanfred> but there should be not that far in the future, it is being worked on for runtime evaluation stuff
17:59 mavhq joined #salt
18:00 vexati0n so... i'd have to do something like prompting minion1 to send an event with the necessary data and use reactor to do whatever on minion2
18:00 vexati0n meh
18:01 mcqueenorama joined #salt
18:02 pipps joined #salt
18:03 saltslackbridge <gtmanfred> yeah
18:09 tiwula joined #salt
18:09 mikecmpbll joined #salt
18:13 threwahway joined #salt
18:19 johnj_ joined #salt
18:22 _KaszpiR_ joined #salt
18:25 theo_ joined #salt
18:29 noobiedubie joined #salt
18:32 pipps joined #salt
18:36 whataboutism joined #salt
18:38 vaelen joined #salt
18:38 saltslackbridge <skatz> is there a good way to log to both syslog and /var/log/salt/minion? The `log_file` minion config option doesn't seem to accept a list.
18:40 linovia gtmanfred: around ?
18:40 saltslackbridge <gtmanfred> it should log to stdout and to /var/log/salt/minion, so if you are using systemd, it will already be in journald. and /var/log/salt/minion
18:41 linovia Is there a way I can help with improving openstack for salt ?
18:42 saltslackbridge <gtmanfred> linovia, yes, once I get it written and in for oxygen, youcan test it and provide feed back
18:42 saltslackbridge <gtmanfred> I will be doing a big push once I get it in, it isn’t in a working state yet because I have other stuff right this second
18:42 saltslackbridge <gtmanfred> but it will be in oxygen
18:43 coredumb gtmanfred: when is oxygen planned ?
18:43 saltslackbridge <gtmanfred> the code freeze is december 11th
18:43 saltslackbridge <gtmanfred> so sometime in q1 of next year
18:44 N-Mi_ joined #salt
18:45 coredumb gtmanfred: OK cool
18:46 linovia ok, I'll find a workaround
18:51 SkyRocknRoll joined #salt
18:52 Kax joined #salt
18:56 linovia would have been a good way to start contributing :)
18:59 pipps joined #salt
18:59 saltslackbridge <gtmanfred> yeah, it is something that I have been trying to get buyin for me to just have time to do.  I am working with the openstack-infra team to get all the openstack stuff cleaned up
19:00 schemanic joined #salt
19:00 saltslackbridge <gtmanfred> once it is implemented, there will be a ton of stuff that can go into it, I am just building the base driver, so that you can build cloud servers with networks and things.
19:01 saltslackbridge <gtmanfred> one of the guys that wrote the openstack execution modules and stuff for ansible is working on states and execution modules for salt as well
19:07 OMS_Dave joined #salt
19:14 threwahway joined #salt
19:19 Church- joined #salt
19:20 johnj_ joined #salt
19:24 xMopxShell left #salt
19:24 toanju joined #salt
19:25 aldevar joined #salt
19:29 linovia gtmanfred: any pointer (mail or blog) that summarize the ongoing efforts ?
19:29 pipps joined #salt
19:32 linovia I was considering plugging something directly on the nova or openstack command line tool which is already written inpython
19:32 linovia so that a configuration that works with the client could also work with salt
19:33 saltslackbridge <gtmanfred> yeah, that is what we tried to do with the nova driver, but they change python-novaclient every 2 months now… so it has gotten broken.
19:33 saltslackbridge <gtmanfred> so I want to move to the shade driver, which should be getting merged into openstacksdk at some point in the future, but they gaurantee backwards compatibility
19:41 xMopxShell joined #salt
19:48 pipps joined #salt
19:50 linovia gtmanfred: wooot, thanks for the feedback
19:51 scamander joined #salt
19:53 scamander joined #salt
19:54 linovia totally makes sense
19:57 scamander joined #salt
20:06 ymasson joined #salt
20:07 Trauma_ joined #salt
20:09 mcqueenorama joined #salt
20:15 threwahway joined #salt
20:21 johnj_ joined #salt
20:22 GMAzrael joined #salt
20:28 pipps joined #salt
20:55 yoda83 joined #salt
20:57 yoda83 is there a way to return how long a command took to execute? i'm trying to compare the execution speed of windows vs ubuntu minions
20:57 yoda83 the ubuntu is noticeably faster by several seconds. i would just like to quantify that amount if possible
20:58 yoda83 in SQL, i can do something like run a GETDATE() function before and after a query runs to get the query time
20:58 yoda83 is something like that available w/ salt execution modules?
21:03 viq yoda83: how are you executing the command?
21:03 viq Because states I believe do tell you how long each state took.
21:04 DarkKnightCZ joined #salt
21:12 csmule How can I run state.apply for multiple servers and only show me the servers that had any failures? :)
21:14 viq "state_output: changes" is not quite what you're looking for?
21:15 viq https://docs.saltstack.com/en/latest/ref/configuration/master.html#state-output-diff
21:16 threwahway joined #salt
21:16 viq and https://docs.saltstack.com/en/latest/ref/configuration/master.html#state-verbose
21:16 viq csmule: ^
21:17 csmule viq[m]: Got it! Thank you.
21:22 johnj_ joined #salt
21:23 mcqueenorama joined #salt
21:24 major joined #salt
21:30 mavhq joined #salt
21:31 theo_ joined #salt
21:45 yoda83 sorry, had a meeting
21:45 yoda83 i'm simply running: sudo salt '*' test.ping
21:45 yoda83 i have an ubuntu minion and a windows minion
21:52 saltslackbridge <whytewolf> you could use the time command and target them seperatly
21:55 bluenemo joined #salt
21:58 pipps joined #salt
21:59 mavhq joined #salt
22:07 colegatron joined #salt
22:16 colegatron joined #salt
22:16 colegatron join #django
22:17 threwahway joined #salt
22:20 cgiroua joined #salt
22:23 johnj_ joined #salt
22:25 vexati0n anyone have any clue why a minion wouldn't be able to connect to a master although i know the master is up, and the minion *can* telnet to the ret port just fine ?
22:27 mauli joined #salt
22:29 vexati0n wow it's like my question answers itself
22:29 vexati0n everyone pretend that never happened
22:43 linovia does the cloud profile filename counts ? Should it be equal to the defined profile ?
22:44 linovia I'm trying to setup salsify but following the tutorial, it complains it can't find the make_salty profile
22:44 saltslackbridge <gtmanfred> the filename just has to end it .conf if it is in the .d directory
22:45 saltslackbridge <gtmanfred> everything else is just personal preference
22:45 saltslackbridge <gtmanfred> same with providers
22:46 linovia providers seems to work as I still get the warning about the openstack one. Not sure why it doesn't find the profile though it's in /etc/salt/cloud.profiles.d/saltify.conf
22:47 saltslackbridge <gtmanfred> can you make a gist of your sanatized profile and provider?
22:48 linovia sure
22:49 masber joined #salt
22:51 linovia https://gist.github.com/xordoquy/a846d88b80b6aefd076da102756e493f (just changed the username and minion ip)
22:54 linovia oh, wait, I get something using log in trace
22:54 saltslackbridge <gtmanfred> provider: saltify
22:54 saltslackbridge <gtmanfred> should be `driver: saltify`
22:55 saltslackbridge <gtmanfred> otherwise that looks fine.
22:55 linovia yup, doc seems to have a typo (https://docs.saltstack.com/en/latest/topics/cloud/saltify.html)
22:55 saltslackbridge <gtmanfred> yeah, we should have fixed all those :S
22:56 saltslackbridge <gtmanfred> i think you will either need to specify a password or key_filename: ‘/etc/salt/mysshkey.pem’
22:56 saltslackbridge <gtmanfred> I am about to go on a walk around the near by park
22:56 linovia indeed, that's what salt-cloud just told me. I'd assumed it'll use the salt key
22:57 linovia gtmanfred: thanks a lot for your help, have a nice walk
23:02 pipps joined #salt
23:04 pipps joined #salt
23:07 mcqueenorama joined #salt
23:10 linovia weird, I now get the minion's key as both accepted and rejected on the master when trying to bootstrap the process
23:11 linovia (salt key that is)
23:14 pipps joined #salt
23:17 Kira joined #salt
23:17 threwahway joined #salt
23:18 skeeved joined #salt
23:24 johnj_ joined #salt
23:29 onlyanegg joined #salt
23:35 GMAzrael joined #salt
23:36 hemebond joined #salt
23:42 GMAzrael joined #salt
23:42 N-Mi joined #salt
23:42 N-Mi joined #salt
23:45 eprice joined #salt
23:47 brianthelion joined #salt
23:49 pipps joined #salt

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