Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-05-19

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

All times shown according to UTC.

Time Nick Message
00:01 alexlist joined #salt
00:04 edrocks joined #salt
00:23 manji joined #salt
00:48 aneeshusa joined #salt
00:48 cyborg-one joined #salt
00:52 asyncsec joined #salt
01:16 VR-Jack2-H joined #salt
01:22 jijiki joined #salt
01:34 WKNiGHT joined #salt
01:47 manji joined #salt
01:49 ilbot3 joined #salt
01:49 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.6, 2016.11.5 <+> Support: https://www.saltstack.com/support/ <+> SaltStack Webinar on Carbon, Nitrogen, and Enterprise 5.1 on May 18, 2017 https://goo.gl/PvsOvQ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> Due to spam, please register with NickServ
02:05 edrocks joined #salt
02:07 jalaziz joined #salt
02:11 manji joined #salt
02:17 zerocool_ joined #salt
02:21 XenophonF joined #salt
02:22 hvn joined #salt
02:25 hvn hello, I'm wondering why there is no official image for saltstack ? I found some but seem unmaintained (or last commit since 2 years ago)
02:25 hvn it is not to run salt on docker for production, but it is a short way to quickly test it out for new user. That IMO is a main usege of Docker
02:35 whytewolf because running salt in docker for testing states runs into a few problems from the start. such as because there is no init system inside of docker there is not way to have any test work with service.running
02:36 whytewolf which is a pretty core component of most systems that are built with salt
02:38 manji joined #salt
02:42 hvn £no, I don't mean using it for testing states. Actually I did that and suffer all these issues
02:43 hvn I mean using it for testing some commands, esp for new users
02:44 hvn And for using salt for testing formula, I still wonder what other "testing" formulas do out there? they run supervisord for init system?
02:44 whytewolf they use vagrent and virtual machines mostly.
02:45 whytewolf which give much better support of real running systems then docker ever will
02:45 whytewolf also a lot of them use test-kitchen. or do smoke testing
02:53 hvn ah yes, VM is better solution for testting state.
02:55 hvn but just for local testing (the network maybe slow) or self-install CI, not any public CI out there
03:00 Praematura joined #salt
03:01 whytewolf all of the demos are built around vagrent and virtual machines. virtual machinces can be run locally. and since you can run a vm locally you don't need to worry about that slow network.
03:01 whytewolf as for CI even self installed one. vm's still work better
03:03 manji joined #salt
03:04 whytewolf now, there are people that try debugging salt issues inside of docker. but most of them just create their own docker image.
03:04 whytewolf because it needs to be suited to the problem they are trying to recreate
03:09 aneeshusa joined #salt
03:15 Savemech joined #salt
03:16 hvn whytewolf: okay I see, thank you so much
03:20 J0hnSteel joined #salt
03:30 asyncsec joined #salt
03:30 manji joined #salt
03:33 jas02 joined #salt
03:35 evle1 joined #salt
03:36 Praematura joined #salt
03:41 jerematic joined #salt
03:42 xet7 joined #salt
03:46 aneeshusa joined #salt
03:47 onlyanegg joined #salt
04:07 edrocks joined #salt
04:16 Xenophon1 joined #salt
04:17 aneeshusa joined #salt
04:28 gmoro joined #salt
04:31 inad922 joined #salt
04:44 Freddy joined #salt
04:45 aneeshusa joined #salt
04:47 J0hnSteel joined #salt
04:54 preludedrew joined #salt
05:07 _KaszpiR_ joined #salt
05:09 hvn joined #salt
05:09 hvn I made the image anw https://hub.docker.com/r/hvnsweeting/trysalt/ :)
05:09 hvn at least I have one usecase for it, when holding meetup for newbies :p
05:21 icebal joined #salt
05:26 felskrone joined #salt
05:27 pheonix991 joined #salt
05:29 pheonix991 joined #salt
05:29 icebal joined #salt
05:32 beardedeagle joined #salt
05:32 beardedeagle joined #salt
05:33 aneeshusa joined #salt
05:33 Bock joined #salt
05:41 pbandark joined #salt
05:47 mosen joined #salt
05:49 jas02 joined #salt
05:50 _JZ_ joined #salt
05:54 jas02 joined #salt
06:10 Ricardo1000 joined #salt
06:11 aldevar joined #salt
06:20 onlyanegg joined #salt
06:32 zerocool_ joined #salt
06:38 do3meli joined #salt
06:38 do3meli left #salt
06:46 justanotheruser joined #salt
06:59 zerocool_ joined #salt
07:09 edrocks joined #salt
07:12 gimpy936 joined #salt
07:21 pbandark joined #salt
07:22 onlyanegg joined #salt
07:30 dograt joined #salt
07:30 zerocool_ joined #salt
07:32 fracklen joined #salt
07:32 XenophonF joined #salt
07:38 fracklen joined #salt
07:42 jhauser joined #salt
07:55 zerocoolback joined #salt
07:56 zerocoolback joined #salt
07:56 zerocoolback joined #salt
07:57 zerocoolback joined #salt
07:57 nku left #salt
07:58 zerocoolback joined #salt
08:05 _KaszpiR_ joined #salt
08:06 mikecmpbll joined #salt
08:08 Terminus joined #salt
08:24 Rumbles joined #salt
08:26 jessexoc joined #salt
08:27 rubenb joined #salt
08:35 jeddi joined #salt
08:38 Ricardo1000 joined #salt
09:00 onlyanegg joined #salt
09:03 jas02 joined #salt
09:06 losh joined #salt
09:10 candyman88 joined #salt
09:11 asyncsec joined #salt
09:42 cliluw joined #salt
10:04 jas02 joined #salt
10:13 aerbax joined #salt
10:24 capnhex joined #salt
10:24 capnhex_ joined #salt
10:31 jas02 joined #salt
11:02 onlyanegg joined #salt
11:03 Praematura joined #salt
11:06 ArunJoyThekkiniy joined #salt
11:09 evle1 joined #salt
11:10 hemebond left #salt
11:13 edrocks joined #salt
11:19 Yoda-BZH joined #salt
11:19 Yoda-BZH joined #salt
11:27 Yoda-BZH joined #salt
11:27 Yoda-BZH joined #salt
11:35 rebbdohr joined #salt
11:41 mugsie joined #salt
11:49 jas02 joined #salt
11:51 brent joined #salt
11:54 brent joined #salt
11:57 thinkt4nk joined #salt
11:57 amcorreia joined #salt
11:59 ronnix joined #salt
12:01 vlebo joined #salt
12:01 spicyJalapeno joined #salt
12:02 onlyanegg joined #salt
12:13 ahrs joined #salt
12:14 mat_ I use gitfs, and to reduce the load on our git server, I moved from pulling from a remote repository to pulling from a local repository, but now, I get errors like this:
12:14 mat_ [ERROR   ][25256] gitfs remote 'file:///usr/local/salt/abso/snmp.git' requires authentication, but no authentication configured
12:19 brent joined #salt
12:24 cablekev1n joined #salt
12:29 amcorreia joined #salt
12:31 J0hnSteel joined #salt
12:33 babilen Can the user the salt master is running as access/clone that repo?
12:37 thinkt4n_ joined #salt
12:39 edrocks joined #salt
12:40 puzzlingWeirdo joined #salt
12:41 zerocoolback joined #salt
12:44 jerematic joined #salt
12:44 GMAzrael joined #salt
12:44 numkem joined #salt
12:46 mat_ babilen, yes, it is the same user
12:48 GMAzrael joined #salt
12:56 numkem joined #salt
13:03 babilen mat_: You could run the salt master in debug mode and check what it's doing when you refresh the fileserver
13:05 mat_ babilen, mmm, yes, I'll try that
13:05 mat_ babilen, I should have said that it only gives an error, the gitfs fileserver works
13:06 babilen You might see which commands it is running
13:11 mat_ mmm, how do I access grains from another environment ? I'm working on something, and it seems I can't do, say, salt 'test*' grains.items saltenv=dev
13:14 DammitJim joined #salt
13:16 mat_ also, does salt handle any signals to reopen its log files ?
13:16 guerby joined #salt
13:23 ssplatt joined #salt
13:23 mat_ babilen, the logs from one gitfs error http://people.freebsd.org/~mat/salt-gitfs.txt
13:24 mat_ strangely, it only happens for gitfs remotes that have extra informations (like root/mountpoint)
13:25 mat_ it does not occur for remotes that are just the file:/// urls
13:28 Inveracity joined #salt
13:29 c_g joined #salt
13:29 babilen mat_: I guess we'd have to peek at the source (i.e. salt/utils/gitfs.py#L1419 and pygit2/remote.py#L375) to figure out what is missing here
13:31 dyasny joined #salt
13:33 mat_ so it is not a user and password, nor a pubkey/privkey
13:34 fracklen joined #salt
13:38 mat_ looks like a bug in pygit2
13:38 mat_ salt's gitfs does the right thing and ignores any auth for the "file" protocol
13:43 major joined #salt
13:46 guerby joined #salt
13:46 guerby joined #salt
13:50 brousch__ joined #salt
13:51 racooper joined #salt
13:54 fracklen joined #salt
13:54 babilen mat_: \o/
13:56 evle joined #salt
14:01 tellendil Hi, I've got a question concerning mines. How can I trigger a mine update for a minion whenever it connects ?
14:01 inad922 joined #salt
14:02 babilen sure
14:03 onlyanegg joined #salt
14:03 PatrolDoom joined #salt
14:06 tellendil babilen: was this answer meant for me ? If yes, would you have an example or a clue ? I couldn't make it work.
14:08 capnhex I was wondering if there is a practical limit to how much data you can send back in a custom grain?
14:08 babilen tellendil: It was meant for you. I was thinking of a reactor that triggers the update run
14:09 tellendil babilen: ok thanks ! I was thinking the same thing but couldn't find which function to run on trigger :/
14:09 babilen tellendil: mine.update sounds relevant
14:10 tellendil babilen: oh right, I will try. thanks !
14:11 asyncsec joined #salt
14:11 babilen tellendil: It might also be good to trigger https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.cache.html#salt.runners.cache.clear_mine also
14:14 fracklen joined #salt
14:15 sarcasticadmin joined #salt
14:15 babilen tellendil: Maybe you could hook into presence events. They finally fixed it for 0mq ..
14:16 racooper joined #salt
14:18 zerocoolback joined #salt
14:19 tellendil babilen: ok I'll look at it ! thanks!
14:20 VR-Jack-H joined #salt
14:22 fracklen joined #salt
14:22 aldevar joined #salt
14:27 Brew joined #salt
14:31 keltim joined #salt
14:32 jeddi joined #salt
14:35 tellendil What the hell ? It seems to be automatically populated on connection, I did not have this behavior before... anyways...
14:35 tellendil Another question then, how can I apply a state for all minions when the mine is updated by filtering by function ? Should I do all the checks in the state or is it possible in the reactor directly ?
14:42 darix can you ask the master for all minions currently connected without something like test.ping?
14:51 babilen darix: What are you trying to achieve?
14:51 darix babilen: salt-run mange.up
14:51 darix apparently is the answer
14:52 babilen That will ping
14:52 babilen So you can't use that
14:53 Ricardo1000 joined #salt
14:53 keldwud joined #salt
14:54 capnhex__ joined #salt
14:58 capnhex joined #salt
14:59 dyasny joined #salt
15:03 edrocks joined #salt
15:05 capnhex__ left #salt
15:06 Praematura joined #salt
15:08 DammitJim joined #salt
15:12 capnhex_ left #salt
15:15 raspado joined #salt
15:17 wangofett joined #salt
15:23 wangofett joined #salt
15:31 abdul_ismail joined #salt
15:34 o1e9 joined #salt
15:35 colegatron joined #salt
15:36 onlyanegg joined #salt
15:37 ProT-0-TypE joined #salt
15:42 raspado joined #salt
15:58 sarcasticadmin joined #salt
16:03 demize manage.present doesn't though.
16:04 hashwagon joined #salt
16:06 evle joined #salt
16:13 wangofett joined #salt
16:18 Guest35534 joined #salt
16:18 datrebr joined #salt
16:18 Cloh joined #salt
16:20 mquin joined #salt
16:20 Gareth well that was fun.
16:20 Aleks3Y joined #salt
16:21 kline joined #salt
16:21 cicluckiP joined #salt
16:21 ti1 joined #salt
16:21 be joined #salt
16:21 be was kicked by Gareth: be
16:21 be joined #salt
16:21 gtmanfred kban be
16:21 be was kicked by Gareth: be
16:22 ti1 was kicked by gtmanfred: ti1
16:22 cicluckiP was kicked by gtmanfred: cicluckiP
16:22 edrocks joined #salt
16:23 gtmanfred Gareth: i am going to see if I can find the bot plugin that kickbans users who mention more than 5 nicks
16:23 Gareth 👍
16:23 gtmanfred if you wouldn't mind setting it up, I am in boulder
16:23 Gareth sure
16:24 wangofett joined #salt
16:24 shanth read that as i am a boulder
16:25 shanth i was gonna say, you rock, man
16:25 shanth ahaaa
16:27 gtmanfred Gareth: https://github.com/ncoevoet/ChanTracker
16:27 gtmanfred the hilight portion should do what we want
16:29 gtmanfred shanth: could you see the spam that was just happening?
16:29 gtmanfred Gareth: i think we might have been the only ones that could see it because of the +q i put on yesterday
16:30 Gareth Yeah. was wondering that actually.
16:30 gtmanfred lets see if it comes back, if it doesn't then whatever
16:30 gtmanfred and if it does, then we can look into that plugin
16:30 shanth didn't see anything gtmanfred
16:30 jalaziz joined #salt
16:31 gtmanfred awesome
16:31 gtmanfred perfect
16:32 gtmanfred i am going to have to setup some extra bot mode stuff eventually
16:33 shanth why are people idling so many nicks in #salt anyway?
16:35 schemanic_ joined #salt
16:35 whytewolf because some of us hate logging in and out of IRC. andthis is one of our default channels
16:37 sarcasticadmin joined #salt
16:38 shanth no i meant why are people idling multiple nics
16:39 capnhex_ left #salt
16:40 Praematura joined #salt
16:41 schemanic_ joined #salt
16:41 whytewolf oh, um because they don't have a ZNC setup and have a irc client in multiple places? I don't know you would have to ask them
16:43 schemanic_ joined #salt
16:44 numkem joined #salt
16:44 mikecmpbll joined #salt
16:49 schemanic joined #salt
16:50 schemanic Hello
16:51 schemanic I am getting a 'salt is dead but pid file exists' error on my salt master. Can anyone point me in the right direction?
16:51 censorshipwreck joined #salt
16:52 shanth is salt running?
16:52 armguy joined #salt
16:53 shanth try running it in debug mode to see if any errors are happening
16:53 shanth salt-master -l debug
16:55 debian112 joined #salt
16:55 qw joined #salt
16:56 sh123124213 joined #salt
16:59 seanz joined #salt
17:00 Gareth schemanic: sounds like the daemon died but didn't clean up the pid file.  check /var/run for files with salt like names.
17:10 schemanic Gareth, Thanks. My issue is that i'm killing the pid file and restarting salt-master, getting [OK] and then it does it again
17:10 schemanic hang tight I'm going to run in debug
17:13 ecdhe joined #salt
17:19 aldevar joined #salt
17:19 raspado does salt + nova use libvirt for openstack instance provisioning?
17:19 shanth mine did that once due to it losing the hostname schemanic
17:20 shanth salt apparently wont play nice when it doesnt have a fqdn set
17:20 whytewolf nova driver uses novaclient,
17:20 schemanic shanth, I did change the hostname on my master recently. How did you fix it?
17:20 whytewolf it doens't care what your hypervisor under openstack is
17:20 shanth i was on fbsd and hostname="minionname" was missing from rc.conf is all schemanic
17:20 raspado hmm ok whytewolf, happen to know where libvirt plays a role in provisioning an instance on a guest vm?
17:20 shanth might be diff for your o/s. make sure you indeed set the hostname correctly
17:21 shanth run hostname -f
17:21 shanth if it's blank that's bad
17:22 schemanic hostname  -f gives me my hostname just fine
17:22 schemanic what is rc.conf/where is it?
17:22 whytewolf raspado: if you are using kvm or qemu as your hypervisor that is libvirt
17:22 svij1 joined #salt
17:23 raspado ah ok, using kvm (bochs)
17:23 armyriad joined #salt
17:30 schemanic ugh this is infuriating
17:31 schemanic I can run salt --versions-report but service salt-master status says salt is dead but pid file exists
17:33 schemanic AHA
17:33 schemanic preflight checks have failed
17:34 schemanic my initial state worked
17:34 schemanic however
17:34 schemanic I failed to include salt.gitfs.pygit2 in my starter state
17:34 schemanic therefore it was never installed, while my gitfs configs WERE, and the master fails to start
17:37 ssplatt left #salt
17:37 ssplatt joined #salt
17:39 fracklen joined #salt
17:42 ssplatt left #salt
17:42 ssplatt joined #salt
17:43 ssplatt i’m trying to do some quick testing using a super simple hosts file in ansible style, with salt-ssh. i keep getting an error ‘TypeError: string indices must be integers, not str’ when i run `$ sudo salt-ssh --roster-file hosts '*' test.ping`
17:43 * ssplatt cheers for joy that he finally registered his nick properly
17:44 ssplatt the roster file is just a plain file with IPs on each line.
17:50 Praematura_ joined #salt
17:51 shanth rc.conf is freebsd systems schemanic
17:51 shanth are you using linux?
17:51 shanth it's prob not a hostname issue then
17:54 _JZ_ joined #salt
17:55 ssplatt mac os
17:55 ssplatt not sure if you were talkign to me or not
18:00 Trauma joined #salt
18:01 fracklen joined #salt
18:03 pheonix991 joined #salt
18:03 icebal joined #salt
18:05 Trauma joined #salt
18:09 schemanic shanth, I'm on Amazon Linux
18:11 SaucyElf joined #salt
18:11 cyborg-one joined #salt
18:14 shanth oh, not sure then
18:19 UtahDave joined #salt
18:20 dxtr left #salt
18:28 dlam joined #salt
18:28 Nageswar joined #salt
18:29 dlam is there a state thing for `apt-get build-dep` ?
18:31 cscf dlam, not that I know of
18:31 whytewolf still a work in progress.
18:32 whytewolf sorry wrong room
18:32 cscf dlam, this might be related: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkgbuild.html
18:33 Nageswar hello everyone
18:34 Nageswar can i able to create custom salt engines?
18:35 ravdeep joined #salt
18:35 whytewolf Nageswar: yes. https://docs.saltstack.com/en/latest/topics/engines/index.html#writing-an-engine
18:35 Nageswar i have tried adding custom salt engine but it's not being started by the master
18:35 schemanic Hey anyone have trouble getting pygit2 working on amazon linux?
18:36 Nageswar i can able to start only the engines in this git "https://github.com/saltstack/salt/blob/develop/salt/engines/" though i configure custom one in the engines_dir salt is not starting the same
18:36 dlam cscf:  ooo thanks,  think not that,  i just wanna be able to install all the packages for 'lxml' cuz it needs to compile stuff,  maybe running shell command will do  :D
18:37 whytewolf schemanic: pygit2 is a pain in the ass. you are better off compileing libgit2 from scratch and installing pygit2 from pip. most packages for pygit2 are wonky.
18:37 whytewolf Nageswar: engines_dir?
18:37 schemanic whytewolf, I had to do that from scratch with the previous guy
18:37 Nageswar whytewolf, i have given /etc/salt/engines in master config
18:38 schemanic My problem is that I'm using the salt.gitfs.pygit2 formula from https://github.com/saltstack-formulas/salt-formula, and apparently pygit2 is getting installed as a package, but salt cant see it
18:38 wangofett joined #salt
18:39 whytewolf Nageswar: put your engine code in _engines in your fileserver backend. then on the master run salt-run saltutil.sync_engines
18:39 whytewolf also make sure there are not errors in your engine code
18:39 whytewolf if the start() function doesn't exist. or if it errors out it won't start
18:41 abdul_ismail Dumb question will salt work fine in an offline environment?
18:42 whytewolf abdul_ismail: offline? you mean they can't reach the internet? but can talk to each other? if so then yeah. no issue with that. also you can set up minions to be masterless so they can work compleatly indapendent of networking if they have everything needed built into them
18:42 schemanic abdul_ismail, what whytewolf said
18:43 schemanic but be careful, because saltstack uses your system's package manager for installs unless you're specifically setting it up to point at a custom installation source
18:43 schemanic so the offline nodes will be hosed for installing software from public repos
18:43 abdul_ismail Thanks, and yeah, no internet is all.
18:44 wangofett joined #salt
18:47 abdul_ismail So from what I've briefly read salt has no official web ui, but there's options like this exist: https://github.com/Lothiraldan/saltpad
18:47 heaje joined #salt
18:51 Nageswar thanks a lot whytewolf
18:53 wangofett joined #salt
18:54 deedra left #salt
18:55 cyteen joined #salt
18:58 nixjdm joined #salt
18:59 schemanic So I'm seeing that on RedHat family linuxes, salt-formula has a default setting not to install pygit2 from source. I'd like to trigger that and I think I know how, but I'm not sure if my yaml is correct
18:59 wangofett joined #salt
19:04 schemanic Okay, I'm completely lost. defaults.yaml for salt-formula indicate that pygit2 should be installed from source
19:04 schemanic but it's not, it's getting installed via yum
19:11 mavhq joined #salt
19:12 _KaszpiR_ joined #salt
19:12 SalanderLives joined #salt
19:15 SalanderLives joined #salt
19:19 [HUN]Peter_Herc joined #salt
19:21 dlam` joined #salt
19:22 justanotheruser joined #salt
19:25 XenophonF hm, looking...
19:28 XenophonF schemanic: on RHEL install_from_source gets set to False in salt-formula/salt/map.jinja
19:28 XenophonF if you want the source dist, you'll have to override it yourself in Pillar, methinks
19:28 schemanic I seem to have done that, but it's failing apparently. the compile step is breaking
19:31 XenophonF i hate to ask the obvious, but why don't you want to use the pygit2 package?
19:33 viccuad joined #salt
19:34 viccuad Hi all. How can one make a foo.sls that only contains "include:", require a bar.sls?
19:34 viccuad thanks in advance
19:35 viccuad (eg: make dotfiles require workstation, here: https://github.com/viccuad/salt-configs/tree/master/salt/profile)
19:36 cscf viccuad, you could just make, like, file.exists: -name: /
19:36 cscf then require?
19:38 XenophonF viccuad: add an `extend:` to foo.sls that adds `sls: bar` dependencies to the appropriate included states
19:38 XenophonF s/dependencies/requisites
19:39 XenophonF for example - https://github.com/irtnog/tomcat-formula/blob/master/tomcat/shibboleth-idp.sls
19:39 XenophonF I don't have any sls requisites in there but you get the idea
19:43 PatrolDoom joined #salt
19:44 manji joined #salt
19:45 viccuad XenophonF: but then, the init.sls extends itself, to include the require?
19:45 sarcasticadmin joined #salt
19:46 XenophonF no
19:47 viccuad on foo.sls I could put extend: bar, -require_in: foo?
19:48 XenophonF no
19:48 viccuad (note that I want to information, about foo requiring bar, to be present in foo)
19:48 XenophonF keys of extend must be state IDs
19:48 XenophonF keys of keys of extend must be states
19:49 viccuad but I have no states on foo, only include
19:49 XenophonF so look at https://github.com/irtnog/tomcat-formula/blob/master/tomcat/shibboleth-idp.sls#L8
19:49 XenophonF that mutates the `tomcat: pkg.installed` state in .../tomcat/init.sls to add some stuff
19:49 viccuad yes, that has tomcat as state id, but I have no states
19:50 viccuad only an include and a list of states
19:50 XenophonF I know
19:50 XenophonF the shibboleth-idp.sls file mutates states that come from the included SLS files
19:51 XenophonF it makes, for example, the `tomcat: service.running` state watch various states from another SLS file
19:51 viccuad but if I do the same, I would mutate an unrelated state that is included in foo, to require bar
19:52 viccuad seems like a hack. Why not create a bogus state as cscf said, just for the require then?
19:52 XenophonF well i'm not really sure what you're trying to accomplish,t hen
19:52 viccuad seems cleaner, and refactoring will not break it
19:52 viccuad I want to add a require in this init.sls: https://github.com/viccuad/salt-configs/blob/master/salt/profile/dotfiles/init.sls
19:52 XenophonF i don't generally recommend people use include or extend except in very specific cases where you want to glue two (or more) SLSes together
19:52 viccuad that requires on profile.workstation
19:53 cscf XenophonF, really?  Most of my larger directories have init.sls that is just a dozen includes with comments
19:53 XenophonF I get it.  It's an OO-like programming style
19:53 XenophonF but I don't think it's a good fit in most cases.
19:54 viccuad what would be an alternative?
19:54 XenophonF I generally regard SLS IDs to be self-contained.
19:54 viccuad so, 1 big file with all the states
19:54 XenophonF not necessarily
19:55 nacl-hpc joined #salt
19:55 XenophonF conceptually, every SLS I write only controls one component
19:55 viccuad mine too
19:55 XenophonF so e.g., I might have an SLS ID named 'ssh' and another named 'sshd'
19:55 XenophonF using my shibboleth/tomcat example, i have shibboleth.idp and tomcat
19:55 XenophonF the tomcat.shibboleth-idp SLS is very special and glues the two together
19:55 viccuad I even go further and always asign state IDs, and use - name
19:57 XenophonF so i looked at your profile.dotfiles SLS
19:57 XenophonF why do you need a require in there?
19:58 XenophonF i spot-checked a few of the included SLSes and none of them seem to be dependent on one another
19:58 XenophonF oh i see
19:58 XenophonF you've got requires peppered throughout
19:58 XenophonF i dunno
19:58 XenophonF i'd consider that a bug
19:59 XenophonF either make the SLS self-contained or merge it with something larger
19:59 XenophonF YMMV
20:00 viccuad I suppose that even if I do it, I may hit https://github.com/saltstack/salt/issues/10852
20:00 XenophonF the way you have things set up now, you can't do `salt-call state.apply profile.dotfiles.zsh` - it'll break b/c of the missing `pkg: git` requisite
20:00 XenophonF oh right
20:00 viccuad but then, I would need to add requires for everything, so I can do eg `salt-call state.apply profile.dotfiles.zsh`
20:01 viccuad I'm happy only being able to do `salt-call state.apply profile.dotfiles`
20:01 viccuad (I need the require in profile.dotfiles so the repositories are set up correctly for the packages to be installed)
20:02 XenophonF yeah i see
20:02 XenophonF I guess I'd just throw everything into a single SLS! ^_^
20:02 viccuad (basically, emacs25-common-non-dfsg package, which comes from the non-free debian repos)
20:03 viccuad XenophonF: not necessarily? ;)
20:04 viccuad anyway, many thanks for the insights :)
20:04 XenophonF no problem :)
20:04 XenophonF TBH it's always nice to see how other people do stuff
20:05 aneeshusa joined #salt
20:11 manji joined #salt
20:11 SaucyElf joined #salt
20:13 nixjdm joined #salt
20:13 viccuad well, `test.nop: -require: profile.workstation` seems to have worked, lets see in 20 mins when the states are applied
20:23 amcorreia joined #salt
20:25 UtahDave left #salt
20:33 BlackBishop joined #salt
20:40 KyleG joined #salt
20:40 KyleG joined #salt
20:51 edrocks joined #salt
20:54 justan0theruser joined #salt
20:59 Vasya666 joined #salt
21:12 nixjdm joined #salt
21:17 wangofett joined #salt
21:26 viccuad didn't work.
21:28 viccuad "The following requisites were not found: require: - id: profile.workstation"
21:28 viccuad one can require on states that are not on the subtree of your sls, right?
21:29 rav_ joined #salt
21:34 swills joined #salt
21:43 viccuad I think I'm just missing an include, which makes me wonder, can one have 2 "include: " in 1 sls?
21:44 babilen Nope, you'd include multiple elements in the same block
21:44 puzzling1 joined #salt
21:45 swills joined #salt
21:46 viccuad then, that's the solution. Let's see when the highstate is done…
21:47 onlyanegg I've been reading https://github.com/saltstack/salt/issues/7997, because my salt minion is failing to restart after an upgrade. Someone in there mentioned the rpm post install script. Looking at the 2016.11.5 rpm for centos7, I see "if [ $1 -gt 1 ] ; then /usr/bin/systemctl try-restart salt-minion.service >/dev/null 2>&1 || : ..."
21:48 onlyanegg Shouldn't this instead be ... systemctl restart salt-minion ... ?
21:49 onlyanegg from the systemctl man page under try-restart: "Restart one or more units specified on the command line if the units are running"
21:53 sh123124213 joined #salt
21:55 onlyanegg hmmm, maybe not. I suppose you might not want to start the minion if you purposefully shut it off. My issue is that it fails or otherwise shuts down during the upgrade.
21:55 manji joined #salt
22:01 cyteen joined #salt
22:04 edrocks joined #salt
22:13 nixjdm joined #salt
22:20 justanotheruser joined #salt
22:20 manji joined #salt
22:24 sh123124213 joined #salt
22:45 citaret joined #salt
22:57 manji joined #salt
23:04 bluenemo joined #salt
23:05 edrocks joined #salt
23:07 PatrolDoom onlyanegg: journalctl -u salt-minion ?
23:09 * PatrolDoom is really late to the partay
23:13 nixjdm joined #salt
23:14 druonysus joined #salt
23:15 jeddi joined #salt
23:20 iggy anybody ever seen a minion hang at "[TRACE   ] [salt.utils.process] - Process manager iteration" ?
23:20 iggy the only instance I can find in the bug tracker talks about ipv6, which isn't the issue
23:21 iggy I've checked connectivity on 4505/4506
23:25 manji joined #salt
23:27 whytewolf humm Process manager iteration looks like it is the part where it checks the active pids if they are alive. and restarts any that are not. wonder if you have a pid that is not returning. locking you in a hang.
23:30 zerocoolback joined #salt
23:33 druonysus joined #salt
23:42 sh123124213 joined #salt
23:51 manji joined #salt

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