Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-09-28

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

All times shown according to UTC.

Time Nick Message
00:00 M-MadsRC joined #salt
00:00 cyborg-one joined #salt
00:03 kalessin joined #salt
00:05 brotatochip joined #salt
00:07 nsidhu joined #salt
00:07 joshin joined #salt
00:12 jas02 joined #salt
00:12 daxomati1 joined #salt
00:19 netcho joined #salt
00:19 barajasfab joined #salt
00:27 brotatochip joined #salt
00:28 pipps joined #salt
00:32 asoc_ joined #salt
00:35 brotatochip joined #salt
00:37 asoc joined #salt
00:38 XenophonF that looks like a bug in the kmod state/exec module
00:41 amontalban joined #salt
00:41 amontalban joined #salt
00:43 nahkiss joined #salt
00:43 johtso joined #salt
00:45 voxpop_ joined #salt
00:45 coldbrewedbrew joined #salt
00:45 coldbrewedbrew joined #salt
00:46 Valfor joined #salt
00:46 Valfor joined #salt
00:53 Guest72804 joined #salt
00:53 om joined #salt
00:54 jenastar joined #salt
01:06 emlee joined #salt
01:06 edrocks joined #salt
01:06 amontalban joined #salt
01:06 daxomati1 joined #salt
01:09 sjmh joined #salt
01:09 sandro_ joined #salt
01:11 upb joined #salt
01:13 jas02 joined #salt
01:19 upb joined #salt
01:29 brotatochip joined #salt
01:35 supermike_ Is there no PPA for salt on Ubuntu 16?
01:35 ashmckenzie joined #salt
01:35 hemebond1 supermike_: Use the official Saltstack repos. Not sure about a PPA.
01:36 k_sze[work] joined #salt
01:37 amontalban joined #salt
01:37 amontalban joined #salt
01:39 freelock[m] joined #salt
01:40 sebastian-w joined #salt
01:46 barajasfab joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.8.12, 2016.3.3 | Support: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
01:51 M-liberdiko joined #salt
01:53 pipps joined #salt
02:01 daxomati1 joined #salt
02:07 akhter joined #salt
02:13 jas02 joined #salt
02:19 Brijesh joined #salt
02:20 netcho joined #salt
02:21 dnull[m] joined #salt
02:25 hemebond1 How do people handle id's for resources created in previous steps when orchestrating AWS?
02:31 Brijesh joined #salt
02:35 jab416171 joined #salt
02:53 raspado hi all, i have multiple salt environments, whats a good way to check if any salt minions are calling a salt env? i want to terminate a few
02:53 hemebond1 Calling a salt env?
02:54 raspado yeah I have dev/test/prod salt environments, each with its own top file
02:54 hemebond1 With you so far...
02:55 raspado so all our minions use a highstate.apply schedule every 15 minutes and it basically calls the respective environment for any changes
02:55 hemebond1 You mean state.apply?
02:55 hemebond1 How are your minions "calling" the environment? Do you mean you have an environment configured in their config?
02:55 raspado yeah maybe
02:55 raspado yeah
02:55 raspado using salt's scheduling management
02:56 hemebond1 Well, if your minion config doesn't contain an explicit environment setting then the master (and top.sls files) decide what applies.
02:56 hemebond1 There's no calling from the minions.
02:56 raspado well.. let me rephrase, these are file_roots
02:56 raspado and each folder, we consider it an environment
02:57 hemebond1 Sure.
02:57 hemebond1 But the only thing specifying what state a minion gets are the top.sls files. They are all merged together (by default).
02:58 hemebond1 So you can ask a minion what states it will get using show_sls I think.
02:58 hemebond1 state.show_sls
02:59 raspado hmm maybe /var/log/salt/master might show minions querying the top.sls and i can probably do a match in there
02:59 hemebond1 Minions don't query anything.
02:59 raspado not even a state.apply?
03:00 hemebond1 salt 'myminion' state.show_top
03:00 raspado it doesnt hit the master?
03:00 hemebond1 It does hit the master, kind of, but the master decides what gets sent.
03:00 raspado ah k
03:00 hemebond1 So you could put the master log into debug mode and watch it compile the top.sls files and target the minion.
03:01 raspado yeah sounds like best approach, thx hemebond1!
03:01 hemebond1 Or just show_top for the minions.
03:01 hemebond1 Which shows you which environment and states will be applied to the minions you specify (or all, if you use '*')
03:03 cliluw joined #salt
03:06 barajasfab joined #salt
03:09 edrocks joined #salt
03:12 pipps joined #salt
03:14 jas02 joined #salt
03:19 sjmh joined #salt
03:22 jab416171 joined #salt
03:48 daxomati1 joined #salt
03:54 daxomati1 joined #salt
04:09 nebuchadnezzar joined #salt
04:13 jimklo joined #salt
04:15 jas02 joined #salt
04:16 yidhra joined #salt
04:18 sandking joined #salt
04:21 netcho joined #salt
04:22 asoc joined #salt
04:32 ivanjaros joined #salt
04:33 pipps joined #salt
04:38 systo joined #salt
04:40 Ashald joined #salt
04:41 amontalban joined #salt
04:48 daxomati1 joined #salt
04:53 onlyanegg joined #salt
05:03 DEger joined #salt
05:07 oliver_are joined #salt
05:08 rdas joined #salt
05:10 bocaneri joined #salt
05:10 edrocks joined #salt
05:16 jas02 joined #salt
05:25 Brijesh joined #salt
05:25 sen_ joined #salt
05:27 sen_ Hey Guys
05:27 sen_ salt-master --version salt-master 2016.3.3 (Boron)
05:27 sen_ salt-minion --version salt-minion 2016.3.3 (Boron)
05:27 sen_ dry_run mode is not working for me
05:27 sen_ salt '*'   state.apply pkg-management/add_rsyslog  test=True
05:27 sen_ salt '*'   state.apply pkg-management/add_rsyslog
05:28 sen_ both are giving me same output
05:28 hemebond1 They both make the change?
05:28 hemebond1 Wait...
05:28 hemebond1 That looks wrong.
05:28 hemebond1 What is the slash supposed to do there?
05:28 om joined #salt
05:29 sen_ is there any know bug are you guys are aware of
05:31 sen_ https://docs.saltstack.com/en/latest/ref/states/testing.html  showing support 2016.3.3
05:31 hemebond1 So.... what are the slashes for?
05:32 hemebond1 Are slashes a thing now?
05:32 sen_ the bug which I can see are mostly on the older version
05:33 hemebond1 Am I invisible?
05:33 xmj Yep
05:33 sen_ @hemebond1 sorry not understanding what are you trying to say
05:33 hemebond1 Does "pkg-management/add_rsyslog" actually work? I thought it was "pkg-management.add_rsyslog"
05:34 hemebond1 Also, does it actually apply the change?
05:35 hemebond1 Have you pasted the output anywhere?
05:35 sen_ dot also not making any difference
05:35 sen_ Total states run:     2 Total run time:   6.421 s
05:35 sen_ I don't find any difference in output
05:36 felskrone joined #salt
05:36 hemebond1 Sure, but is the change actually applied?
05:36 felskrone joined #salt
05:37 sen_ my bad :(
05:38 sen_ I tried to remove the package and run
05:38 sen_ now it showing the difference between dru_run and actual one
05:38 sen_ Documentation need to be more specific
05:39 hemebond1 Does it not say that it shows you what would be done but doesn't actually do it?
05:39 Brijesh joined #salt
05:39 * hemebond1 just learned that peanuts grow underground
05:41 sen_ The return information will show states that will be applied in yellow and the result is reported as None.
05:42 sen_ @hemebond1 Cool :) the above statement is not  correct in my case
05:42 hemebond1 Not correct?
05:43 hemebond1 What was it showing you?
05:48 jimklo joined #salt
05:57 jxm___ joined #salt
06:02 zer0def joined #salt
06:06 kaak joined #salt
06:11 ivanjaros3916 joined #salt
06:17 jas02 joined #salt
06:27 sgo_ joined #salt
06:36 daxomati1 joined #salt
06:40 mythical joined #salt
06:40 mythical Hello world
06:51 oliver_are joined #salt
07:05 toanju joined #salt
07:06 cyborg-one joined #salt
07:07 sgo_ joined #salt
07:08 DarkKnightCZ joined #salt
07:12 edrocks joined #salt
07:12 ivanjaros joined #salt
07:18 jas02 joined #salt
07:24 zulutango joined #salt
07:26 Brijesh1 joined #salt
07:27 Brijesh1 joined #salt
07:30 krymzon joined #salt
07:30 jeddi joined #salt
07:30 daxomati1 joined #salt
07:32 mackripeum joined #salt
07:34 ronnix joined #salt
07:34 mackripeum hi, I'm trying to find a way to associate an eip on a ec2 instances with a salt state (https://docs.saltstack.com/en/latest/ref/states/all/salt.states.boto_ec2.html#salt.states.boto_ec2.instance_present), any way to do that ?
07:35 mjimeneznet joined #salt
07:35 keimlink joined #salt
07:36 daxomati1 joined #salt
07:36 barmaley joined #salt
07:40 pipps joined #salt
07:42 Brijesh joined #salt
07:43 amontalban joined #salt
07:43 amontalban joined #salt
07:46 jhauser joined #salt
07:46 losh joined #salt
07:47 akhter joined #salt
07:49 DarkKnightCZ joined #salt
07:52 dariusjs joined #salt
08:01 jhauser joined #salt
08:08 TyrfingMjolnir joined #salt
08:14 s_kunk joined #salt
08:18 jas02 joined #salt
08:22 lero joined #salt
08:28 Qwazerty joined #salt
08:28 mikecmpbll joined #salt
08:31 sgo_ joined #salt
08:33 Rumbles joined #salt
09:02 lero joined #salt
09:06 watersoul joined #salt
09:12 haam3r joined #salt
09:14 edrocks joined #salt
09:19 jas02 joined #salt
09:24 daxomati1 joined #salt
09:24 CeBe joined #salt
09:27 viq Any ideas where to look for how salt looks up machine's floating  IP on OpenStack?
09:28 smcquay joined #salt
09:28 rdas joined #salt
09:35 ronnix_ joined #salt
09:38 agend joined #salt
09:45 amontalban joined #salt
09:45 amontalban joined #salt
09:46 jxm___ joined #salt
10:01 pipps joined #salt
10:05 hemebond1 viq: Grains?
10:06 hemebond1 Oh.
10:06 hemebond1 You mean how it gets the value for the grain?
10:06 viq yes
10:06 viq and/or network.ipaddrs module
10:06 planetrobbie joined #salt
10:06 AndreasLutro what is the name of the grain?
10:08 viq There's several: ip4_interfaces[eth0], ip_interfaces[eth0], ipv4
10:08 pppingme joined #salt
10:08 viq (and s/v4/v6/, but I don't care about those right now)
10:08 hemebond1 Have you looked in salt/modules/network.py?
10:08 AndreasLutro pretty sure it just does `ip link show` or `ifconfig`
10:09 AndreasLutro and parses the output
10:09 shaer joined #salt
10:09 viq Except that gives you the "internal" IP, not the floating one.
10:09 pppingme joined #salt
10:09 AndreasLutro what does?
10:10 hemebond1 Yip, "ip link show" or "ip addr show"
10:10 hemebond1 Is the floating IP not an interface on the VM?
10:11 AndreasLutro if it doesn't show up in either `ip link show` or `ip addr show` or `ifconfig -a` then it shouldn't show up in the grains
10:11 viq ip and ifconfig are able to give you only the IP configured on the machine itself. Salt is also aware of "cloud" stuff, and able to query EC2 or OpenStack for the "external", floating IP assigned to the machine, over which you can actually reach the machine.
10:11 viq hemebond1: no
10:11 viq AndreasLutro: it does
10:11 AndreasLutro hmm... did you create said VMs with salt-cloud? maybe it creates files in /etc/salt/grains.d on creation
10:12 viq (or, well, did, but openstack admins changed something and it broke and I'm trying to find how it works to diagnose that)
10:12 AndreasLutro I definitely can't find anything indicating that the salt minion itself finds these external IPs
10:12 M-liberdiko joined #salt
10:12 hemebond1 Might be some custom grain thing for OpenStack that does a query.
10:12 AndreasLutro could also be a custom grain python file in your salt setup of course
10:13 hemebond1 For EC2 you have to use a custom grain to read EC2 tags.
10:13 infrmnt joined #salt
10:13 jxm___ joined #salt
10:16 viq It used to work out of the box on default salt installation. It stopped after OpenStack admins changed something. I'm trying to find out how it worked to trace at what point it broke.
10:17 AndreasLutro you didn't answer my question - do you use salt-cloud?
10:18 viq No, I do not.
10:18 AndreasLutro in that case whatever is setting the grains has to be within your own salt setup
10:18 daxomati1 joined #salt
10:18 AndreasLutro reading the source of salt I can see that it literally just does those ip/ifconfig commands
10:19 AndreasLutro to populate the ipv4 and ip[46]_interfaces grains
10:19 viq Not necessarily - AWS queries for metadata
10:20 jas02 joined #salt
10:23 AlexN joined #salt
10:29 AlexN Hello together, If I got this correct this channel is for incron. I am facing a weird behaviour. When calling ON_MODIFY scripts via shell it works but using incron it executes first one only. https://gist.github.com/AMartinNo1/68541de66fa860dfbefe4d6305465fdf
10:30 hemebond1 viq: I don't think any EC2 metadata is available automatically.
10:30 hemebond1 It wasn't available to me in any grains I saw until I added a custom grain to fetch it.
10:30 hemebond1 AlexN: This channel is for SaltStack.
10:31 AlexN hemebond1: I see, hmm, I have in a log https://irclog.perlgeek.de/salt/2016-06-26 an discussion about sth. was incron.
10:32 hemebond1 SaltStack has modules for working with incron apparently.
10:32 hemebond1 But this is not for Incron support.
10:33 AlexN I see, thanks
10:37 haam3r joined #salt
10:38 amontalban joined #salt
10:42 dariusjs joined #salt
10:53 teryx510 joined #salt
10:53 infrmnt joined #salt
11:00 amcorreia joined #salt
11:11 infrmnt joined #salt
11:12 daxomati1 joined #salt
11:14 jas02 joined #salt
11:16 edrocks joined #salt
11:17 dnull[m] joined #salt
11:17 M-MadsRC joined #salt
11:17 freelock[m] joined #salt
11:23 jas02 joined #salt
11:28 pipps joined #salt
11:29 oliver_are joined #salt
11:30 cyborg-one joined #salt
11:33 haam3r joined #salt
11:38 numkem joined #salt
11:44 daxomati1 joined #salt
11:54 infrmnt joined #salt
11:54 akhter joined #salt
11:55 ksa I've cloned apt-formula, added git to fileserver_backend, added the repo in master under gitfs_remotes, restarted the salt master. But unble to load the formula in any way. Any hints? (tested clone repo with root works, and it does) . I'm a bit lost here.
11:55 hemebond1 ksa: Checked the master log for errors?
11:56 ksa [ERROR   ] Data passed to highstate outputter is not a valid highstate return: {'se-man1.mx-wecloud.net': ['Specified SLS apt in saltenv base is not available on the salt master or through a configured fileserver']}
11:56 hemebond1 I mean when the master starts up.
11:57 ksa Not really
12:00 hemebond1 "added the repo in master"
12:00 hemebond1 What does that mean?
12:01 ksa Added it under gitfs_remotes in /etc/salt/master
12:01 hemebond1 So you created a new environment for it?
12:01 ksa I just have base
12:01 hemebond1 Because as far as I know the master branch is mapped to base.
12:01 ksa I trie to fork master branch on the repo to base but no effect either
12:02 hemebond1 Oh I see.
12:02 hemebond1 Sorry, I got confused there.
12:03 ronnix joined #salt
12:03 hemebond1 Are you using python-pygit2 or gitpython?
12:05 ksa I didn't install any of them myself, but python-git is installed when checking. But I did not specify which to use in the config, so should be default.
12:07 edrocks joined #salt
12:08 hemebond1 Anyone know what PrivateIPAddresses[{'Primary': True}] on https://docs.saltstack.com/en/latest/topics/cloud/aws.html#cloud-profiles is supposed to do? It just seems to break instance creation.
12:09 cyteen joined #salt
12:10 infrmnt joined #salt
12:16 edrocks joined #salt
12:23 jas02 joined #salt
12:25 edrocks joined #salt
12:25 west575 joined #salt
12:26 ivanjaros joined #salt
12:33 colttt joined #salt
12:39 DammitJim joined #salt
12:39 infrmnt joined #salt
12:42 averell joined #salt
12:43 colttt joined #salt
12:47 yuhlw____ joined #salt
12:59 drawsmcgraw joined #salt
12:59 Brew joined #salt
13:03 fizmat joined #salt
13:07 pipps joined #salt
13:11 bowhunter joined #salt
13:16 impi joined #salt
13:17 DammitJim joined #salt
13:20 infrmnt joined #salt
13:24 jas02 joined #salt
13:27 Shirkdog joined #salt
13:28 aagbds joined #salt
13:33 edrocks joined #salt
13:37 fizmat joined #salt
13:40 Tanta joined #salt
13:45 scoates joined #salt
13:48 StolenToast can anyone see why this pkg.install state returns false even if it worked? https://gist.github.com/anonymous/35d2492a05b2016c9fb35b311fd16c47
13:49 StolenToast I've tried with a source and from a repo, both times it will install and then say it failed to install
13:49 impi joined #salt
13:50 Tanta http://pastebin.com/raw/maJHTH47 like this StolenToast
13:50 subsignal joined #salt
13:51 Tanta I always use the -sources: dict when I have custom RPMs
13:51 StolenToast I did that
13:52 StolenToast in the past this happened because I didn't explicitly specify the correct version number (when using a repo), but this package has a weird version format: V14.0-B8
13:53 StolenToast I wouldn't THINK that should matter...
13:53 Tanta where's the stderr
13:55 amontalb1n joined #salt
13:56 StolenToast I don't think it generates anything for stderr...
13:56 StolenToast https://gist.github.com/anonymous/d26f1ec6238e1f9acb38a5275f751270
13:57 StolenToast only the salt master seems to think it didn't work
13:57 StolenToast complete with a little "Error: completed successfully" message
13:59 c4t3l joined #salt
14:00 c4t3l hello salt folks.  I have a question regarding beacons.  Do they cache events when disabled?  I'm seeing some behavior with inotify that looks like its firing events after re-enabling beacons
14:00 Brijesh joined #salt
14:00 DEger joined #salt
14:02 c4t3l I have a reactor setup that fires off a 'yum history info' and emails my admins when yum.log is modified.  When I disable beacons via "beacons.disable" no messages are deleivered in this state.  It is not until I issue "beacons.enable" that the event is fired and I get emails
14:03 c4t3l This could generate tons of spam during patching events
14:08 demize joined #salt
14:09 demize Hmm, how do I make my managed file depend on a directory?
14:09 AndreasLutro require: [ file: /path/to/dir ]
14:10 AndreasLutro assuming you have a file.directory state for the dir
14:12 demize Ah, thanks.
14:12 toastedpenguin joined #salt
14:14 subsigna_ joined #salt
14:15 salato joined #salt
14:15 infrmnt joined #salt
14:17 yuhlw____ joined #salt
14:17 salato hello, I have sls states that defines for every hosted app,  jinja template varialbes to configure the various services, variables named like dbname, dbuser, etc... I would like to define some commands through states that uses those variables , what is a good way to do that?
14:19 salato for example issuing salt dev* cmd.run 'mysqldump -u something -psomething something' I get a db dump, I have a state that defines a webapp and uses {{ dbname }} {{ dbuser }}.. to configure that app, I would like to define a state that executes that command for that app, for example something like salt dev* state.apply webapps.example.service.dbdump , without specifying on the command line those user and password
14:21 racooper joined #salt
14:23 Brew joined #salt
14:25 jas02 joined #salt
14:25 Cimmx joined #salt
14:25 ssplatt joined #salt
14:28 dendazen joined #salt
14:30 jerrykan joined #salt
14:33 promorphus joined #salt
14:34 promorphus joined #salt
14:35 promorphus Is it possible to use pillar data in custom grains?
14:36 oida_ joined #salt
14:41 armonge joined #salt
14:47 infrmnt joined #salt
14:50 keltim joined #salt
14:56 bfrog joined #salt
14:59 _JZ_ joined #salt
15:01 haam3r joined #salt
15:03 DarkKnightCZ joined #salt
15:06 subsignal joined #salt
15:07 darvon joined #salt
15:07 pfallenop joined #salt
15:07 pfallenop joined #salt
15:08 subsigna_ joined #salt
15:11 c4t3l from time to time I am seeing duplicate responses to my salt remote execution commands.  Does anyone else experience this?  I am running 2016.3.1
15:18 tiwula joined #salt
15:22 infrmnt joined #salt
15:23 sp0097 joined #salt
15:23 hasues joined #salt
15:26 jas02 joined #salt
15:27 bakins joined #salt
15:30 jimklo joined #salt
15:31 lv_ joined #salt
15:35 Trauma joined #salt
15:36 aawerner joined #salt
15:36 bmccormick joined #salt
15:36 bmccormick having trouble using salt-cloud to deploy a vm. I can't seem to get it to create the cdrom at all, let alone with an iso image in it
15:37 bmccormick anyone have an example profile that connects an iso to the vm?
15:37 cmarzullo I haven't had to do that.
15:37 Tanta mount the .iso as a loopback filesystem
15:38 Tanta no need for a cdrom dev at all
15:38 bmccormick I followed the examples on the salt documentation on the following two pages:  https://docs.saltstack.com/en/latest/topics/cloud/vmware.html
15:39 ozux joined #salt
15:40 bmccormick Tanta: do you have a profile for salt-cloud that does that?
15:40 bmccormick I need it to install from the iso after it is mounted
15:43 west575 joined #salt
15:43 Tanta might help if you post what you've got in the state and any runtime errors
15:44 Tanta this vmware salt cloud syntax is nasty
15:47 bmccormick http://pastebin.com/1cv1cjfS
15:47 bmccormick there is my profile.conf file
15:47 feld joined #salt
15:47 bmccormick it runs, vm is created
15:47 bmccormick it boots
15:48 bmccormick no errors
15:48 bmccormick but no cdrom added
15:48 bmccormick tried it multiple times with multiple configs
15:48 bmccormick no cdrom love
15:49 Shirkdog joined #salt
15:58 ekristen joined #salt
16:00 MTecknology bmccormick: what part isn't working?
16:03 infrmnt joined #salt
16:18 infrmnt joined #salt
16:21 lero joined #salt
16:22 woodtablet joined #salt
16:23 numkem joined #salt
16:26 jas02 joined #salt
16:29 bmccormick MTecknology: it won't mount or create the cdrom
16:29 bmccormick I can NOT get it to create a dvd/cdrom, nor can I get it to mount an iso image
16:29 bmccormick I just did it again and tried to mount the dvd drive on the esxi head and it won't even do that
16:30 rubenb joined #salt
16:30 bmccormick if I run the command and go into vsphere I see the hardware
16:30 bmccormick and every other piece of hardware I tell it to create shows up
16:30 bmccormick and is working, EXCEPT a dvd with the iso mounted
16:31 Vaelatern joined #salt
16:32 infrmnt joined #salt
16:35 Salander27 joined #salt
16:35 promorphus joined #salt
16:35 whytewolf bmccormick: have you checked vmwares logs to make sure it isn't throwing an error like it can't find the iso image?
16:35 wendall911 joined #salt
16:35 mikecmpbll joined #salt
16:36 sjmh joined #salt
16:38 tapoxi joined #salt
16:39 bmccormick whytewolf: shouldn't it at least create the device even if it can't find it?
16:39 RedundancyD joined #salt
16:39 whytewolf in my experence with vmware. no
16:40 whytewolf it only creates a cdrom when it actually attaches a image
16:40 bmccormick ok
16:40 bmccormick let me check there and see
16:41 ssplatt joined #salt
16:41 bmccormick thanks for the suggestion
16:41 whytewolf however I would also take anything i say about vmware with a grain of salt. I have used it a lot in the past. but i would not call myself an expert.
16:44 wendall911 left #salt
16:44 bmccormick hey I will take any suggestions
16:44 bmccormick it is driving me nuts that everything EXCEPT the mounting the iso is working
16:44 wendall911 joined #salt
16:45 hasues bmccormick: Are you sure you created the device on the machine image?
16:45 hasues bmccormick: Or are you say having Salt create that image from scratch?
16:45 hasues (which I have never done before)
16:46 hasues Don't know if you can do it, actually.
16:46 bmccormick I create the iso image in my jenkins builds
16:46 bmccormick the image is there
16:46 bmccormick I can deploy and test it
16:46 bmccormick manually
16:46 bmccormick JUST want salt to mount it when it creates the vm
16:46 bmccormick which it does fine
16:47 wendall911 joined #salt
16:48 onlyanegg joined #salt
16:48 Brijesh joined #salt
16:50 om joined #salt
16:52 beowuff joined #salt
16:53 wendall911 joined #salt
16:57 pipps joined #salt
16:58 bmccormick whytewolf: the logs that I can find in vsphere show no messages about the iso imager
16:58 bmccormick image at all
17:01 armonge joined #salt
17:02 whytewolf okay, then i have no idea.
17:03 zer0def is there a way to use a `unless` or `creates` against minions when orchestrating `salt.function` on them?
17:04 zer0def that's from a runner's perspective
17:04 edrocks joined #salt
17:05 whytewolf zer0def: instead of trying to make salt.function stateful. why not use salt.state to call a state file?
17:06 jenastar joined #salt
17:07 zer0def i guess i could make use of `onchanges` based on a state's or function's outcome
17:08 zer0def still debating on whether existence on a single machine called within orchestration is sufficient
17:09 hasues bmccormick: Have you used vcenter or something to determine if the image from which you are trying to instantiate actually has a cdrom device created?
17:10 hasues bmccormick: If you are thinking that Salt Cloud will automatically create a device if it is not present in the image, it will not.  That is not Salt Cloud's responsibility.  The image needs to have those things previously defined in them.
17:11 krymzon joined #salt
17:11 hasues bmccormick: Now, If you took an image after it was instantiated and ran some command in the image to download an ISO or run a mount with a loopback command, it could probably pull that off.  However, the image needs to have the virtual hardware added and such.
17:12 hasues bmccormick: Also, I would not create images or templates with drives already mounted and present, because if that iso that you have presented to the image is not present and you make it into a template or image, it will expect that to be there, and it will not launch at all should it not be there. (I believe is how that works).
17:13 mikecmpbll joined #salt
17:24 zer0def whytewolf: thanks for straightening me out :)
17:26 bmccormick hasues: I am trying to create a totally new image/vm
17:26 bmccormick from scratch
17:27 bmccormick hasues: when I check the vm in vsphere console, there is no cdrom there at all
17:27 jas02 joined #salt
17:28 bmccormick hasues: I want to create a new vm with all the hardware there, that part is working, except cdrom.  Create the image, mount the iso image to the virtual dvd, then reboot. If that happens the rest is fine
17:29 bmccormick hasues: just can't get the iso to mount or show up.
17:30 rawzone^ joined #salt
17:34 om joined #salt
17:39 whytewolf bmccormick: well, try adding -l debug
17:39 whytewolf to see why it might be failing from salts perspective
17:40 J0hnSteel Hello, using salt['mine.get']('*', 'master_node') I get {'salt-slave01': {'master': '192.168.20.13'}}. How can I get to the master value in a jinja template?
17:41 Brijesh joined #salt
17:44 Skimice joined #salt
17:44 nidr0x joined #salt
17:44 bmccormick whytewolf: I have been running with -l debug the entire time
17:45 bmccormick no messages except waiting for it to finish, no errors
17:45 whytewolf bmccormick: odd. do you have any kind of extra lines in the yaml?
17:46 Skimice Hello all! I ran into an issue that I'm hoping someone could help me with. I'm trying to get our salt minions to clone our git repo and are running into a problem where it isn't using the right port. Because of our firewall, all external connections to the repo are done on a different SSH port. I've attempted to define the SSH port in a config file that is sent via the salt master. But every time I attempt to clone the repo it still us
17:46 Skimice any suggestions?
17:47 JPT joined #salt
17:48 GP_MikeD joined #salt
17:50 cscf Skimice, have you tried putting the port number in the address string?  You might need to quote it.
17:52 RandyT yo yo
17:52 RandyT trying to do something to this effect. https://gist.github.com/rterbush/20839638fb082eee9dd2d61df213e4e0
17:52 RandyT finding that salt does not like that format...
17:53 MadHatter42 joined #salt
17:53 jas02 joined #salt
17:53 RandyT is there another approach to this? will it parse newline to send a series of commands on  each line?
17:54 RandyT another way to uniquely identify each cmd.run?
17:55 whytewolf oh, yeah you can't have more then one module in a state stanza
17:55 whytewolf err i mean the same module multiple times
17:55 RandyT yeah, discovering that which forces a more verbose approach...
17:56 nidr0x joined #salt
17:56 cscf You can use | to get multiline strings iirc
17:56 RandyT just wondering if I am missing something else
17:56 RandyT cscf: ok, will give that a try
17:56 whytewolf | won't work for putting the same module in the same stanza. it is a limitation of salt
17:57 RandyT would probably be better to pace this a  bit rather than hitting the minion with a 100 of these. :-)
17:57 whytewolf | is a literal it just makes everything after it a string
17:57 cscf whytewolf, no, but he could make a single cmd.run with all 4 lines, right?
17:57 ps10gel joined #salt
17:57 RandyT that is what I understood cscf to suggest was to just use opening | and then repeat the shell command.
17:58 whytewolf would be better to make a script. and use cmd.script
17:59 RandyT great point. would be easier to manage state that way I suspect
17:59 GP_MikeD1 joined #salt
17:59 ps10gel https://github.com/saltstack/salt/releases <-- Shouldn't 2016.3.3 be tagged as the latest release? When referencing the "latest" release in all the Salt docs, it means 2016.3
18:01 whytewolf ps10gel: iirc that is sorted by date. and 2015.8.12 was released after 2016.3.3 [security and bug fixes]
18:01 Brijesh joined #salt
18:03 bfrog hmm.. so in my reactor for cloud destroyed events I'd like to remove some route53 records for the destroyed vm
18:03 ps10gel Hmm, okay. Is there a more reliable way to pull the latest release of the latest branch? I'm using the GitHub API right now, but that's currently pointing to 2015.8.12
18:03 haam3r joined #salt
18:03 impi joined #salt
18:03 bfrog local.boto_route53.remove_record: doesn't actually seem to get run, is there some logging for that sort of thing? /var/log/salt/master isn't showing anything
18:04 hvn joined #salt
18:04 hvn joined #salt
18:04 bfrog I should say boto_route53.delete_record
18:04 Aleks3Y joined #salt
18:04 om joined #salt
18:05 toastedpenguin joined #salt
18:05 whytewolf ps10gel: that i do not know. you could look at how the bootscrap script does it when it is told to use github
18:06 RandyT bfrog: it would be in the minion log wherever you are executing that module
18:06 bfrog oh... hmmm the minion is destroyed at that point though
18:06 bfrog so maybe I need to do destroying instead
18:06 RandyT and of course that minion must have the profile or keys to execute it
18:06 bfrog or can I run that on the master instead
18:07 RandyT would not think that every minion would have ability to delete route53 records...
18:07 bfrog like salt.boto_route53 rather than local
18:07 RandyT would likely want to run that on the master minion
18:07 GP_MikeD1 I created a template for a tomcat webserver config file. Now I added a "valve" line in the config file and jinja doesn't seem to like the tomcat variable syntax. For example, %{Referer}i is a variable in the tomcat config. jinja thinks it's jinja syntax. Is there a way to say "ignore this line" from the jinja perspective?
18:07 bfrog yeah preferably only the master does that sort of thing actually
18:07 whytewolf bfrog: i would say run the boto command from master [put a minion on the master cause i don't think there is a boto runner]
18:07 RandyT and you might need to trigger it in an orchestrate on the master from your reactor
18:07 bfrog I have a minion on the master now
18:08 pipps joined #salt
18:08 bfrog I guess I need to learn more about orchestrate
18:09 RandyT whytewolf: would correct me if I am wrong about the orchestrate, but I was down this path some time ago and whytewolf was quite helpful in my keeping my bearings in that reactor and minion process
18:09 toastedpenguin anyone created a state to sync data in S3 to local directory on a minion?
18:10 whytewolf toastedpenguin: i used to have one a long time ago but lost it in transfering jobs. i used to use it for bootstrapping a master.
18:11 whytewolf it was swift not s3. but it is the ssame concept
18:11 MTecknology Did overstate get fully removed from salt?
18:11 RandyT toastedpenguin: not sure of your application, but I am successfully using s3 pillar on my minions...
18:11 daxomati1 joined #salt
18:12 toastedpenguin RandyT: I need to pull down the contents of an S3 bucket/folder when a minion is first launched and then provide a way to sync it afterwards
18:13 iggy MTecknology: it's been deprecated for a while now, wouldn't surprise me
18:13 toastedpenguin RandyT: how are you using S3 pillar?
18:13 whytewolf MTecknology: not sure. overstate was only being maintained until 2015.8 so it should be gone
18:14 pipps99 joined #salt
18:14 krymzon joined #salt
18:14 nixjdm joined #salt
18:15 RandyT toastedpenguin: just pointing to S3 ext_pillar for all of my pillar distribution to minions
18:15 MTecknology I'm not seeing it anymore; assuming it's fully removed. :)
18:15 RandyT toastedpenguin: data you are transfering to minion more than you can pass in through AWS user-data hook?
18:16 MTecknology aight, so is there any practical reason to not write a redis sdb module?
18:16 RandyT toastedpenguin: and user-data would not provide a way to sync data...
18:17 MTecknology It looks like sdb should only have .get, .set, and .delete, but it also looks like it's pretty free-form and could do much (MUCH) more
18:18 toastedpenguin RandyT: don't believe so, they are several small files
18:19 RandyT toastedpenguin: would think the S3 ext_pillar would get you very close.
18:20 bowhunter joined #salt
18:21 MTecknology ah, they /can/ only support get/set and that makes redis absurdly overkill as a backend. I get it now.
18:28 jhauser joined #salt
18:32 demize "supports GitPython, pygit2, and dulwich … same as the order in which they were listed: pygit2, GitPython, dulwich"  Keep your orders straight, documentation!
18:32 losh joined #salt
18:38 ronnix joined #salt
18:47 iggy send a PR
18:48 Salander27 joined #salt
18:49 edrocks joined #salt
18:50 MTecknology demize: link?
18:51 demize https://docs.saltstack.com/en/latest/ref/file_server/all/salt.fileserver.gitfs.html
18:51 demize iggy: Was planning on it, though don't have time right now.
18:51 abonilla joined #salt
18:52 abonilla Does anyone know the networks entry so a floating IP address is also associated in OpenStack when using salt-cloud?
18:52 abonilla There is a salt.cloud.clouds.nova.floating_ip_associate   but I don't know how is that represented in a config file
18:53 MTecknology Let's say something is in the reactor docs, but could be copy/pasted into orchestrate docs. Should that copy/paste happen? Should there be a link to the other doc? Should I just mention it? Or just nothing?...
18:53 MTecknology demize: read it again, it's pretty clear.
18:54 demize "the same as the order in which they were listed"
18:54 netcho joined #salt
18:54 netcho joined #salt
18:54 demize "Listed", as in previously.
18:54 MTecknology As of Salt 2014.7.0, the Git fileserver backend supports GitPython, pygit2, and dulwich to provide the Python interface to git. If more than one of these are present, the order of preference for which one will be chosen is the same as the order in which they were listed: pygit2, GitPython, dulwich (keep in mind, this order is subject to change).
18:54 hoonetorg hi
18:54 hoonetorg hv a question
18:55 hoonetorg hv a pillar which is None (not a string)
18:55 demize If it's not talking about the previous list of it, the language is wrong.
18:56 hoonetorg is context for a file.managed resource: "records: {{ z.records|default([]) }}"
18:56 MTecknology demize: you have a list of supported in one sentence; in the other, you have a list of the order they will load and a note that it's subject to change. It's too different statements that you're munging into one. It could be improved, but it's not misleading.
18:56 heewa joined #salt
18:56 hoonetorg in the context of the file template it becomes a string
18:57 MTecknology two*
18:57 demize MTecknology: And the sentence explicitly says "the order of preference is the same as the order in which they were listed", past tense, explicitly talking about the previous list.
18:57 hoonetorg i check for "record is iterable" and a string !is! iterable
18:57 demize It is grammatically incorrect if it's not talking about the previous list.
18:57 MTecknology demize: true, that should be are* listed
18:58 Skimice @cscf
18:58 hoonetorg how to provide a None-pillar as context for a file resource, so that it is None - type in file and not a string????
18:58 cscf Skimice, ?
18:59 Skimice sorry I didn't accidentally sent it without my full response.
18:59 cscf Skimice, k. Also, this isn't twitter, you don't need the @.
19:00 demize MTecknology: Essentially they just changed the second list when the order of preference was changed a while ago.
19:01 demize Though the commit that changed the order didn't actually change the preference order itself, hmm.
19:01 Skimice My bad I'm used to slack. :) Sorry for my ignorance I've just started embracing Salt. Is there an address parameter like "name" to use? I'm currently using: name: git@git.controlpad.com:web/core-ds.git "5736" did I completely misunderstand what you were meaning?
19:02 Skimice My bad I'm used to slack. :) Sorry for my ignorance I've just started embracing Salt. Is there an address parameter like "name" to use? I'm currently using: name: git@git.domain.com:web/core-ds.git "****" did I completely misunderstand what you were meaning?
19:02 demize Ah https://github.com/saltstack/salt/commit/5b05dfc3b3be396524b23c2ccb512f643e12c6d0
19:03 ecdhe cmarzullo, I've been thinking about the convo yesterday.
19:03 ecdhe I really believe in DRY and testing.
19:03 MTecknology demize: I'm doing docs updates now and willing to change the wording on things, but gotta know what's correct/accurate/etc.
19:04 ecdhe But every week, I like to reload the OS on my home laptop, and I have to cover things like getting the touchpad to work right in Ubuntu.
19:04 cscf Skimice, I am not sure if it works with git repos, but normally to specify port you can do: domain.com:3343
19:04 ecdhe So I use salt to enforce the various little tweaks.
19:05 cscf Skimice, http://stackoverflow.com/questions/1558719/using-a-remote-repository-with-non-standard-port
19:05 cscf ecdhe, wait, you reinstall every week??
19:05 demize MTecknology: Seems order of the list is correct https://github.com/saltstack/salt/blob/develop/salt/utils/gitfs.py#L2410
19:05 ecdhe cmarzullo, for just laptop maintenance, I feel like a bash->salt converter is a time saver and not inappropriate.
19:05 ecdhe cscf, salt makes it possible.
19:06 cscf ecdhe, possible, yes, but desirable why?
19:06 cscf All you're doing is dropping caches and redoing work & downloads
19:06 ecdhe cscf, for one, it makes new laptops possible.  If my laptop gets stolen, but I can have my workspace reimaged on new hardware, I win!
19:07 ecdhe Just about everything I do, from bookmarks, to code, is in a git repository and backed up to a repo host.
19:07 ecdhe I even have a repo for pulling it all back down.
19:07 ecdhe Well, a repo for a tool so I can pull down everything that's hot.
19:08 ecdhe So theoretically if I robbed of my laptop during international travels, salt gets me my working environment back, git gets me my files back, and FDE protects the hard drive that was stolen.
19:10 ecdhe It requires some discipline, but it's better than the situation before... I have laptop SSDs with windows on them that I can't repurpose because I may still need some utility that I had to install at a customer site once.
19:10 jas02 joined #salt
19:10 cscf ecdhe, Having a system where you can recreate it instantly is awesome.  My question is why you would actually press the button once a week.
19:11 ecdhe cscf, it's not EVERY week if I'm honest, but the reason?  To know that it works.
19:12 cscf My desktop has far too many random things on it to do that.  However, I recently was given a Surface tablet, and I am seriously considering setting it up stateless-ish
19:12 bmccormick figured it out!!!!
19:12 ecdhe If I cheated and installed 'traceroute' into ubuntu using apt-get, I won't have it this week.  (Traceroute's not in ubuntu by default because mtr is better) and I need it again this week, it won't be there...because I didn't install it with salt.
19:12 bmccormick online documentation is wrong for esxi 6
19:12 bmccormick the ide block needs to have a type: sata statement
19:12 bmccormick which is not in any documentation I could find
19:13 demize It's sort of in the same spirit as that untested backups are essentially no backups.
19:13 cscf ecdhe, it sounds like a good idea for config stuff (like apt-gets) but I would be afraid of accidentally losing user data somewhere.
19:14 ecdhe cscf, like I said, even bookmarks are version controlled with git and regularly commited to a repo offsite.
19:14 cscf ecdhe, what does that?  etckeeper?
19:14 MTecknology demize: dangit... now you're making me learn about automodule
19:15 ecdhe while true; do inotifwait -e MODIFY bookmarks.json; git commit bookmarks.json -m 'auto commit'; git push; done
19:15 demize MTecknology: ^_^
19:16 impi joined #salt
19:17 ecdhe cscf, I'm only using that for bookmarks because I already have the git infrastructure for code repos.
19:17 cscf ecdhe, yeah, I would probably just use Firefox Sync or whatever.
19:17 ecdhe I know there are other tools to manage bookmarks, heck, you can sync open tabs with your phone or whatever.
19:17 ecdhe Yeah.
19:17 cscf ecdhe, do you use a public repo host or selfhosted?
19:18 Trauma joined #salt
19:18 ecdhe cscf, self hosted at the moment.
19:18 cscf ecdhe, offsite, you said.  VPS?
19:18 ecdhe cscf, yes.  I mirror it onsite as well.
19:19 ecdhe laptop->vps->data-closet
19:19 ecdhe So if VPS went down (earthquakes?) I'd still have a copy.
19:20 cscf ecdhe, you sync through the local one, right?  That would save bandwidth.
19:21 ecdhe cscf, code is fairly lightweight and I don't need a whole lot of heavy assets aside from vagrant base boxes.
19:22 ecdhe The images are hosted, but not in the git repo.
19:23 cscf Yeah, this is interesting.  I think I will setup my Surface with Ubuntu 16.04 and have it be a salt-minion of my server.
19:24 cscf Hmm, once the minion connects, can the master can push commands without opening new connections?  ie works with NAT'd minions?
19:24 ecdhe cscf, I use masterless on my laptop... cd /srv/; git clone git.domain/salt.git pulls the states and salt-call --local state.highstate takes it away
19:25 pipps joined #salt
19:28 GP_MikeD1 left #salt
19:31 MTecknology demize: http://dpaste.com/1BTC2ZH
19:31 hoonetorg joined #salt
19:36 demize MTecknology: Looks better, but "is specified" should be "is present".
19:36 demize The preference order only applies when you haven't specified anyone manually.
19:36 demize Then it'll try each one in that order.
19:37 toanju joined #salt
19:42 Skimice Thanks csct, I've already tried that. My first action was to send the key and the config file into the SSH directory and then install git and clone the repo. I also tried git@domain.com:port to no avail. Do you know what user salt runs on? I'm testing in a vagrant environment so I put that info in the vagrant's .ssh directory. Does salt run as root on the minion server?
19:42 Skimice cscf*
19:44 hasues bmccormick: I want to make sure we are on th same page.  You want to build a new VM image with Salt Cloud?  Or you are trying to launch a VM from an image with Salt Cloud?
19:44 hasues bmccormick: I don't think SaltCloud was designed to build images.  I think if you wanted to build images, you may want to check out Packer.  SaltCloud is designed to launch instances from images.
19:45 cscf Skimice, by default salt runs as root on both sides
19:45 Skimice That helps thanks! I found if I just reconfigure SSH to natively use the port I need I can get it to connect.
19:47 hasues bmccormick: I stand corrected. I just checked the documentation.  It looks like SaltCloud does do what you are attempting.  It's changed a lot since I last used it.  Interesting.
19:48 demize Is it possible to set publisher_acl by group instead of user?
19:52 MTecknology demize: you sure that present > specified?
19:52 heewa joined #salt
19:52 bowhunter joined #salt
19:53 demize MTecknology: Yes.  The order is not used when you actually specify which one to use.
19:53 mikea joined #salt
19:53 MTecknology demize: available
19:54 mikea Can engines be stored in gitfs?
19:54 woodtablet joined #salt
19:54 demize That works too.
19:54 mikea as far as I can see, the engines_dir config option does nothing
19:56 MTecknology mikea: where do you see the documentation for that option?
19:57 mikea https://docs.saltstack.com/en/2015.8/topics/engines/index.html
19:57 mikea Salt engines must be in the Salt path, or you can add the engines_dir option in your Salt master configuration with a list of directories under which Salt attempts to find Salt engines.
19:58 mikea MTecknology, ^^
19:59 daxomati1 joined #salt
20:00 pipps joined #salt
20:03 brotatochip joined #salt
20:04 daxomati1 joined #salt
20:05 MTecknology demize: http://dpaste.com/2CQYTFF
20:06 MTecknology is specified -> is available **
20:07 MTecknology I stopped trying to reword it, decided to understand what it's trying to say, and just took a new approach. :)
20:08 MTecknology demize: ignore that... even more better
20:08 sgo_ joined #salt
20:10 oyvindmo joined #salt
20:11 jas02 joined #salt
20:12 bfrog left #salt
20:15 MTecknology demize: here we go... http://dpaste.com/3KPJDJ3
20:17 jk joined #salt
20:20 fxdgear joined #salt
20:20 MTecknology demize: I'd show you the not-diff version of this, but I promise you don't want to see it. :P
20:21 BattleChicken joined #salt
20:23 jas02 joined #salt
20:28 nsidhu joined #salt
20:31 pipps joined #salt
20:31 cscf Is there a way to push a single .sls (upgrading salt-minion) by itself, without editing top.sls?
20:32 toastedpenguin RandyT: do you have an example of the S3 ext_pillar you could share?
20:33 whytewolf cscf: salt '*' state.apply state_to_push
20:33 cscf whytewolf, awesome thanks
20:37 heewa joined #salt
20:38 toanju joined #salt
20:38 _aeris_ joined #salt
20:41 jas02 joined #salt
20:49 abonilla Anyone knows if there is a networks: -Floating True or so config for OpenStack?
20:51 voxpop joined #salt
20:52 whytewolf abonilla: for the openstack driver networks: - floating: - <floating network name>
20:52 whytewolf i don't know about the nova driver though.
20:55 c4t3l I have setup a simple inotify beacon to watch the /var/log/yum.log file for modifications (ie new install or package removal).  When I disable the beacon with `beacons.disable` and run my updates, no events are fired (which is good), but when I reactivate the beacon with `beacons.enable` I get all of the events that would have been sent at patch time.  Does anyone know if this is the expected behavior?
20:55 c4t3l is there some sort of inotify cache?
20:57 abonilla whytewolf: what do you use after /v2.0/ in the identity uri
20:57 whytewolf c4t3l: iirc inotify stores events in the kernel until they are read
20:58 whytewolf c4t3l: maybe it is only turning off the beacon, but not letting inotify know it shouldn't watch the file anymore
20:58 c4t3l whytewolf: does this sound like a bug?  I'm just wondering if anyone else has seen this behavior before
21:00 whytewolf abonilla: I honestly don't remeber. I havn't bothered with salt-cloud in a while. instead turned my focus to heat
21:00 ajw0100 joined #salt
21:00 whytewolf c4t3l: not sure if it is a bug.
21:00 abonilla whytewolf: OK, this driver is working for me... Thanks. But its deprecated :(
21:03 whytewolf abonilla: yeah. it has been deprecated for awhile. they have added functions and actions for adding floating ips but i havn't found documentation on how to get that to work with a profile
21:05 whytewolf adelcast: whats worse is the cloud i work with is always cutting edge. [currently Mitaka, but will upgrade to newton shortly after release] and the salt openstack tools become more and more unusable as keystone api 2.0 is phased out in favor of 3.0
21:06 abonilla Does anyone know what is salt-cloud trying to do after it spins up instances? Its trying to run an ssh running "date"
21:06 heewa joined #salt
21:07 whytewolf it is testing to see if it can access the minion. once it can it will install salt on the minion and key it for the master
21:08 lero joined #salt
21:08 abonilla whytewolf: its trying to run the command within "sh" and the syntax is invalid.
21:16 bfrog joined #salt
21:16 bfrog can I just run python in a state file somehow?
21:16 bfrog like when jinja and yaml have just failed me
21:16 bfrog mystate.py maybe even
21:16 west575 joined #salt
21:16 hemebond1 bfrog: Yes
21:16 whytewolf bfrog: https://docs.saltstack.com/en/latest/ref/renderers/
21:16 c4t3l use the python renderer
21:17 bfrog sweet
21:17 bfrog yeah, I mean, its not the norm seemingly, but yeah, jinja+yaml just can't do what I need them to do here
21:17 bfrog :-)
21:18 whytewolf using python or pyobjects actually is pretty common
21:23 shanecourtney joined #salt
21:23 sgo_ joined #salt
21:24 bfrog so much easier to truely "code" the problem out
21:28 rem5 joined #salt
21:29 abonilla whytewolf: why does it want to saltify the VMs? Is there a way to avoid it? I just want it to spin them up, nothing more.
21:29 pdayton joined #salt
21:31 whytewolf abonilla: because that is what salt-cloud is for. if you just want to spin up vms. just use the salt nova exacution module
21:38 kevinquinnyo How do I pass kwargs via salt-api to a module function in 2015.8?  I see in the docs for 2016.3.3 it shows that you can pass a 'kwarg' key, but it does not mention this in the 2015.8 docs
21:42 brotatochip joined #salt
21:45 promorphus joined #salt
21:45 jas02 joined #salt
21:50 pipps joined #salt
21:52 daxomati1 joined #salt
21:53 lero joined #salt
21:54 ajw0100 joined #salt
22:01 gpampara joined #salt
22:06 dendazen joined #salt
22:06 west575 joined #salt
22:18 kevinquinnyo i can't seem to pass kwarg to a function using salt api
22:19 brotatochip joined #salt
22:20 losh joined #salt
22:24 rem5 joined #salt
22:24 barmaley joined #salt
22:26 sjmh joined #salt
22:44 jmedinar joined #salt
22:45 sjmh joined #salt
22:45 jmedinar Question ... Is it possible to execute a cmd.run with a nohup command ? It works but remains waiting and the salt command has to be stopped with Cz
22:45 jmedinar I have the "    - ignore_timeout: True"  set in thestate
22:46 hemebond1 jmedinar: Isn't it possible to fork the process?
22:46 jmedinar but doesn't work or I am not using it correctly
22:46 jas02 joined #salt
22:46 hemebond1 In the FAQ it has stuff about restarting the Salt Minion. Maybe something in there can be used.
22:47 daxomati1 joined #salt
22:47 whytewolf have you tried adding a & onto the command?
22:47 systo joined #salt
22:47 jmedinar - name: /usr/bin/nohup /opt/ibm/lotus/bin/server > Start.log &
22:48 jmedinar the execution works... even when killing the salt process in the master it of course remains running on the minion as expected
22:48 jmedinar just trying to avoid the command to hung on the master
22:49 whytewolf ohhh, iirc i have issue issues with nohup not releasing the terminal ... which might be causing your issue. [havn't tried working with nohup and salt so wasn't sure if that was the problem]
22:50 jhauser joined #salt
22:51 jmedinar https://github.com/saltstack/salt/pull/18186
22:51 saltstackbot [#18186][MERGED] Added nohup example to the FAQ about restarting Salt with Salt | Suggested by @mickep76 in #7997.
22:51 jmedinar I will try something like that hold
22:54 netcho joined #salt
22:56 brotatochip joined #salt
22:58 teryx510 joined #salt
22:58 jmedinar nah doesn't work
23:00 jenastar joined #salt
23:08 aagbds joined #salt
23:09 edrocks joined #salt
23:14 rem5 joined #salt
23:14 rem5 joined #salt
23:15 hemebond1 So, the Salt Master config files are YAML, but are they actually run through the default YAML parser?
23:16 hemebond1 Oooh, nevermind. It's validating each one. Dang.
23:19 coredumb Hello
23:20 coredumb Is is possible for pkg.latest to not install a package but validate the state when the package is manually installed ?
23:20 hasues left #salt
23:21 whytewolf coredumb: thats what it should do. it checks if the pkg is installed and the most current version. if it isn't it will install or upgrade. but if it was installed through other means and is the latest version it should just return true
23:23 coredumb whytewolf: yeah my problem is that it returns me an error when the package is not installed like: Comment: No information found for 'xxx'
23:23 coredumb trying to pinpoint that
23:24 skeezix-hf joined #salt
23:24 whytewolf that sounds like it isn't finding the package
23:25 coredumb whytewolf: think it comes from my pkg module
23:25 coredumb reading the code right now
23:26 whytewolf well yes. the pkg state uses the loaded pkg module....
23:26 whytewolf what distro are you using?
23:27 coredumb whytewolf: Alpine
23:27 coredumb I've ported the apk support myself
23:27 coredumb but seems that pkg.version which uses pkg_resource.version doesn't work as expected
23:28 whytewolf that would be a big problem for using latest
23:28 coredumb yes it is
23:28 coredumb gonna fix this pkg.version :)
23:31 perlsaiyan joined #salt
23:31 coredumb actually pkg_resource.version is using pkg.list_pkgs which just returns installed list
23:31 perlsaiyan Is salt not available via ppa for ubuntu xenial?
23:32 perlsaiyan after sudo add-apt-repository ppa:saltstack/salt
23:32 perlsaiyan i get no release file
23:32 jaybocc2 joined #salt
23:32 jaybocc2 is anyone here using sharedsecret eauth for the salt-api?
23:33 whytewolf perlsaiyan: try https://repo.saltstack.com/#ubuntu instead
23:33 oida_ joined #salt
23:34 ssplatt joined #salt
23:35 sjmh joined #salt
23:35 Klas joined #salt
23:36 perlsaiyan @whytewolf seemed to work, thanks
23:36 whytewolf np
23:45 bbbryson joined #salt
23:47 jas02 joined #salt
23:51 BattleChicken left #salt
23:55 fannet joined #salt
23:59 oida_ joined #salt

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