Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-11-09

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

All times shown according to UTC.

Time Nick Message
00:04 eseyman joined #salt
00:17 GMAzrael joined #salt
00:18 hoonetorg joined #salt
00:19 zerocoolback joined #salt
00:21 sh123124213 joined #salt
00:22 threwahway joined #salt
00:24 choke joined #salt
00:50 johnj_ joined #salt
00:59 wongster80 joined #salt
01:06 threwahway joined #salt
01:10 kellyp joined #salt
01:18 onlyanegg joined #salt
01:19 rojem joined #salt
01:34 rathier joined #salt
01:46 GMAzrael joined #salt
01:51 johnj_ joined #salt
02:01 wongster80 joined #salt
02:20 onlyanegg joined #salt
02:21 scbunn_ joined #salt
02:23 ChubYann joined #salt
02:40 GMAzrael joined #salt
02:41 zerocoolback joined #salt
02:56 ilbot3 joined #salt
02:56 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
02:56 shoogz joined #salt
02:56 xMopxShell joined #salt
02:57 ujjain joined #salt
02:57 ujjain joined #salt
02:57 tvinson joined #salt
02:58 ws2k3 joined #salt
02:58 tom[] joined #salt
02:59 darvon joined #salt
02:59 pipps joined #salt
02:59 nomeed joined #salt
02:59 Micromus joined #salt
03:00 cmichel joined #salt
03:02 ntropy joined #salt
03:03 aviau joined #salt
03:04 hoonetorg joined #salt
03:04 Dr_Jazz joined #salt
03:05 MajObviousman joined #salt
03:05 tiwula joined #salt
03:07 vileni joined #salt
03:07 vileni joined #salt
03:09 colegatron joined #salt
03:10 vchauhan joined #salt
03:11 zerocoolback joined #salt
03:11 strobelight_ joined #salt
03:13 strobelight_ joined #salt
03:18 laertus joined #salt
03:18 jcristau joined #salt
03:18 ws2k3 joined #salt
03:19 ujjain joined #salt
03:19 nledez joined #salt
03:20 kshlm joined #salt
03:20 ThomasJ|d joined #salt
03:20 averell joined #salt
03:21 ujjain joined #salt
03:28 KevinAn2757 joined #salt
03:28 lordcirth_work joined #salt
03:29 hoolio joined #salt
03:29 xet7 joined #salt
03:33 vish joined #salt
03:36 onlyanegg joined #salt
03:40 GMAzrael joined #salt
03:43 Sarphram joined #salt
03:48 onlyanegg joined #salt
03:50 laertus i have a rather complicated vim setup that i'd like to sync up to a little server i have running at a VPS provider
03:50 laertus when doing it by hand, i could just rsync it up there, or create a tar file and scp it over
03:50 quantumsummers joined #salt
03:50 laertus but i'm wondering what the salt way of managing something like this would be
03:51 laertus my vim config is in ~/.vimrc and mostly in ~/.vim (containing dozens if not hundreds of files)
03:52 laertus what would be a good way of doing this with salt?
03:56 descrepes_ joined #salt
03:56 johnj_ joined #salt
03:57 major joined #salt
04:00 nledez joined #salt
04:01 nomeed joined #salt
04:02 SkyRocknRoll joined #salt
04:08 threwahway joined #salt
04:10 macheck [Daniel Wallace, SaltStack Community] Store it all in git so you can push it to a git rwmore
04:10 macheck [Daniel Wallace, SaltStack Community] Remote
04:11 macheck [Daniel Wallace, SaltStack Community] And then use a github webhook to pull it down on the server using git.latest
04:11 macheck [Daniel Wallace, SaltStack Community] https://blog.gtmanfred.com/masterless-reactor.html
04:13 kellyp joined #salt
04:15 mavhq joined #salt
04:26 scbunn joined #salt
04:32 laertus thank you, i'll look in to that
04:36 vchauhan joined #salt
04:38 macheck [Daniel Wallace, SaltStack Community] Also, If most of those files are from plugin you could use the bundle stuff for vim, of some thing like pathogen to handle those the first time vim is started
04:42 laertus i do use pathogen, but only pathogen
04:42 laertus i don't like to use package managers, so install everything by hand
04:45 GMAzrael joined #salt
04:45 zerocoolback joined #salt
04:46 mavhq joined #salt
04:48 MTecknology laertus: except for special cases, I try to avoid managing user data via config management.
04:49 MTecknology At home, I have a special salt master for it, but I'd never want to see that deployed into any real env
04:54 johnj_ joined #salt
04:55 laertus yeah, ideally servers wouldn't have any user data on them at all
04:56 MTecknology ^ +1
04:56 laertus and would be completely constructed from scratch and disposed of when not working
04:56 MTecknology ^ +1
04:56 laertus however... i do need to ssh in to troubleshoot my own servers from time to time
04:56 laertus and also while i'm still learning salt and don't have an immutable architecture set up yet
04:56 MTecknology but do you really need a whole butt load of vim magic or is vim and a .vimrc file enough magic?
04:57 laertus eventually, maybe i won't need to do this for any remote servers.. but i'm not there yet
04:57 laertus well, it just makes life more convenient
04:57 laertus yeah, i could and often do use plain vanilla vi
04:57 laertus but that really sucks
04:57 MTecknology this might make more sense in #salt-offtopic
04:59 sp0097 joined #salt
05:00 gmacon joined #salt
05:05 laertus here's an on-topic question...
05:06 laertus why is ansible so much more popular than salt, and what's the future of salt look like compared to ansible?
05:10 SkyRocknRoll joined #salt
05:12 threwahway joined #salt
05:17 laertus it's a question that i've thought about a lot lately
05:18 laertus ansible seems simpler, while salt seems to be more powerful and lets you do more
05:18 laertus it seems a lot of people have been choosing simplicity over power
05:19 laertus i've put in a good deal of time in to learning, trying, and testing salt over the last month or so.. but then i kept running in to mentions of ansible all over the place, and there seem to be way more users of it
05:21 laertus things move so fast in this field.. maybe everyone will start moving over to salt soon.. i don't know
05:29 coredumb yeah ppl start for simplicity
05:29 coredumb and name and support
05:30 coredumb most enterprise are already using RedHat
05:30 coredumb that's natural for them to go with the officially supported cfg mgmt tool
05:31 laertus oh, i didn't know it was redhat's officially supported cfg mgmt tool
05:31 laertus that makes more sense now
05:31 laertus does salt have official support from any major distros?
05:32 coredumb Well Suse is using it ... I don't know how it's backing it though
05:32 coredumb if it even is
05:33 coredumb laertus: well since RH bought Ansible they're going full on promotion about it
05:33 laertus wow, i didn't know redhat bought ansible either
05:33 laertus i'm totally out of the loop
05:34 laertus now, sadly, it's all making sense
05:37 ahrs joined #salt
05:38 zerocoolback joined #salt
05:39 GMAzrael joined #salt
05:40 Processus42 joined #salt
05:41 MTecknology laertus: most "devops" people tend to focus on whatever is easiest up front and completely ignore long-term maintainability.
05:42 MTecknology "oh, shiny thing to do my work for me? All I have to do is not ever think about security or updates and it works? Great!"
05:43 laertus well... for me it's a bit different
05:43 laertus i need to start looking for work kind of soon.. and i also need to learn some new skills
05:44 laertus i used to use puppet at my last job, and really was not a fan
05:44 laertus recently i've learned and liked python, and heard salt used python, so thought this would be a good fit
05:44 laertus not to mention all the power that salt has that i need not tell anyone here about
05:45 laertus so i started learning it.. but then started running more and more in to mentions of ansible.. and was kind of disconcerted by not much recent mention of salt on the web
05:45 MTecknology this actually doesn't seem at all on-topic...
05:45 laertus so then i learned that ansible used python too.. (somehow i was under the impression that it was all yaml)
05:45 laertus well, salt vs ansible comparison.. but yeah, i hear you
05:45 laertus i'll stop
05:46 MTecknology salt vs. ansible is not on-topic for here
05:46 justanotheruser joined #salt
05:54 justanotheruser joined #salt
05:55 johnj_ joined #salt
06:06 freelock joined #salt
06:06 psychi[m] joined #salt
06:06 sxar joined #salt
06:06 hackel joined #salt
06:06 kbaikov[m] joined #salt
06:06 theblazehen joined #salt
06:06 jerrykan[m] joined #salt
06:06 benjiale[m] joined #salt
06:06 gomerus[m] joined #salt
06:06 viq[m] joined #salt
06:06 toofoo[m] joined #salt
06:06 aboe[m] joined #salt
06:06 ThomasJ|m joined #salt
06:06 rtr63gdh[m] joined #salt
06:06 renaissancedev[m joined #salt
06:06 fujexo[m] joined #salt
06:09 mechleg1 joined #salt
06:10 ccha2 joined #salt
06:12 shadoxx_ joined #salt
06:12 zulutango joined #salt
06:13 wryfi_ joined #salt
06:13 elektrix_ joined #salt
06:14 bildz_ joined #salt
06:14 StarHeart joined #salt
06:14 Valfor_ joined #salt
06:15 drags joined #salt
06:15 Sarphra joined #salt
06:15 Whissi joined #salt
06:15 jacksontj joined #salt
06:15 nielsk joined #salt
06:15 scooby2 joined #salt
06:15 irated joined #salt
06:16 Reverend joined #salt
06:16 ponyofdeath joined #salt
06:17 Eugene joined #salt
06:17 basepi joined #salt
06:18 dober joined #salt
06:18 dober joined #salt
06:18 Vaelatern joined #salt
06:19 systeem- joined #salt
06:19 doglike joined #salt
06:19 doglike joined #salt
06:20 nledez joined #salt
06:20 mishanti1 joined #salt
06:21 evle2 joined #salt
06:21 jerichowasahoax` joined #salt
06:22 swills joined #salt
06:22 swills joined #salt
06:23 k1412 joined #salt
06:23 darkalia joined #salt
06:27 jas02 joined #salt
06:28 nledez joined #salt
06:28 dober joined #salt
06:28 dober joined #salt
06:29 SkyRocknRoll joined #salt
06:30 xet7 joined #salt
06:31 rtr63gdh[m] joined #salt
06:32 sxar joined #salt
06:32 freelock joined #salt
06:32 psychi[m] joined #salt
06:34 zerocoolback joined #salt
06:34 zerocoolback joined #salt
06:35 zerocoolback joined #salt
06:37 jas02 joined #salt
06:41 DarkKnightCZ joined #salt
06:45 mavhq joined #salt
06:45 GMAzrael joined #salt
06:45 jas02 joined #salt
06:46 zerocoolback joined #salt
06:47 mechleg1 left #salt
06:51 beardedeagle joined #salt
06:55 Diaoul joined #salt
06:56 johnj_ joined #salt
07:02 jas02 joined #salt
07:04 Dr_Jazz i actually use both - but for different things. or rather I use ansible to bootstrap salt minions. But i prefer working with salt.
07:05 hoonetorg joined #salt
07:05 jas02 joined #salt
07:07 DarkKnightCZ joined #salt
07:17 ilbot3 joined #salt
07:17 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
07:17 jas02 joined #salt
07:26 do3meli joined #salt
07:26 do3meli left #salt
07:27 jas02 joined #salt
07:30 Praematura joined #salt
07:34 jas02 joined #salt
07:34 tom[] joined #salt
07:38 jas02 joined #salt
07:41 eMBee joined #salt
07:42 eMBee good afternoon
07:42 macheck left #salt
07:42 macheck joined #salt
07:43 eMBee i have a small problem bootstrapping salt on an lxc container. i am using lxc bootstrap, but the problem is that the new container can't resolve the master.
07:43 macheck left #salt
07:43 macheck joined #salt
07:44 jas02 joined #salt
07:44 GMAzrael joined #salt
07:47 eMBee i am managing an internal hosts file via /etc/hosts, but obviously i can't install that inoto the new container yet
07:47 macheck left #salt
07:47 jas02 joined #salt
07:47 macheck joined #salt
07:47 eMBee because salt is not yet running
07:47 macheck left #salt
07:47 macheck joined #salt
07:48 eMBee i could copy a raw /etc/hosts file using copy_to though
07:48 macheck left #salt
07:48 macheck joined #salt
07:48 Micromus joined #salt
07:48 eMBee other alternatives are: add the salt-master to dns. that would create a public dns entry for an internal ip address
07:48 macheck left #salt
07:49 Dr_Jazz internal dns zone?
07:49 macheck joined #salt
07:49 eMBee i would have to set up a local dns server for that. currently dns is completely external
07:49 macheck left #salt
07:49 macheck joined #salt
07:49 jas02 joined #salt
07:50 eMBee i could also specify the ip address as master
07:50 macheck left #salt
07:50 macheck joined #salt
07:50 Dr_Jazz Yeah taht works
07:50 Dr_Jazz i
07:50 eMBee in the lxc.bootstrap argument
07:50 macheck left #salt
07:50 Dr_Jazz do that for one installation (use the ip)
07:50 macheck joined #salt
07:50 eMBee but then the config is stuck with a hardcoded ip
07:50 macheck left #salt
07:51 macheck joined #salt
07:51 Dr_Jazz well no, the salt-minion can manage it self. so one a highstate it can update and restart the salt-minion
07:52 eMBee how does the ip address in the config get replaced?
07:52 macheck left #salt
07:53 macheck joined #salt
07:53 Dr_Jazz i have my master configured in /etc/salt/minion.d/master.conf and that file is managed by salt if I need to change it
07:53 Dr_Jazz so it also ensure the saltmaster is the right one
07:54 eMBee ah, ok
07:54 macheck left #salt
07:54 macheck joined #salt
07:54 eMBee is there a specific state used for that?
07:54 macheck left #salt
07:54 macheck joined #salt
07:54 Ricardo1000 joined #salt
07:56 Manor joined #salt
07:57 Dr_Jazz nope i just have a salt state with a file.mananged for the salt-master, and if it's trigger i create an at job to restart the salt-minion in 5 minutes to allow for the highstate to complete
07:57 johnj joined #salt
07:58 yuhl joined #salt
07:59 eMBee ok, that seems like a workable option
07:59 macheck left #salt
07:59 eMBee thanks
08:00 macheck joined #salt
08:01 antpa joined #salt
08:02 MTecknology perhaps relevant: https://gist.github.com/MTecknology/66ce7c7f148fc9da936bcf26cc572cd7
08:04 coredumb yesterday I've ported my base formula very much RHEL centric to be compatible with FreeBSD and I must say it's been flawless
08:04 coredumb I know why I love Salt
08:05 EthPyth joined #salt
08:09 eMBee MTecknology: that's a different bootstrap script?
08:10 macheck left #salt
08:10 macheck joined #salt
08:10 impi joined #salt
08:10 MTecknology eMBee: that's mine
08:11 eMBee ok. how do you call that?
08:11 macheck left #salt
08:11 macheck joined #salt
08:11 MTecknology It's passed as the bootstrap option to salt cloud
08:12 MTecknology bed time here! g'night!
08:17 Manor_ joined #salt
08:18 threwahway joined #salt
08:20 pualj joined #salt
08:23 Hybrid joined #salt
08:24 eMBee Dr_Jazz: how do you specify the ip address to lxc.bootstrap? i can't find any example
08:24 macheck left #salt
08:25 macheck joined #salt
08:28 zerocoolback joined #salt
08:42 GMAzrael joined #salt
08:43 jrenner joined #salt
08:43 zerocoolback joined #salt
08:45 obitech joined #salt
08:58 johnj joined #salt
08:59 pbandark joined #salt
09:03 yuhl_ joined #salt
09:03 _KaszpiR_ joined #salt
09:07 Manor joined #salt
09:07 kellyp joined #salt
09:08 stooj joined #salt
09:14 dhwt joined #salt
09:19 Naresh joined #salt
09:21 CrummyGummy joined #salt
09:22 Praematura joined #salt
09:25 Hybrid joined #salt
09:25 mikecmpbll joined #salt
09:28 obitech__ joined #salt
09:28 EthPyth_ joined #salt
09:31 WildPikachu joined #salt
09:31 Mattch joined #salt
09:31 jesk joined #salt
09:31 chamunks joined #salt
09:31 jerichowasahoax joined #salt
09:32 haam3r_ Morning! Anybody know how I can reference the salt master in an orchestrate state tgt parameter other than by id? Is there maybe some kinda built in variable?
09:33 daks joined #salt
09:33 sybix joined #salt
09:33 Sacro joined #salt
09:35 mr_kyd joined #salt
09:36 ws2k3 joined #salt
09:36 Akkarin joined #salt
09:36 philpep joined #salt
09:37 ws2k3 joined #salt
09:37 dober joined #salt
09:37 dober joined #salt
09:38 ws2k3 joined #salt
09:39 ws2k3 joined #salt
09:39 ws2k3 joined #salt
09:39 ws2k3 joined #salt
09:40 Miouge joined #salt
09:40 ws2k3 joined #salt
09:41 GMAzrael joined #salt
09:45 FreeSpencer joined #salt
09:45 FreeSpencer joined #salt
09:45 JPT joined #salt
09:49 zerocoolback joined #salt
09:50 zerocoolback joined #salt
09:51 zerocoolback joined #salt
09:59 johnj joined #salt
10:03 mikecmpbll joined #salt
10:03 upb joined #salt
10:06 jas02 joined #salt
10:18 mk-fg joined #salt
10:18 mk-fg joined #salt
10:24 threwahway joined #salt
10:29 jas02 joined #salt
10:29 yuhl joined #salt
10:30 Manor joined #salt
10:38 Manor_ joined #salt
10:38 zer0def joined #salt
10:40 Drunk_admin joined #salt
10:40 felskrone joined #salt
10:40 robman joined #salt
10:41 jas02 joined #salt
10:41 GMAzrael joined #salt
10:41 evle2 joined #salt
10:50 Yamakaja joined #salt
11:02 N-Mi joined #salt
11:03 johnj joined #salt
11:04 Manor joined #salt
11:10 mikecmpbll joined #salt
11:13 jas02 joined #salt
11:17 jas02 joined #salt
11:23 jas02 joined #salt
11:28 jas02 joined #salt
11:30 colegatron joined #salt
11:32 jas02 joined #salt
11:40 jas02 joined #salt
11:42 GMAzrael joined #salt
11:45 Manor joined #salt
11:47 Manor joined #salt
11:49 mikecmpb_ joined #salt
11:52 jas02 joined #salt
11:57 jas02 joined #salt
12:01 Sammichmaker joined #salt
12:01 Sammichmaker joined #salt
12:04 johnj joined #salt
12:07 onlyanegg joined #salt
12:17 jas02 joined #salt
12:23 Valfor joined #salt
12:23 Valfor joined #salt
12:25 jas02 joined #salt
12:29 jas02 joined #salt
12:38 zerocoolback joined #salt
12:42 al joined #salt
12:44 GMAzrael joined #salt
12:45 jas02 joined #salt
12:46 alvinstarr joined #salt
12:57 strobelight joined #salt
13:03 jacekplacek joined #salt
13:05 johnj joined #salt
13:05 cyteen joined #salt
13:07 Manor joined #salt
13:07 kellyp joined #salt
13:11 Nahual joined #salt
13:11 jas02 joined #salt
13:21 SlicerDicer joined #salt
13:21 SlicerDicer joined #salt
13:32 evle1 joined #salt
13:36 ExtraCrispy joined #salt
13:48 GMAzrael joined #salt
13:50 g3cko joined #salt
14:01 vchauhan joined #salt
14:02 GMAzrael joined #salt
14:06 johnj joined #salt
14:07 godlike joined #salt
14:07 godlike joined #salt
14:10 Hybrid joined #salt
14:12 Sarphram joined #salt
14:36 pualj joined #salt
14:44 ooboyle MTecknology: RE your question from 17:31 ET yesterday: No, the service has been restarted.
14:51 Brew joined #salt
14:53 gh34 joined #salt
14:58 magnus1 joined #salt
15:02 skatz_ joined #salt
15:06 cgiroua joined #salt
15:07 johnj joined #salt
15:11 dxiri joined #salt
15:18 XenophonF just finished using SaltStack to deploy 50 EC2 instances for a class I'm teaching today
15:18 XenophonF freaking awesome
15:18 aldevar joined #salt
15:18 XenophonF all Windows servers, too
15:19 pokEarl joined #salt
15:21 racooper joined #salt
15:26 usernkey joined #salt
15:26 numkem joined #salt
15:41 wonko21 joined #salt
15:43 skatz__ joined #salt
15:55 ouemt joined #salt
16:02 mikecmpbll joined #salt
16:08 johnj joined #salt
16:17 mikecmpbll joined #salt
16:19 tiwula joined #salt
16:20 onlyanegg joined #salt
16:21 socket- joined #salt
16:29 sp0097 joined #salt
16:29 heaje joined #salt
16:30 wonko21 joined #salt
16:31 yuhl joined #salt
16:31 SkyRocknRoll joined #salt
16:32 m4rk0 joined #salt
16:32 m4rk0 Hello
16:37 m4rk0 Please tell me is it possible to control (create/delete/modify) salt cloud.profiles via salt-api?
16:41 SkyRocknRoll_ joined #salt
16:41 Sarphram joined #salt
16:48 MTecknology haam3r_: with a runner?
16:49 _JZ_ joined #salt
16:50 macheck [Daniel Wallace, SaltStack Community] I do not believe that the cloud client is exposed via the api, but the cloud.profile runner and execution module is, so take your pick
16:55 pipps joined #salt
16:57 donmichelangelo joined #salt
17:00 m4rk0 macheck, okay
17:02 MTecknology I'd suggest keeping salt cloud stuff in a db that you can easily manipulate. Then you can rebuild that local data before making salt-cloud do things.
17:03 MTecknology and at some point, just leave it all in pillar
17:03 MTecknology db->pillar
17:05 choke joined #salt
17:06 m4rk0 Hmmm didn't know for combination db+salt :D
17:07 MTecknology It's pretty easy to build an ext_pillar to make that kinda thing happen, I'll grab an unfinished example (eventually)
17:07 kellyp joined #salt
17:08 m4rk0 Do You have any example?
17:08 MTecknology ...
17:09 johnj joined #salt
17:10 m4rk0 lol sry hahah
17:12 MTecknology https://github.com/MTecknology/saltstack-demo/tree/master/pillar/cloud
17:12 pipps joined #salt
17:13 m4rk0 MTecknology, thanks mate!
17:13 MTecknology only actually works for DigitalOcean...
17:14 m4rk0 alright
17:14 aldevar left #salt
17:19 MTecknology ftr- proxmox doesn't work because the module needs a massive rewrite and aws doesn't work because I haven't bothered to dick with it at all yet.
17:20 MTecknology anyone should be able to make that same thing work pretty easily with aws since the module seems to have been through a lot of real-world use
17:28 Lionel_Debroux joined #salt
17:30 pcgod joined #salt
17:33 usernkey1 joined #salt
17:34 fatal_exception joined #salt
17:43 astronouth7303 what's the command to get a minion to attempt to render a template?
17:48 zerocoolback joined #salt
17:48 macheck [Daniel Wallace, SaltStack Community] yes slsutil.renderer
17:48 macheck [Daniel Wallace, SaltStack Community] or cp.get_template
17:49 MTecknology macheck: could you replace "[Daniel Wallace, SaltStack Community]" with something a bit less massive? Perhaps "[gtmanfred]"?
17:49 macheck [Daniel Wallace, SaltStack Community] http://sameroom.io does not have options to configure that
17:50 astronouth7303 i'll try those, `state.template_str` appears to be broken
17:50 MTecknology yet another reason crud like slack needs to die...
17:50 impi joined #salt
17:52 macheck [Daniel Wallace, SaltStack Community] There is a bot that can be used to connect the two, that does what you want, but I don’t want to host it
17:52 macheck [Daniel Wallace, SaltStack Community] mostly i haven’t had time to get to it
17:52 MTecknology there are lots of integration options. As far as I can tell, they're all pretty terrible.
17:53 macheck [Daniel Wallace, SaltStack Community] https://github.com/ekmartin/slack-irc
17:53 macheck [Daniel Wallace, SaltStack Community] that one isn’t bad
17:53 astronouth7303 MTecknology: there's a significant impedence mismatch between slack and irc. it happens.
17:53 astronouth7303 +1 the giant boilerplate being ugly and obnoxious, though.
17:53 mikecmpbll joined #salt
18:00 dxiri_ joined #salt
18:04 macheck [Daniel Wallace, SaltStack Community] once i have the internal cloud centos image fixed, i will move to that slack-irc bridge
18:08 Praematura joined #salt
18:09 pipps joined #salt
18:10 johnj_ joined #salt
18:12 astronouth7303 [2016.11] so i have a minion that can't render a template due to failing salt execution call. But when I have it call the function manually, it works fine.
18:13 astronouth7303 and when i have it render the template through the debug methods, it renders fine
18:14 MTecknology maybe you should just always run in debug? :P
18:14 MTecknology what's the error that you get?
18:14 astronouth7303 Rendering SLS 'base:bm.nginx' failed: Jinja variable 'str object' has no attribute 'hsum'
18:14 macheck left #salt
18:15 astronouth7303 Pertinent except https://www.irccloud.com/pastebin/zqMet6hU/nginx.sls
18:15 MTecknology javascript required to display, eh?
18:20 CampusD joined #salt
18:21 astronouth7303 so when i do `salt myminion cp.hash_file 'salt://lfs/env/ember.tar.xz'` i get an expected dictionary back
18:22 astronouth7303 when i hand slsutil.renderer a string, i get the compiled state i would expect
18:23 astronouth7303 but when i do `state.apply bm.nginx`, it fails
18:23 saltslackbridge joined #salt
18:23 gtmanfred test
18:23 MTecknology success
18:23 gtmanfred no
18:23 astronouth7303 oh, nvm, someone else changed the file and hasn't actually done the matching deploy
18:23 gtmanfred it isn't sending it to the internal one, or here
18:24 saltslackbridge <daniel> test
18:24 saltslackbridge <daniel> better?
18:24 whytewolf test
18:24 astronouth7303 yes, much nicer
18:24 saltslackbridge <tphipps> :+1:
18:24 saltslackbridge <daniel> hrm
18:25 saltslackbridge <daniel> i don’t know why it isn’t using my display name…
18:28 saltslackbridge <daniel> meh, whatever, lemme make a systemd unit for it real quick
18:29 saltslackbridge joined #salt
18:30 user-and-abuser joined #salt
18:30 saltslackbridge <whytewolf> is it really using slack username?
18:30 saltslackbridge <daniel> it is not
18:30 saltslackbridge <whytewolf> it is…
18:30 saltslackbridge <daniel> the username from your email?
18:31 saltslackbridge <whytewolf> the username from the bottom of the account page
18:31 saltslackbridge <daniel> ahh
18:31 saltslackbridge <gtmanfred> whatever, fixed
18:31 gtmanfred perfect
18:31 * MTecknology cheers
18:32 MTecknology gonna set that up for -cloud too? :D
18:32 gtmanfred no, all that stuff is staying in slack
18:32 gtmanfred this is in a seperate #irc channel on slack
18:33 MTecknology awe...
18:33 pipps joined #salt
18:33 MTecknology so much conversation I'm gonna miss out on. :(
18:35 saltslackbridge <gtmanfred> <3
18:36 saltslackbridge <gtmanfred> you will also enjoy the fact that I am in the process of switching to vscode instead of vim
18:39 MTecknology slack... what a worthless pile of garbage
18:39 * MTecknology grumbles
18:39 * eseyman gets off MTecknology's lawn
18:39 saltslackbridge <gtmanfred> ping me please, checking my setup on my new phone
18:40 MTecknology sure.. I wanna have have one tab open per community in firefox, it's totally not a bloated and slow web app and I'm totally excited to clutter things up! :D
18:40 saltslackbridge <gtmanfred> check out weechat-slack, it is pretty slick
18:40 MTecknology gtmanfred: No!
18:40 whytewolf do you know how many times i have switched from vim to <insert ide here>, I always come back. even when <insert IDE here> has everything i like about vim and more.
18:40 saltslackbridge <gtmanfred> perfect, thanks
18:41 saltslackbridge <gtmanfred> vscode has a ftp-simple plugin that allows opening remote directories as workspaces on my local vscode.
18:41 saltslackbridge <gtmanfred> i used to use a bad one in atom, and that was the reason I switched back
18:41 MTecknology I think dreamweaver also had that feature. :P
18:41 MTecknology has*
18:41 saltslackbridge <gtmanfred> I have already opened vi in a terminal inside of vscode on a remote server though
18:41 saltslackbridge <gtmanfred> so we will see how long this lasts
18:42 saltslackbridge <gtmanfred> https://github.com/wee-slack/wee-slack
18:42 whytewolf http://vim.wikia.com/wiki/Editing_remote_files_via_scp_in_vim
18:42 sjorge joined #salt
18:42 saltslackbridge <gtmanfred> yes, i use that all the time with vim
18:42 saltslackbridge <gtmanfred> it even works with nerdtree
18:42 saltslackbridge <gtmanfred> but i have never found a similar plugin in an ide that works nearly as well, but this one is really nice
18:43 saltslackbridge <gtmanfred> also, the git integration is really really good
18:44 MTecknology vscode seems kinda interesting
18:44 saltslackbridge <gtmanfred> it is better than atom
18:44 saltslackbridge <gtmanfred> and about 100x faster than pycharm
18:44 saltslackbridge <gtmanfred> you don’t have popups about paying for anything like sublime text
18:44 saltslackbridge <gtmanfred> i like it
18:45 MTecknology is it faster than vim?
18:45 whytewolf hell only thing faster then vim is default vim
18:45 MTecknology lol
18:46 saltslackbridge <gtmanfred> it isn’t that much slower than my vim, since i use too many plugins
18:47 MTecknology The only plugin I use is sls.vim
18:48 saltslackbridge <gtmanfred> i don’t know that i notice a difference in the speed actually.  i just turned off a bunch of plugins, and it seems about as fast
18:49 * MTecknology http://dpaste.com/341BNEE
18:55 nixjdm joined #salt
18:55 MTecknology vscode kinda reminds me of visual studio, and I remember being sad when I left all that magic behind. If I weren't so addicted to vim, I'd give it a try.
18:56 saltslackbridge <gtmanfred> that is what it is
18:56 saltslackbridge <gtmanfred> it is visualstudio for linux/mac
18:57 Ch3LL joined #salt
18:59 MTecknology I'm actually kinda interested in giving it a try. Can it be driven without a mouse?
19:00 saltslackbridge <gtmanfred> yeah
19:00 saltslackbridge <gtmanfred> and it is configured by json in a settings.json file
19:00 tom[] can you recommend a skeleton or example execution module that i can use as a guide? i have a custom command line utility and i'd rather use an execution module than cmd.run
19:00 saltslackbridge <gtmanfred> tom[]: https://blog.gtmanfred.com/contributing-to-salt-part-1.html
19:00 saltslackbridge <gtmanfred> examples in there
19:01 hammer065 joined #salt
19:01 tom[] neat. thanks gtmanfred
19:02 DammitJim joined #salt
19:04 astronouth7303 tom[]: Here's one I wrote. I think you can only technically get smaller than that. https://www.irccloud.com/pastebin/ZmkC0MoP/sd.py
19:05 tom[] tnx astronouth7303
19:08 pipps joined #salt
19:11 tom[] neither example specifies __outputter__ . is it unimportant?
19:11 mechleg joined #salt
19:11 johnj_ joined #salt
19:12 saltslackbridge <gtmanfred> you should not need to touch outputter
19:12 saltslackbridge <gtmanfred> just let it be nested by default
19:12 DammitJim do you guys know if there is a vim plugin to deal with pillar and defining states?
19:12 saltslackbridge <gtmanfred> the only time it needs to be touched is if you are spitting out highstate data
19:13 DammitJim like folding and autocomplete for states
19:13 saltslackbridge <gtmanfred> DammitJim: https://github.com/saltstack/salt-vim
19:14 * whytewolf really likes salt-vim esp. when the jinja.vim from jinja2 is installed
19:15 tom[] ok. my module now down to 10 lines from 16
19:17 MTecknology less is not always better :)
19:17 woodtablet joined #salt
19:17 tom[] that's true
19:18 DammitJim whytewolf, does this plugin also do autocomplete?
19:18 DammitJim like suggest you options fro file.manage...
19:18 MTecknology does vim support auto-complete?
19:18 N-Mi joined #salt
19:18 N-Mi joined #salt
19:18 woodtablet whytewolf, you werent always an admin right ? congrats btw ! =D
19:18 DammitJim plugins do
19:18 whytewolf DammitJim: no, it doens't do autocompleate.
19:19 whytewolf MTecknology: yes with some plugins.
19:19 DammitJim thanks whytewolf
19:19 whytewolf woodtablet: well I was hired by salt, ops comes with the job :P
19:19 woodtablet ?!!
19:19 woodtablet !!!
19:19 DammitJim do you know what the default key combo is for folding?
19:19 woodtablet wait ? you get to use salt at home and work now ? congrats!
19:20 woodtablet did you move from Vegas to Utah or something ?
19:20 whytewolf nope, i still live in vegas.
19:20 whytewolf DammitJim: http://vim.wikia.com/wiki/Folding
19:20 * woodtablet happy for whytewolf
19:21 Manor joined #salt
19:21 DammitJim hhmmmm... maybe my plugin is not loaded?
19:21 DammitJim how do I know salt-vim is loaded?
19:22 MTecknology start writing a .sls file and it'll be apparent by line 2
19:23 DammitJim 1 thing I'm noticing is that it did the 2 space automatically after typing: hi: <Enter>
19:23 MTecknology there ya go :)
19:23 DammitJim so, can I fold hi: ?
19:23 DammitJim or is that not possible?
19:24 MTecknology vim lets you fold anything it identifies as fold-able
19:24 DammitJim zc says: No fold found
19:24 DammitJim that's where I'm confused about the salt-vim plugin... what does it consider foldable?
19:24 MTecknology VIM*
19:24 whytewolf depends on your folding settings
19:25 whytewolf what is your foldmethod?
19:25 whytewolf salt-vim is a syntax plugin
19:25 whytewolf you can use zf to fold at location
19:26 DammitJim whytewolf, is this the foldmethod in my .vimrc?
19:26 DammitJim or something defined in salt-vim?
19:26 whytewolf i wouldn't use a plugin that defines foldmethod
19:26 DammitJim oh ok, so this is not part of salt vim, thanks
19:27 DammitJim I just need to define my foldmethod in my vimrc
19:28 ecdhe has anyone tried to execute gsettings/dconf from salt on an ubuntu desktop minion?
19:28 ecdhe I can change desktop wallpaper, etc, for a user who is logged in, but the changes don't take effect, or dconf fails, when the users isn't present.
19:28 ecdhe *presently logged in
19:29 DammitJim whytewolf, there is a foldmethod defined in salt-vim
19:30 whytewolf oh, they set it to indent. i missed that.
19:30 whytewolf with a level of 20
19:30 DammitJim I'm trying to understand what that means
19:30 MTecknology level of 20?
19:30 MTecknology mine is 6
19:31 whytewolf they don't want folding. so to autofold it has to be 20 indents in
19:31 DammitJim lol
19:31 pualj joined #salt
19:33 whytewolf "The foldlevel is computed from the indent of the line, divided by the
19:33 whytewolf 'shiftwidth' (rounded down)"
19:33 aldevar joined #salt
19:33 whytewolf see :help fold-indent
19:38 brd is it possible to get IPv4 and IPv6 from something like this? {% for server, addrs in salt['mine.get']('roles:web', 'network.ip_addrs') }}
19:40 brd I am trying to loop over all machines and get both IPs out of them
19:40 brd but since Jinja can't nest, I can't figure out how to get another
19:41 brd s/another/the other/
19:42 astronouth7303 brd: that's about what i do. Make sure you've configured the mine on the minions, though
19:42 brd astronouth7303: but how do you do it?
19:43 astronouth7303 do what?
19:43 brd astronouth7303: get the second IP?
19:44 DammitJim whytewolf, so did you override the foldlevel in salt-vim?
19:44 astronouth7303 ... hm. the network module doesn't give an easy way to do it.
19:44 astronouth7303 and i don't think you can combine results on the mine side...
19:44 brd astronouth7303: yeah
19:45 whytewolf DammitJim: I never noticed because i don't fold my states :P
19:45 pualj_ joined #salt
19:45 MTecknology I wonder how old my copy of the salt-vim stuff is.
19:45 astronouth7303 brd: you might have to mine the grains? or write a custom execution module to combine the two mine values
19:46 DammitJim LOL, then I must be doing it wrong
19:46 DammitJim I won't try to fold them
19:46 DammitJim :)
19:46 whytewolf DammitJim: my vim dotfiles for you to browse. https://github.com/whytewolf/dotfiles/tree/master/vim
19:46 DammitJim I do wish there was some kind of autocomplete for salt states
19:46 MTecknology Looks like I created that file 05 Jul 2016
19:46 DammitJim user.present, file.managed, etc
19:47 DammitJim whytewolf, 2008!!! .vimrc
19:47 astronouth7303 (i did a bunch of work and i have salt autocomplete in my shell, but unfortunately it's almost certainly not applicable for many other setups)
19:48 whytewolf 2008?
19:48 astronouth7303 brd: thankfully, it's not hard, just poorly documented.
19:49 brd astronouth7303: yeah :/
19:49 brd astronouth7303: I keep submitting doc pull requests when I figure something out
19:49 ChubYann joined #salt
19:50 DammitJim whytewolf, your last change documented on your .vimrc
19:50 DammitJim just teasing you... I rarely put that info on the file itself, but in git
19:51 colegatron joined #salt
19:52 whytewolf not sure where you are getting 2008 from
19:52 whytewolf last git change was 5 days ago. and there is no comment that mentions 2008
19:54 DammitJim +"     2008 May 9:     Added support for Jinja2 changes (new keyword rules)
19:54 DammitJim a comment INSIDE your .vimrc
19:55 whytewolf ?
19:55 whytewolf not mine
19:55 whytewolf ohhhhh.
19:55 DammitJim weird
19:55 whytewolf you are talking about jinja.vim
19:55 DammitJim LOL... I am just messing with you whytewolf
19:55 DammitJim oh yeah, sorry... I don't know why the link says: .vimrc
19:57 whytewolf jinja.vim was takin from here https://github.com/pallets/jinja/tree/master/ext/Vim because there is no easilly accessable place vundale can grab it
20:02 DammitJim (thumbsup)
20:13 johnj_ joined #salt
20:33 sh123124213 joined #salt
20:33 onlyanegg joined #salt
20:34 jeffspeff joined #salt
20:41 haam3r_ MTecknology: Quite a bit later now but, yeah in file.mkdir this thing: https://gist.github.com/haam3r/a90fd1288d58d7c5f4a348189252fcbf
20:43 icebal joined #salt
20:49 MTecknology %fs balance
20:49 MTecknology (wrong channel)
20:50 * astronouth7303 ponders irc -> salt
20:52 haam3r_ and what's all this talk about a slack channel?
20:53 astronouth7303 slack -> salt wouldn't be bad either
20:54 MTecknology slack -> /dev/null would be even better
20:54 onlyanegg joined #salt
20:54 haam3r_ MTecknology: Sensing a bit of resentment there :D
20:55 pualj_ joined #salt
20:55 cyteen joined #salt
20:59 numkem joined #salt
20:59 astronouth7303 or curmudgeonly
21:00 MTecknology or I just find it criminally inefficient and painful
21:01 cyborg-one joined #salt
21:02 N-Mi joined #salt
21:02 N-Mi joined #salt
21:02 SkankinPickles joined #salt
21:02 haam3r_ how so?
21:03 MTecknology that rant isn't appropriate for this channel
21:03 haam3r_ ack
21:03 MTecknology (also... I already mini-ranted about it, today, in this channel)
21:04 saltslackbridge <gtmanfred> #salt-offtopic is much more approporiate
21:04 pualj joined #salt
21:06 haam3r_ MTecknology: found it
21:06 haam3r_ gtmanfred: that it is
21:10 SkankinPickles km
21:13 jas02 joined #salt
21:14 johnj_ joined #salt
21:16 snc joined #salt
21:31 pipps joined #salt
21:34 Deliant joined #salt
21:40 laertus joined #salt
21:42 N-Mi joined #salt
21:42 N-Mi joined #salt
21:51 Kax joined #salt
21:58 Praematura joined #salt
21:59 onlyanegg joined #salt
22:01 rewbycraft joined #salt
22:15 johnj_ joined #salt
22:27 _KaszpiR_ joined #salt
22:45 joe_n joined #salt
23:10 csmule joined #salt
23:14 csmule Is there a way to force the salt master to always require saltenv?
23:16 johnj_ joined #salt
23:17 Praematura joined #salt
23:18 dxiri joined #salt
23:21 MTecknology that depends on what you mean by environment, but that's probably already required.
23:23 jgelens joined #salt
23:25 csmule I think I got what I wanted.  I want the master to not select any state files unless the minion is in an environment that I have defined in my top.sls file. I used the "same" merge strategy. Seemed to do what I wanted.
23:26 csmule Mainly trying to avoid accidental state applies because I use multiple environments.
23:26 astronouth7303 csmule: my suggestion is to not use the base environment
23:26 csmule astronouth7303: Yeah just removed it! :)
23:27 astronouth7303 i have base/dev with the same top rules (using yaml copy), so all my minions have an environment set in their config
23:28 MTecknology you have the minions configured to define their own environment?
23:28 csmule I'm going with setting environment: in my minion, yeah.
23:28 MTecknology yuckies
23:29 csmule I just get confused with multiple environments and the merging that happens.
23:30 csmule I'm using gitfs, so I have a branch map to an environment.
23:30 csmule Tnx for the comments.
23:37 Manor joined #salt
23:42 jshm joined #salt
23:45 onlyanegg joined #salt
23:55 onlyanegg joined #salt

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