Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-07-20

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

All times shown according to UTC.

Time Nick Message
00:08 ssplatt joined #salt
00:11 woodtablet left #salt
00:23 pdayton joined #salt
00:23 masber joined #salt
00:24 Valfor joined #salt
00:28 jmickle Can anyone help me with this error? I am getting this when running kitchen-salt SaltClientError: Could not access /var/cache/salt/master. Path does not exist.
00:32 svij2 joined #salt
00:34 iggy does it exist?
00:59 vishvendra joined #salt
01:47 kerrick joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.6, 2017.7.0 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers <+> The call for speakers for SaltConf17 is now open: http://tinyurl.com/SaltConf17
01:52 Kevin joined #salt
01:57 zerocool_ joined #salt
02:01 noraatepernos joined #salt
02:16 Guest73 joined #salt
02:22 mavhq joined #salt
02:26 v3x crazy question: is there any facility in salt API that would allow me to stream a binary file to the master in order to distribute it to minions?
02:34 onlyanegg joined #salt
02:35 zerocool_ joined #salt
02:35 iggy I've never seen anything, but I can't think of a reason it wouldn't technically work
02:38 v3x i'm building a gui tool for our management system and it would be awesome if i could do things like upload an ssl certificate to install on a remote minion
02:38 om2 joined #salt
02:40 whytewolf well, your gui could have an internal facing webpage. and using the data portion of an event have a reactor that fills in an almost blank file.managed state with all of the data needed. using http protocol
02:40 whytewolf or for more nonsense you could inject it into pillar as a base64 item then translate it on the other side.
02:41 v3x only problem with that is i actually suck at web development
02:42 whytewolf that puts you 10 steps above the people that do it professionaly. least you know you are not good at it. they still suck at it and think they are gods gift to the web
02:43 iggy true story
02:45 evle joined #salt
02:50 v3x lol
02:50 v3x what i have is effective at least, and it's fun to write. plus i'm learning things so that's good
02:54 jab416171 joined #salt
03:02 ivanjaros joined #salt
03:05 zerocool_ joined #salt
03:17 unzunz joined #salt
03:29 tobstone joined #salt
03:31 hemebond joined #salt
03:39 svij2 joined #salt
03:50 donmichelangelo joined #salt
03:52 mavhq joined #salt
04:01 zerocool_ joined #salt
04:02 yuhl joined #salt
04:07 tellendil joined #salt
04:14 tellendil joined #salt
04:16 onlyanegg joined #salt
04:21 fritz09 joined #salt
04:28 beardedeagle joined #salt
04:31 netcho joined #salt
04:34 c06 hi all anyone experience with reclass and salt.?
04:36 mosen joined #salt
04:50 jholtom joined #salt
04:50 heyimawesome joined #salt
04:52 GnuLxUsr joined #salt
04:57 snarked joined #salt
04:58 hornet joined #salt
05:01 Hornet_ joined #salt
05:02 hornet83 joined #salt
05:06 netcho joined #salt
05:06 netcho joined #salt
05:07 hornet83 Hi all
05:08 hornet83 I'm pretty new to salt and not sure if someone can help me, but I would like to execute a python provision script on the master (creates VMs in acropolis via the rest API) and pass the script arguments which i have defined in a pillar.. what is the best way of doing it?
05:12 coredumb hornet83: look at cmd.script module
05:12 coredumb you can specify arguments that  would be {{ pillar[xxxx] }} in jinja from your state file
05:13 aldevar joined #salt
05:16 jmickle joined #salt
05:17 hornet83 ok thanks, and how do I execute the specific state file for just that script? state.apply seems to run everything that would match either * or the saltmaster
05:17 Sammichmaker joined #salt
05:17 vishvendra joined #salt
05:24 Zachary_DuBois joined #salt
05:29 Xenophon1 joined #salt
05:29 kerrick joined #salt
05:30 hornet83 I guess I need to configure the master as a minion to itself so I can execute scripts
05:31 joe_n joined #salt
05:32 vishvendra joined #salt
05:38 major joined #salt
05:56 onlyanegg joined #salt
05:58 impi joined #salt
06:00 coredumb hornet83: oh yes indeed would be better to have your master managed as other minions :)
06:00 wiggy_ joined #salt
06:01 pualj joined #salt
06:02 MTecknology ^ +1
06:04 hornet83 great thanks for your help.. i tried to figure out how to do it wihtout using the master as a minion ;)
06:04 beardedeagle yo dawg, I heard you like salt. so I salted your salt so you can salt while you salt.
06:04 hemebond And now you have high blood pressure and need daily medication.
06:04 vishvendra1 joined #salt
06:05 beardedeagle no that's just from being fat
06:05 hemebond "Eating salt raises the amount of sodium  in your bloodstream and wrecks the delicate balance, reducing the  ability of your kidneys to remove the water. The result is a higher blood pressure due to the extra fluid and extra strain on the delicate blood vessels leading to the kidneys."
06:06 beardedeagle #fakenews
06:07 hemebond LOL
06:09 kerrick joined #salt
06:09 high_fiver joined #salt
06:10 vishvendra1 joined #salt
06:11 aldevar joined #salt
06:14 do3meli joined #salt
06:15 do3meli left #salt
06:22 justanotheruser joined #salt
06:29 wiggy_ left #salt
06:35 netcho joined #salt
06:39 netcho joined #salt
06:39 netcho joined #salt
06:52 ivanjaros joined #salt
06:57 onlyanegg joined #salt
06:57 Ricardo1000 joined #salt
07:17 Eagleman77 joined #salt
07:18 Hybrid joined #salt
07:18 Eagleman77 Does anyone know how to use the Minion-specific msi-properties when using the msi installer, I tried the following but they do not seem to have any effect on the minion hostname: msiexec /i Salt-Minion-2016.11.6-64bit.msi MINION_HOSTNAME="pc-1"
07:22 impi joined #salt
07:23 vishvendra joined #salt
07:25 stduolc ls
07:29 kerrick joined #salt
07:30 Rumbles joined #salt
07:32 dograt joined #salt
07:36 jthunt joined #salt
07:44 netcho joined #salt
07:46 _KaszpiR_ joined #salt
07:50 Ricardo1000 joined #salt
07:51 netcho joined #salt
07:52 gmoro joined #salt
07:56 pbandark joined #salt
07:59 vishvendra joined #salt
07:59 ProT-0-TypE joined #salt
08:04 _KaszpiR_ joined #salt
08:04 kjsaihs joined #salt
08:11 preludedrew joined #salt
08:16 vishvendra1 joined #salt
08:17 mikecmpbll joined #salt
08:21 impi joined #salt
08:27 netcho joined #salt
08:27 netcho joined #salt
08:29 Mattch joined #salt
08:30 sh123124213 joined #salt
08:35 do3meli joined #salt
08:41 do3meli hi all - anyone having a good advice on how to downgrade salt-master to 2016.11.x release?
08:47 vishvendra joined #salt
08:53 vishvendra1 joined #salt
08:58 onlyanegg joined #salt
09:10 hoonetorg joined #salt
09:14 Zachary_DuBois joined #salt
09:19 ivanjaros joined #salt
09:23 vishvendra joined #salt
09:25 vishvendra joined #salt
09:32 zerocool_ joined #salt
09:38 Zachary_DuBois joined #salt
09:42 joe_n joined #salt
09:46 Lionel_Debroux joined #salt
09:54 c06 joined #salt
10:01 do3meli left #salt
10:11 inad922 joined #salt
10:30 vishvendra1 joined #salt
10:37 Rumbles joined #salt
11:01 onlyanegg joined #salt
11:04 cyteen joined #salt
11:11 mikecmpb_ joined #salt
11:18 vishvendra1 joined #salt
11:29 hoonetorg joined #salt
11:37 dendazen joined #salt
11:37 smartalek joined #salt
11:41 vishvendra joined #salt
11:44 misconfig .
11:45 Sarphram joined #salt
11:45 misconfig Anyone in here use the boto_route53 state? I'm getting some exceptions with using it with a reactor.
11:49 Sarph joined #salt
11:51 vishvendra1 joined #salt
11:52 _KaszpiR_ joined #salt
11:53 evle joined #salt
11:56 zerocoolback joined #salt
12:00 thinkt4nk joined #salt
12:07 pbandark joined #salt
12:08 Eagleman77 Are all the people based in the US?
12:14 zulutango joined #salt
12:37 ecdhe joined #salt
12:43 zerocoolback joined #salt
12:45 ecdhe astronouth7303: I abandoned compiling salt-minion (was trying to use buildroot to start compiling a mips64 pycrypto b_dist).  Instead I got salt-ssh working on my ER3.  Yay!
12:48 gmoro joined #salt
12:55 jalaziz joined #salt
12:58 jdipierro joined #salt
13:00 numkem joined #salt
13:02 onlyanegg joined #salt
13:02 jdipierro joined #salt
13:08 jalaziz joined #salt
13:17 mugundan joined #salt
13:19 ssplatt joined #salt
13:26 numkem joined #salt
13:26 Ajith joined #salt
13:26 kyu joined #salt
13:29 racooper joined #salt
13:29 high_fiver joined #salt
13:31 kyu Hi everyone, I wrote a custom outputter that returns a JSON list. Can I somehow further parse the output in a way like the normal salt-json outputter does?
13:35 cyborg-one joined #salt
13:39 Rumbles joined #salt
13:43 Ajith joined #salt
13:45 astronouth7303 ecdhe: cool!
13:47 noobiedubie joined #salt
13:47 ecdhe astronouth7303: it's odd, salt-ssh didn't work on thsi exact same device back in april.  But glad I have it today.
13:47 noobiedubie loving the new python3 support!
13:48 ecdhe yay python3!
13:53 Rumbles joined #salt
13:53 _JZ_ joined #salt
13:55 losh joined #salt
13:56 onlyanegg joined #salt
13:56 pcn Eagleman77: Most of the saltstack folks in this room are in the US, they should start their day in an hour or so.
13:57 Eagleman77 alright, i end my day in an hour ;)
13:57 Ajith joined #salt
14:00 astronouth7303 Yeah, it's 7am in the valley
14:03 astronouth7303 Some of is don't live in California, though :-P
14:07 coredumb Eagleman77: I'll end mine now actually o/
14:23 lompik joined #salt
14:26 GMAzrael_ joined #salt
14:29 winsalt joined #salt
14:30 sarcasticadmin joined #salt
14:32 LostSoul joined #salt
14:37 GMAzrael joined #salt
14:38 GMAzrael joined #salt
14:40 mikecmpbll joined #salt
14:40 ccha using salt repo latest, is there a way to get the salt-minion 2016.11.6-1.el7 ?
14:45 numkem joined #salt
14:47 bowhunter joined #salt
14:48 beardedeagle joined #salt
14:49 dev_tea I...don't think so? I think the repo just has the latest version. I think you'll need to use the 2016.11 repo
14:50 astronouth7303 (mild NSFW, if your work is uptight) https://twitter.com/gravislizard/status/887722805046853633
14:50 astronouth7303 oops, wrong channel
14:50 astronouth7303 sorry for that
14:54 ccha dev_tea: does you have a link about 2016.11 repo for centos ?
14:54 dev_tea http://repo.saltstack.com/2016.11.html#rhel
14:55 dev_tea hit "Pin to major version" for the 2016.11 repo
14:56 hoonetorg joined #salt
14:57 hoonetorg joined #salt
14:58 ccha ok thank you dev_tea
14:59 patrek joined #salt
15:01 ccha it works
15:02 Rumbles joined #salt
15:02 ccha salt-master is not updated yet
15:04 dev_tea hehehe we're running around today making sure our minions are on the right repo too
15:04 dev_tea Don't have time to update our master quite yet
15:23 bakins joined #salt
15:27 edrocks joined #salt
15:27 fatal_exception joined #salt
15:34 eee_ joined #salt
15:34 jdipierro joined #salt
15:35 mpanetta joined #salt
15:35 hoonetorg joined #salt
15:37 jdipierro joined #salt
15:37 DammitJim joined #salt
15:39 onlyanegg joined #salt
15:45 Renich joined #salt
15:47 mikecmpbll joined #salt
15:49 Guest73 joined #salt
15:52 tiwula joined #salt
15:54 woodtablet joined #salt
15:58 zerocoolback joined #salt
15:59 XenophonF joined #salt
15:59 stewgoin joined #salt
15:59 zerocoolback joined #salt
16:00 zerocoolback joined #salt
16:01 zerocoolback joined #salt
16:04 aldevar left #salt
16:07 Diaoul joined #salt
16:08 zerocoolback joined #salt
16:10 Ajith_ joined #salt
16:17 pdayton joined #salt
16:20 high_fiver joined #salt
16:21 woodtablet For Nitrogen, I see that they have changed how pillar items are decrypted
16:22 woodtablet does #gpg at the top of the file no longer work? and does this feature extend to ext_pillar ?
16:24 inad922 joined #salt
16:27 CrummyGummy joined #salt
16:27 Ajith_ joined #salt
16:29 Inveracity joined #salt
16:29 svij2 joined #salt
16:37 vishvendra joined #salt
16:37 brianthelion joined #salt
16:38 brianthelion does anyone know how to get git.latest to pass if in spite of uncommitted changes?
16:39 astronouth7303 brianthelion: set most of the force_* flags
16:39 astronouth7303 unless you want to keep uncommitted changes
16:39 brianthelion "force_reset" will clobber the changes; I want to keep them
16:40 astronouth7303 i assume this is a config file whos template is in git?
16:41 brianthelion no, this is a source blob
16:41 lorengordon can you stash the uncommitted changes first?
16:41 brianthelion no, i'm trying to deploy the changes
16:41 lorengordon stash, update, pop
16:41 astronouth7303 lorengordon: the git state doesn't have that option
16:42 lorengordon cmd.run?
16:42 heaje joined #salt
16:42 astronouth7303 brianthelion: While I would question why you have changes like that, the thing that I would do is add the file in question to .gitignore but keep it checked in.
16:43 astronouth7303 This means you always have to commit it explicitly when changing it, but it will checkout on fresh clones and changes are generally ignored.
16:44 astronouth7303 however, changes committed to git will always cause merge problems, pretty much no matter what you do
16:44 brianthelion the basic idea is that i'm using sat-call --local as my build/test entrypoint
16:44 astronouth7303 then don't have the git.latest run as part of the local test system
16:45 astronouth7303 because you mean "don't munge my local uncommitted changes"
16:45 brianthelion well, my devs want to know when there are upstream changes
16:45 astronouth7303 don't use salt for that
16:45 brianthelion so git.latest is nice
16:45 astronouth7303 use other existing dev tools
16:46 brianthelion yeah, i may have to do that
16:46 brianthelion i was just hoping there was a workaround
16:46 astronouth7303 add a new flag to git.latest to do the stash thing
16:46 astronouth7303 but that'll mess with their local branch
16:47 astronouth7303 and you're getting into git methodologies in general, proper use of feature branches, deploy branches, use of pull requests, etc etc
16:47 brianthelion the nice thing about using salt is that the exact same states that i write for their dev workflow can be reused for my deployment workflow
16:47 brianthelion anyway.... I'll put up a feature request and see where that goes
16:47 brianthelion thanks, all
16:47 zuppa joined #salt
16:48 astronouth7303 i'm not sure mainline salt will like it because the goal is to bring a minion into alignment with a prescribed state, not maintain its deviance
16:49 brianthelion fair
16:49 wendall911 joined #salt
16:51 Ajith__ joined #salt
16:52 jdipierro joined #salt
16:54 tehsu joined #salt
16:56 _KaszpiR_ joined #salt
16:57 Reverend joined #salt
16:57 Reverend hey boys and girls
16:57 Reverend anyone had any issues with their orchestration / pillars ?
16:57 Reverend after the last updat I mean
16:58 astronouth7303 Reverend: yes
16:58 Reverend sweet. what was the fix? :D
16:58 astronouth7303 https://github.com/saltstack/salt/issues/42403#issuecomment-316761543
16:58 astronouth7303 https://github.com/saltstack/salt/issues/42400
16:58 astronouth7303 downgrade and wait for 2017.7.1
16:59 Reverend whut
16:59 Reverend really
16:59 Reverend kk
16:59 astronouth7303 well, that was my fix
16:59 astronouth7303 since the bug completely broke my continuous deployment
16:59 Reverend yeah
16:59 Reverend us too
17:00 debian112 joined #salt
17:00 astronouth7303 i tried digging into it, but i'm not familiar with the source and there's a _lot_ of layers you have to traverse
17:01 Reverend yeah
17:01 Reverend I'll look at it tomorrow
17:01 Reverend it's EOP now :) I'm off
17:01 Reverend thanks astronouth7303
17:03 winsalt joined #salt
17:07 leonkatz joined #salt
17:07 Antiarc joined #salt
17:09 davidtio joined #salt
17:09 ecdhe joined #salt
17:11 leonkatz joined #salt
17:11 kerrick joined #salt
17:17 numkem joined #salt
17:35 edrocks joined #salt
17:38 numkem joined #salt
17:43 rubenb joined #salt
17:44 aldevar joined #salt
17:48 astronouth7303 can anyone explain the difference between minions.connected, manage.up, and manage.alived?
17:49 astronouth7303 especially since minions.connected are listing minions I am very, very sure are not connected
17:53 whytewolf not sure about minions.connected as i don't really do much to with the wheel. manage.up actually sends a test.ping to make sure the listed minions are up. and manage.alived works only with reat and had to do with how reat tracted minions
17:53 kerrick joined #salt
17:54 astronouth7303 reat?
17:54 cgiroua joined #salt
17:55 astronouth7303 afaict, manage.alived is a list of all minions ever?
17:55 whytewolf sorry raet
17:55 claudekenni joined #salt
17:55 whytewolf manage.alived is a list of minions that last so, the jeff sessions thing. there is really only one thing that kind of irks me about the way trump handled it. and kind of drives home why i think trump has been one of the worst presidents so far.
17:55 whytewolf instead of coming out against mr sessions for why he had to recuse himself from the investigation. he threw him under the bus because he did.
17:56 whytewolf wtf
17:56 astronouth7303 something was bothering you and you couldn't wait any longer to say it? :P
17:57 woodtablet there is a lot of frustration for a lot people, i see coming out alot here too
17:57 dev_tea Just couldn't hold it back :D
17:57 woodtablet =D
17:57 whytewolf wasn't something i typed.
17:58 claudekenni left #salt
17:58 mikecmpbll joined #salt
17:58 heaje joined #salt
17:58 whytewolf anyway manage.alived is a list of minions that last had a status of alived.
17:59 dominikb joined #salt
17:59 astronouth7303 the weird thing is that minions.connected is mostly the same as manage.up, but it has one addition.
17:59 astronouth7303 (a destroyed VM)
17:59 woodtablet has anyone seen file.managed behave differently btw carbon and nitrogen ? the saltstack sudoers formula is claiming i am trying to replace text with a binary
18:00 woodtablet oh sorry, didnt mean to interrupt, i thought that was done, i ll wait
18:00 astronouth7303 woodtablet: it's IRC, interleaved conversations are normal
18:01 woodtablet astronouth7303: ah ok, thanks!
18:01 dominikb left #salt
18:01 claudekenni joined #salt
18:01 tehsu with salt 2017.7 on cent6, is there a issue with GitPython not working
18:02 woodtablet i didnt change the formula btw or the pillar btw the versions of salt
18:02 claudekenni hello
18:03 claudekenni I'm trying to get the unpartitioned Disks via {% set unpartitioned_disks = salt.cmd.run('fdisk -l /dev/sd[a-z*] 2>&1 |grep "doesn\'t contain a valid partition table" |awk \'{ print $2 }\'').split() %}
18:03 claudekenni and when using salt-ssh it says "Rendering SLS 'base:linux.base.storage.disks' failed: Jinja variable 'dict object' has no attribute 'split'"
18:03 claudekenni using the salt minion it works
18:04 whytewolf don't use salt.module.function with salt-ssh that is the one place that doesn't work
18:05 claudekenni any alternative
18:05 whytewolf salt['module.function']
18:05 whytewolf [which is what salt.module.function is a shortcut for]
18:11 icebal joined #salt
18:14 ProT-0-TypE joined #salt
18:15 druonysus joined #salt
18:15 druonysus joined #salt
18:15 druonysus_ joined #salt
18:19 claudekenni that worked
18:19 claudekenni thanks
18:25 woodtablet Ahh, found my issue with sudoers formula. There is a bug wit file.managed's check_cmd, took a bit to figure what was exactly the problem. bug reported here:
18:25 woodtablet https://github.com/saltstack/salt/issues/42404
18:31 astronouth7303 reacting to data of the instant: easy
18:31 astronouth7303 applying hysteresis to that: hard
18:35 woodtablet i made pull requests to various saltstack formulas that have not been commented on or merged. its been a couple of months. do i nudge someone or is this common ?
18:37 astronouth7303 this is for official formulas?
18:37 woodtablet yeah
18:38 whytewolf "official"
18:38 woodtablet owned by the saltstack group
18:38 woodtablet lol
18:38 woodtablet i used to be in the saltstack group, so i imagine, i could merge the request, but feels awkward
18:39 astronouth7303 idk about salt specifically, but in general, I would poke on github again, and then look to bother the specific maintainers
18:39 woodtablet but i think i was removed from the group due to inactivity
18:39 woodtablet astronouth7303: ok, i ll go ping a couple of them, thanks ^_~
18:48 high_fiver joined #salt
18:49 tehsu anyone having issues with cent6 not detecting gitfs providers with 2017
18:53 ChubYann joined #salt
18:58 high_fiver joined #salt
19:02 noraatepernos joined #salt
19:04 pdayton1 joined #salt
19:07 Guest73 joined #salt
19:08 mavhq joined #salt
19:09 noraatepernos How do you guys debug “Data failed to compile”?
19:11 Etong joined #salt
19:11 noobiedubie joined #salt
19:13 impi joined #salt
19:16 kerrick joined #salt
19:19 bildz_ joined #salt
19:22 bildz joined #salt
19:25 lordcirth_work noraatepernos, salt usually gives a whole paragraph of the error message?
19:26 lordcirth_work What's the point of having Jenkins if it just returns "No" with no clear explanation, and then deletes the log a week later?
19:27 noraatepernos I see “Passed invalid arguments to saltutil.sync_grains” on my minion debug output.  But the grains file is really simple.
19:28 astronouth7303 noraatepernos: what are the versions of the minions and the master?
19:30 jmickle joined #salt
19:30 jmickle hi can anyone help me out with some challenges with SPM?
19:33 lordcirth_work jmickle, don't ask to ask, ask the real question
19:33 jmickle no kidding, I’ve asked the question for 5 days now in the channel with the real question so today i figured id throw a feeler to see if anyone is knows what spm is :-D
19:34 jmickle first: I built an SPM package per the docs and when I try to install it, it gives me Cannot install package package-name, no source package
19:34 whytewolf i know what spm is, i know no one that actually uses it.
19:35 jmickle the idea is trying to set up kitchen-salt
19:35 jmickle but it seems the way kitchen-salt is being developed is heading towards SPM packaging
19:35 whytewolf oh that moves me further out as i don't use kitchen-salt because i would rather not install ruby
19:36 jmickle agree but then how do you accomplish TDD with your formulas?
19:36 whytewolf i don't
19:36 whytewolf [i also don't use formulas]
19:36 jmickle Do you even salt?! :-D
19:37 whytewolf I use salt more then most.
19:37 whytewolf but i do smoke testing. and design a system that is fully intergrated together which is the oppisite of formulas
19:37 jmickle so if you don’t use formulas what do you use?
19:37 jmickle how do you install java or some other arbitrary piece of software?
19:37 lordcirth_work A formula is just a state that someone put in it's own repo with more boilerplate
19:38 whytewolf well first I don't do "arbitrary software" to begin with
19:38 lordcirth_work They often aren't much use because by the time you add enough options to suit everyone, it no longer automates anything.
19:39 numkem joined #salt
19:39 oida joined #salt
19:40 jmickle agree
19:40 jmickle So whytewolf what do you do in terms of setting up individual pieces that might be needed by applications
19:40 jmickle users or dependencies like java or monitoring agents
19:40 jmickle etc
19:41 whytewolf i write what would be closer to a module then a formula
19:41 whytewolf [not a saltstack module]
19:41 debian1121 joined #salt
19:41 whytewolf but a set of utilities useing states that can install, uninstall, and be called multiple times on the same system
19:42 jmickle ok i am sorry thats what i “refer” to as formulas i guess
19:42 jmickle how do you test your states
19:42 whytewolf formulas reside indapendly though. mine module system all live together in a catalog based setup
19:42 whytewolf as for testing i use smoke testing
19:42 whytewolf i actually run them.
19:43 whytewolf on test instances
19:43 noraatepernos astronouth7303: Thank you.  My newly deployed minions are getting 2017.7.0 now…master stuck at 2016.11.6.  This has been a recurring problem for me.
19:43 whytewolf using vagrent or my openstack cluster
19:43 jmickle So you’ve unautomated automated processes ;-)
19:43 noraatepernos I need to adjust my cloud-init to lock minions down to a specific version.
19:43 astronouth7303 noraatepernos: can't use 2017 minions with 2016 master
19:43 whytewolf no
19:43 whytewolf that would be silly.
19:43 astronouth7303 can use 2017 master with 2016 minions
19:43 noraatepernos astronouth7303: What would you do?
19:44 astronouth7303 downgrade/rebuild those minions
19:44 lordcirth_work noraatepernos, why can't you update the master?
19:44 noraatepernos Yeah but then I still have minions on 2016.
19:44 noraatepernos “can use 2017 master with 2016 minions” <— ahhh ok
19:44 noraatepernos Missed that.
19:45 astronouth7303 yeah, the upgrade instructions are to upgrade your master first and then your minions
19:45 jmickle ok so, what you are saying whytewolf is you reccomend simply writing states/formulas/modules and spinning them up on a vagrant instance to verify they exist manually each time?
19:46 whytewolf who said anything about manual?
19:46 jmickle so you have a CI server do a vagrant up?
19:46 whytewolf yeah. don't you?
19:46 whytewolf [and i more use openstack then local testing]
19:47 jmickle okay…..
19:47 Rumbles joined #salt
19:47 whytewolf check into git. go get coffee. get report.
19:48 jmickle Yeah we do similiar not, it just isn’t working
19:48 jmickle we want something a little more detailed
19:48 jmickle IE test-kitchen
19:50 leonkatz joined #salt
19:50 whytewolf welp, if there is anything that doesn't require the use of ruby to be installed i might consider trying it. but one of the reason i choose salt over puppet or chef is i don't have to install yet another lang
19:52 jmickle got it…
19:53 jmickle so with that said, who uses SPM?
19:53 jmickle s/uses/knows/g
19:54 whytewolf well what exactly is the issue you are having?
19:54 onlyanegg joined #salt
19:54 jmickle jmickle: first: I built an SPM package per the docs and when I try to install it, it gives me Cannot install package package-name, no source package
19:56 pbandark1 joined #salt
19:56 whytewolf so, either the repo isn't updated. or is pointing at the wrong location.
19:57 numkem joined #salt
19:57 jmickle I ran the update, it downloaded the metadata
19:57 jmickle I also ran the spm install with the file name directly
19:58 whytewolf it gives that error with the file directly?
19:58 jmickle yep
19:59 whytewolf with the file directly did you include the local specifier?
19:59 whytewolf [spm local install <full path>]
20:00 jmickle yep
20:00 jmickle If that worked I wouldn’t be asking :-D
20:00 whytewolf hey i have to ask.
20:00 jmickle :-)
20:00 jmickle let me ask you this...
20:01 jmickle hosting the repo, is just a matter of hosting the files that spm create_repo creates
20:01 jmickle basically the metadata file and the .spm files
20:01 jmickle right?
20:01 whytewolf yeah pretty much
20:01 whytewolf you can see the metadata in the spm cache right?
20:02 jmickle how do you view the cache for spm
20:02 jmickle aside from /var/cache/spm
20:02 whytewolf look in /var/cache/salt/spm
20:02 jmickle those files are encoded
20:03 jmickle basically i’ve got the files uploaded to an s3 bucket
20:03 jmickle to host the spm repo
20:03 whytewolf the files for every repo you have are there though right and seem to be updated with correct timestamps?
20:03 jmickle yeha
20:03 jmickle yeah*
20:03 jmickle only working with 1 package right now so
20:05 whytewolf any more info when you use -l debug with the spm command?
20:06 whytewolf would say try updateing the repo with it and run the local install and the remote install
20:07 jmickle ok so here is an interesting tidbit
20:07 jmickle i just changed the my_repo url: to a file:// param
20:07 jmickle that points to the built path
20:07 jmickle and it works
20:07 jmickle is there some content-type these need to be served with
20:07 whytewolf what was the rul you were using with the repo before?
20:08 jmickle i have it pointed at an s3 bucket with website hosting
20:08 whytewolf so you are using http
20:08 whytewolf or https
20:09 kerrick joined #salt
20:09 jmickle http
20:09 whytewolf shouldn't need a speciel content-type
20:10 btorch have you guys ever experiecned issues when a new salt-minion is updated but the old one is still there running after the pkg install upgrade ?
20:10 whytewolf btorch: i did when i went from 2015 to 2016
20:10 btorch and then things like "salt-run manage.versions" and other salt commands just don't work properly due to two different stuff running
20:10 whytewolf took restarting the minion software twice to fix
20:11 btorch yeah same here but now going from 2015 to 2017 but I did see from 2015 to 2016
20:11 amiskell joined #salt
20:11 astronouth7303 btorch: don't run 2017.7 minions with a 2016.11 master
20:11 btorch I'm not
20:11 btorch master is alwasy ahead
20:13 amiskell Hello.
20:13 whytewolf anyway jmickle check the debug see if there is any more info given. find out why it can't seem to find the source file. if possable try curling the source file from system
20:14 amiskell I have a quick/easy question for you guys. With the 2017 release, osmajorrelease is now an integer so I need to modify a couple of my jinja templates to work with it. However, I'm not sure how to write it properly to work with integer.
20:14 jmickle [DEBUG   ] Missing configuration file: /etc/salt/spm
20:14 jmickle [DEBUG   ] Missing configuration file: /etc/salt/spm
20:14 jmickle [DEBUG   ] Missing configuration file: /root/.saltrc
20:14 jmickle [DEBUG   ] Configuration file path: /etc/salt/spm
20:14 jmickle [WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
20:14 jmickle [DEBUG   ] Installing package <package-name>
20:14 jmickle Cannot install package , no source package
20:14 jmickle @whytewolf ^^
20:14 whytewolf jmickle: don't paste to the channel
20:15 jmickle ok but no major errors
20:15 jmickle yes it is missing the spm config files but
20:15 whytewolf strange. bump it up to all instead of debug. maybe some trace data will be more relivant.
20:16 whytewolf also try the repo_update with all
20:16 whytewolf the config files missing should be fine
20:18 jmickle ahhhhhhh
20:18 jmickle that pointed it out
20:18 jmickle duhhhhh
20:18 jmickle the spm command update_repo is already plugging in a / in front of the package name
20:18 jmickle so adding a / on end of repo url
20:18 jmickle creates a // which kills it
20:18 jmickle and it fails silently
20:19 lordcirth_work well that's annoying
20:19 whytewolf ahhh, that would do it. might wanna put in a bug report for better error reporting on that.
20:19 seanacais joined #salt
20:20 jmickle yep
20:20 lordcirth_work / in a url should be silently fixed to /, or at worst rejected clearly
20:20 lordcirth_work er, //
20:20 jmickle yep
20:20 amiskell Nevermind, I found an example of the proper syntax for it.
20:20 whytewolf i know to many web servers that // redirects to root
20:26 jmickle ok now to make it work on kitchen-salt
20:26 jmickle it seems kitchen-salt wants to do an spm install <url/package.spm>
20:26 jmickle is that even valid?
20:26 btorch whytewolf: thanks
20:26 onlyanegg joined #salt
20:27 whytewolf i ... don't know that seems strange. and i have never seen that kind of spm install in thoery it might work
20:28 jmickle yeah
20:32 noraatepernos If I require sls: node does that imply the sls node/init.sls?  Or do I need to specify that?
20:32 noraatepernos It’s saying it’s an invalid sls
20:33 cyborg-one joined #salt
20:36 iggy node.sls or node/init.sls ... salt sees them as the same thing
20:39 whytewolf with require sls [when you are requiring the entire sls] you need to include the sls also
20:42 joe_n joined #salt
20:43 noraatepernos oh ok.
20:43 bildz Question:  Is it possible to configure a state that involves some ping ponging / return responses from various servers?  I'm looking to perform a series of tasks like (add FTP user on 1 server, export database on another, import database, start service on web server)
20:44 coredumb bildz: wouldn't it be better in an orchestrator?
20:44 bildz i wasnt aware that existed
20:44 whytewolf https://docs.saltstack.com/en/latest/topics/orchestrate/orchestrate_runner.html
20:44 bildz thanks!
20:45 noraatepernos Hmm.  I’m still getting “The following requisites were not found” with sls: node/init.sls even though I’m looking at the file.
20:46 whytewolf noraatepernos: no. you use sls: node but you need to also include: node
20:46 whytewolf https://docs.saltstack.com/en/latest/ref/states/include.html#include
20:52 noraatepernos Hmm, it says “include does not simply inject the states where you place it in the SLS file. If you need to guarantee order of execution, consider using requisites”
20:53 noraatepernos would include go under my cmd.run?  I basically want to make sure node is installed before running a command.
20:53 whytewolf require is a requisite
20:54 whytewolf the include goes before your cmd.run and you still use the sls:node
20:54 whytewolf https://docs.saltstack.com/en/latest/ref/states/requisites.html#require-an-entire-sls-file
21:01 noraatepernos Jeez even if I require - sls: node *inside* node/init.sls it still says not found.
21:01 whytewolf yes.
21:02 whytewolf the require has nothing to do with the filesystem. the include is a way of putting the "file" as a kind of state
21:03 noraatepernos Ok I think I got it working.
21:05 kerrick joined #salt
21:05 Hybrid joined #salt
21:07 jrklein joined #salt
21:11 amiskell Does anyone here have any experience with iptables inverse matching and salt?
21:12 dxiri joined #salt
21:12 iggy bildz: another way to handle that could be reactors... one state runs, then fires a custom event, which causes the master to run another state on another minion, etc
21:12 dxiri hi guys, can someone explain the difference between salt-virt and salt-cloud, and when I should use one over the other?
21:16 dxiri and the other question I has is where can I see the log from a state run?
21:17 noraatepernos joined #salt
21:17 iggy salt-virt would be to run VMs via salt on some sort of hypervisor, salt-cloud would be to talk to someone else's cloud
21:17 woodtablet astronouth7303: I see you had to downgrade and wait for 2017.7.1 too because of a bug. How are you preventing salt bootstrap from installing the latest version when spinning up a new minion ?
21:18 astronouth7303 you can pass salt bootstrap the version
21:18 astronouth7303 see it's `--help`
21:18 astronouth7303 and salt-cloud has an option for those args
21:19 woodtablet astronouth7303: ahhh thanks!
21:20 woodtablet dxiri: salt-cloud is pretty amazing and wonderful, and if you are using vmware, you can make that your local cloud and use salt-cloud there too
21:21 dxiri ok so, for plain kvm hypervisors that I control, what do you guys advise? salt-cloud or salt-virt?
21:22 dxiri the above explanations make me think salt-virt
21:24 woodtablet are you using kvm on physical host or as virtual machine ?
21:24 woodtablet caveaut from salt-virt page: Salt Virt does not work with KVM that is running in a VM. KVM must be running on the base hardware.
21:24 astronouth7303 oh, i've never used salt-virt. I'm using salt-cloud against our own VMware vSphere/ESXi
21:25 woodtablet i have never used salt-virt either only salt-cloud against vmware vsphere & aws
21:26 whytewolf i have a kvm hypervisor and never used salt-virt either [course i use openstack so salt-cloud made more sense]
21:28 jmickle joined #salt
21:30 dxiri woodtablet: kvm on physical host
21:30 dxiri kvm on a virtual machine will kill all performance and make life miserable :P
21:33 tiwula joined #salt
21:34 jrklein joined #salt
21:34 MTecknology salt-virt doesn't look like a thing I want to play with
21:35 woodtablet ya, the feature set looks really small for salt-virt
21:37 jrklein joined #salt
21:39 Kevin joined #salt
21:45 jrklein joined #salt
21:45 edrocks joined #salt
21:45 jrklein joined #salt
21:46 leonkatz joined #salt
22:11 kerrick joined #salt
22:15 Guest73 joined #salt
22:40 kerrick joined #salt
22:46 edrocks joined #salt
22:49 Guest73 joined #salt
23:18 jrklein joined #salt
23:21 jmickle joined #salt
23:29 XenophonF joined #salt
23:36 justanotheruser joined #salt
23:39 justanotheruser joined #salt
23:51 dxiri joined #salt
23:56 debian112 joined #salt

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