Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-06-12

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

All times shown according to UTC.

Time Nick Message
00:06 tristianc joined #salt
00:09 edrocks joined #salt
00:14 nmadhok joined #salt
00:15 Muchoz joined #salt
00:17 mpanetta joined #salt
00:18 jeblair joined #salt
00:18 cebreidian joined #salt
00:54 mohae joined #salt
01:01 haaj joined #salt
01:03 shoemonkey joined #salt
01:09 fannet joined #salt
01:10 haaj joined #salt
01:14 iceyao joined #salt
01:41 west575_ joined #salt
01:41 stooj Thanks whailty - trying that now.
01:42 ernestonavarro joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.10, 2015.8.10, 2016.3.0 | 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:52 ernestonavarro Rendering SLS 'base:dhcpd' failed: Jinja error: dhcpd/map.jinja
01:52 ernestonavarro Traceback (most recent call last):
01:52 ernestonavarro File "/usr/local/Cellar/saltstack/2016.3.0/libexec/lib/python2.7/site-packages/salt/utils/templates.py", line 366, in render_jinja_tmpl
01:52 ernestonavarro output = template.render(**decoded_context)
01:52 ernestonavarro File "/usr/local/Cellar/saltstack/2016.3.0/libexec/vendor/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
01:52 ernestonavarro return self.environment.handle_exception(exc_info, True)
01:52 ernestonavarro File "/usr/local/Cellar/saltstack/2016.3.0/libexec/vendor/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
01:52 ernestonavarro reraise(exc_type, exc_value, tb)
01:52 ernestonavarro File "<template>", line 1, in top-level template code
01:52 ernestonavarro File "/usr/local/Cellar/saltstack/2016.3.0/libexec/lib/python2.7/site-packages/salt/utils/jinja.py", line 144, in get_source
01:52 ernestonavarro raise TemplateNotFound(template)
01:52 ernestonavarro TemplateNotFound: dhcpd/map.jinja
01:52 ernestonavarro ; line 1
01:52 ernestonavarro ---
01:52 ernestonavarro {% from "dhcpd/map.jinja" import dhcpd with context %}    <======================
01:52 ernestonavarro dhcpd:
01:52 ernestonavarro pkg.installed:
01:52 ernestonavarro - name: {{ dhcpd.server }}
01:52 ernestonavarro service.running:
01:52 ernestonavarro [...]
01:52 ernestonavarro ---
01:55 toastedpenguin joined #salt
01:58 catpigger joined #salt
02:06 spuder joined #salt
02:09 davetoo argh
02:09 davetoo pastebin
02:12 spuder_ joined #salt
02:13 haaj joined #salt
02:13 jab416171 joined #salt
02:14 DEger joined #salt
02:19 flowstate joined #salt
02:19 haaj joined #salt
02:21 iggy ernestonavarro: ^ use some paste site for stuff like that
02:22 iggy I would guess you aren't using the formula correctly... describe how you installed the formula
02:23 haaj joined #salt
02:27 dtsar joined #salt
02:31 DanSlimmon joined #salt
02:49 armyriad joined #salt
02:50 DEger joined #salt
02:53 tuxx joined #salt
02:55 mohae_ joined #salt
02:57 fannet joined #salt
03:00 dtsar joined #salt
03:06 flowstate joined #salt
03:13 rem5 joined #salt
03:16 bfig_ joined #salt
03:18 stooj_ joined #salt
03:20 tristianc joined #salt
03:23 justanotheruser joined #salt
03:27 fgimian joined #salt
03:33 aidin joined #salt
03:51 tristianc joined #salt
03:52 flowstate joined #salt
04:03 aharvey joined #salt
04:06 dfinn joined #salt
04:12 edrocks joined #salt
04:20 Sylvain31 joined #salt
04:21 pzipoy joined #salt
04:27 ni291187 joined #salt
04:27 ni291187 left #salt
04:34 adelcast joined #salt
04:40 DEger joined #salt
04:46 fannet joined #salt
04:54 mohae joined #salt
04:58 DEger joined #salt
05:13 DEger joined #salt
05:16 felskrone joined #salt
05:18 DEger joined #salt
05:19 aidin joined #salt
05:21 tristianc joined #salt
05:30 DEger joined #salt
05:31 spuder joined #salt
05:48 DEger joined #salt
05:54 spuder joined #salt
05:55 spuder_ joined #salt
05:55 manji joined #salt
05:58 DEger joined #salt
06:08 DEger joined #salt
06:18 DarkKnightCZ joined #salt
06:18 DEger joined #salt
06:19 iceyao joined #salt
06:24 evle joined #salt
06:28 DEger joined #salt
06:30 Ayo joined #salt
06:34 fannet joined #salt
06:38 Jimlad_ joined #salt
06:38 DEger joined #salt
06:49 DEger joined #salt
06:50 LeProvokateur joined #salt
06:59 flowstate joined #salt
07:00 DEger joined #salt
07:05 Sylvain31 can I retrieve command line kwargs into jinja for state? ex: salt-call state.apply test.user param=value
07:08 iggy you can pass pillar data on the command line
07:08 DEger joined #salt
07:09 Sylvain31 that way, you mean?: salt '*' state.apply my_sls_file pillar='{"hello": "world"}'
07:10 babilen Indeed
07:11 Sylvain31 no shorter syntax without {} and quote?
07:12 babilen You can write your own state that takes the argument you desire
07:12 iggy you can write a runner... but that's probably more work than typing out the pillar every time
07:13 nkuttler or write a shell function
07:13 babilen Or keep the data in a "normal" pillar and do not rely on it being specified on the command line
07:14 iggy fsdo normal
07:16 Sylvain31 how do I retrieve the argument in the state?
07:17 babilen pillar.get
07:18 DEger joined #salt
07:19 Sylvain31 ah, OK, with the previous syntax, with all the {} and quote, so. I found this one, it works.
07:20 babilen What did you find, what works and what are you trying to do in the first place ? :)
07:26 smcquay joined #salt
07:28 DEger joined #salt
07:28 Sylvain31 I would like to test that salted shell users are able to ssh to the minion. I've a shell script that do that. I can fetch data from the pillar and test. But the data is available for the minion, and in this case, I would like to be able to test to connect from a remote location. So I'm running the state on the master, but the pillar data are for the minion, so I would like to pass the minion to test in
07:29 Sylvain31 parameter.
07:30 Sylvain31 I could call on the master: salt-call state.appyl test.users minion=web0
07:31 Sylvain31 may I should stay in shell script…
07:32 babilen Why don't you write states that ensure that they can? Shouldn't be too hard with by managing their keys, ssh_auth and a number of ssh_known_hosts states fed from the salt mine
07:36 Sylvain31 I'm not managing their key, I'm only creating them. After that I will try to ensure that they can only sfpt and not sshing to the server, still remotelly. I far as I understand, state.ssh_auth is working locally on the minion, not remotely.
07:37 babilen There is no "remotely" in salt :)
07:38 babilen So, if you want to make changes to the destination host you'd have to manage that also
07:41 DEger joined #salt
07:43 Sylvain31 I was running the state on the master, so it is remote from the minion, even itself if I intiate an ssh connection from within the state to check if it fail or not.
07:46 babilen We solved the "users have to be able to access other minions via SSH" problem in the way I described earlier. We manage the keys and ssh_known_hosts on the source minion (ssh_known_hosts gathers target minions from the salt mine) and then ssh_auth on the target minions
07:46 babilen Works splendidly
07:46 flowstate joined #salt
07:49 felskrone joined #salt
07:50 Jimlad joined #salt
07:50 Sylvain31 OK, but if I understand it, it still work with sshkeys, I just want, that a customer shell account is working, I don't make any supposition he will be able to setup an sshkey, or even from where he will connect from. Or I missed some point.
07:54 aidin joined #salt
07:55 babilen "I would like to test that salted shell users are able to ssh to the minion" -- that should be possible with a ssh_auth state on the minion that accepts that user's public SSH key
07:55 babilen As you "salt" those user's I assumed that you also manage them, hence my suggestion to *also* manage their keys and known_hosts on the source
07:55 manji joined #salt
07:56 babilen That assumption might have been wrong as you clearly can't manage their private boxes
07:57 babilen So, they'll provide their SSH public keys to you and you deploy those use ssh_known_hosts states on minions/user accounts they should be able to access
07:59 Sylvain31 no. It's a webagency, I'm creating password managed account for sftp, no key for them. I'm giving back password to customers.
08:01 babilen In that case you naturally don't have to manage their keys, but only their accounts and ensure that password authentication has not been disabled
08:01 babilen Why don't you let them choose passwords themselves?
08:02 babilen Or just upload their public keys and enjoy the added security and ease of use?
08:06 yidhra__ joined #salt
08:07 CeBe joined #salt
08:09 Sylvain31 Because they (enduser) don't choose robust password, and they also loose their password, and comeback asking for some password, and I'm a consultant, I'm following my customer (the webagency) whishes. And, it's an interesting discussion but, not my question initial question about : testing that shell users are able to ssh to the minion (remote host testing) ;) I whish I could say to enduser, give me your public
08:09 Sylvain31 key… Actually they will look at me strangely…
08:15 edrocks joined #salt
08:22 fannet joined #salt
08:23 babilen Well, then run the shell script you have that checks it and perform different actions based on its return code.
08:24 Sylvain31 I'm on it. ;)
08:26 babilen What are you using to pass the password in the script?
08:28 dmaiocchi joined #salt
08:28 Miouge joined #salt
08:32 punkoivan joined #salt
08:32 DEger joined #salt
08:33 Sylvain31 it looks like: http://paste.debian.net/738236/
08:34 babilen So, sshpass. Good.
08:34 Sylvain31 I will publis my proof of concept soon…
08:37 iceyao left #salt
08:39 DEger joined #salt
08:39 ernestonavarro @iggy I configure the git repository in the master file
08:40 ernestonavarro I think what is happening is salt is not getting all the formula because the only file in cache is the init.sls
08:42 babilen It doesn't checkout the entire repo in your cache
08:42 ernestonavarro I'm really new, I probably doing something wrong
08:42 ernestonavarro but I dont know what
08:44 ernestonavarro http://pastebin.com/Qj0Lx7n8
08:45 babilen It might help if you could paste your master configuration to one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … I'd also run "salt-run fileserver.update" while you run the master manually in debug mode with "salt-master -ldebug" and paste the output that generates. Then apply your state again and include that debug output also.
08:46 babilen So .. paste your master config, stop the master service and run "salt-master -ldebug", let the output settle down and run both "salt-run fileserver.update" and your state application.
08:46 ernestonavarro sorry I forget to mention I'm using salt-ssh
08:47 babilen Then run salt-ssh in debug mode and paste your configuration ;)
08:47 ernestonavarro I did, is the pastebin before
08:47 ernestonavarro wel... I forget to put all the output
08:47 ernestonavarro I will
08:48 babilen I don't see your configuration in there and you might want to use a less horrible pastebin such as one of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, …
08:48 ernestonavarro :) ok
08:48 ernestonavarro https://www.refheap.com/120171
08:48 ernestonavarro config
08:50 dmaiocchi joined #salt
08:50 ernestonavarro output https://www.refheap.com/120172
08:51 DEger joined #salt
08:51 cyborg-one joined #salt
08:52 q1x joined #salt
08:55 babilen ernestonavarro: Looks good, but there were issues with salt-ssh and gitfs. You might just want to checkout the formula locally and add it to file_roots.
08:55 Jimlad joined #salt
08:56 babilen It might also be a specific bug in that particular formula
08:56 babilen Have you tried others?
08:56 ernestonavarro no, this is my first try
08:57 ernestonavarro I really new
08:57 ernestonavarro I'm trying to manage my home server
08:57 ernestonavarro and I wanted to start with the dhcp
08:58 DEger joined #salt
09:02 babilen ernestonavarro: You might also want to enable "file" in fileserver_backends unless you want everything in GitFS. Due to the fact that salt-ssh will trigger a GitFS update everytime it launches you might want to use local checkouts anyway.
09:04 babilen I also like to use relative paths in Saltfile as in https://www.refheap.com/120176
09:05 aidin joined #salt
09:05 ernestonavarro @babilen interesting, I will try that
09:07 babilen I don't use GitFS with salt-ssh, but have all formulas in ~/src/github.com/saltstack-formulas and clone them into /srv/salt/file_roots/formulas with https://www.refheap.com/120177
09:09 babilen You could, naturally, also use ~/salt/file_roots/formulas if you prefer
09:09 babilen I don't really see why your configuration doesn't work though
09:09 CeBe joined #salt
09:09 Jimlad joined #salt
09:09 babilen Which version of salt is that?
09:09 babilen (salt-ssh --versions-report)
09:15 babilen Ah, looks like 2016.3.0
09:15 ernestonavarro yes that one
09:16 ernestonavarro https://www.refheap.com/120178
09:16 babilen Well, I found it now in your output
09:16 babilen I take it that the formula works if you add it to file_roots?
09:17 ernestonavarro let me check
09:21 pfallenop joined #salt
09:24 lvf joined #salt
09:29 ernestonavarro @babilen now it work
09:30 ernestonavarro know I need to find out how to configure the formula
09:30 ernestonavarro now*
09:31 aidin joined #salt
09:34 Jimlad joined #salt
09:36 ernestonavarro @babilen still here?
09:37 CeBe joined #salt
09:37 Trauma joined #salt
09:38 babilen ernestonavarro: So it works with the formula in file_roots ?
09:38 ernestonavarro yes, thanks :)
09:38 ernestonavarro but now ... I don't have clue how to change the config
09:38 ernestonavarro any idea?
09:38 ernestonavarro pillars?
09:39 DEger joined #salt
09:40 babilen Hmm, you should still be able to use GitFS. Could you remove the cache, configure it as gitfs_remote again and try once more? (/Users/ernestonavarro/Projects/Saltstack/var/cache/salt/)
09:41 Muchoz joined #salt
09:41 babilen And yes, you would configure the formula via pillars. For that you create a "top.sls" in your pillar_root and target, say, "- dhcpd" to your minion in there. Edit pillar_roots/dhcpd.sls and adjust https://github.com/enavarrocu/dhcpd-formula/blob/master/pillar.example to your wishes
09:41 ernestonavarro don't work with gitfs
09:41 babilen You like to start in hard mode, don't you? ;)
09:41 ernestonavarro hahahahahaha apparently yes
09:42 babilen ernestonavarro: Might be nice if you could file a bug about the GitFS problem. I don't spot a problem right away, but maybe it is something obvious and I just suffer from ENOTENOUGHCOFFEE :)
09:42 ernestonavarro :)
09:42 babilen https://github.com/saltstack/salt/issues/
09:42 ernestonavarro but maybe I'm doing something wrong
09:43 ernestonavarro https://www.refheap.com/120179
09:43 babilen It looks alright, it clones the formula, but obviously doesn't cache all files that are needed to render the dhcpd/init.sls. Not sure why.
09:43 ernestonavarro in this case something different happen
09:43 ernestonavarro indeed
09:44 babilen Ah, so it works now
09:44 ernestonavarro well ... no really
09:44 ernestonavarro because don't run anything right?
09:44 ernestonavarro 0 states run
09:45 babilen Do you still have a top.sls in your file_roots that targets the dhcpd state?
09:45 ernestonavarro yes
09:45 babilen You disabled non-gitfs file_roots in your master configuration by not listing "roots" in your fileserver_backends
09:46 ernestonavarro mmm
09:48 ernestonavarro @babilen you are the boss :)
09:48 babilen I am?
09:48 ernestonavarro hahahahaha yes you are
09:49 DEger joined #salt
09:49 ernestonavarro now let see how I can configure this
09:49 babilen Okay .. does that means it does what you expect it to do with GitFS and roots?
09:50 ernestonavarro yes :)
09:50 ernestonavarro wel ...
09:50 cyborg-one joined #salt
09:50 ernestonavarro still need to configure the formula
09:50 ernestonavarro working on that now
09:50 cyborg-one joined #salt
09:51 babilen Great - I wonder what you did to run into the initial problem
09:51 armyriad joined #salt
09:52 ernestonavarro because I don't have a clue about salt :)
09:52 babilen Start by configuring pillars. Run "salt-ssh 'foo' pillar.get dhcpd" to see if it matches your expectations.
09:52 babilen ernestonavarro: Did you work through https://docs.saltstack.com/en/getstarted/ already?
09:52 ernestonavarro yes
09:53 babilen So you have a bit of a clue ;)
09:53 ernestonavarro but maybe I'm not smart enough :P
09:53 ernestonavarro because I did't understand somethings
09:53 babilen Well, basically it is not that hard. You have "formulas" which are just some generic salt states that can be configured with data provided by the user through pillars.
09:54 babilen So in order to get it working the way you want you'd provide pillar data that matches your needs. Most formulas provide a more-or-less complete example of all options in pillar.example
09:55 ernestonavarro yes the example is more or less the same than the configuration in the server itself
09:55 babilen So, simply targeting "dhcpd" to your minion should ensure that the server is installed and running, while also targeting "dhcpd.config" will cause salt to also manage its configuration.
09:55 ernestonavarro but the point of connections is what I miss
09:55 babilen "point of connections" ?
09:56 ernestonavarro formulas, roots, gitfs, pillars, states
09:56 ernestonavarro the concepts
09:58 babilen Pillars are just minion specific Python dictionaries that allow you to provide data to them. The data can be used in states to alter their behaviour or in configuration file templates to generate suitable entries.
09:59 DEger joined #salt
09:59 babilen In the end it really isn't that hard. Start with execution modules .. they are the bits in salt that actually do things. There you have functionality to, say, remove a file or create a user
09:59 ernestonavarro I play a bit with it
09:59 ernestonavarro I did play *
10:00 babilen On top of them you have states. States describe the world as it should be. They contain tests to verify if a state has been achieved and will then call certain execution module functions if not.
10:00 babilen As you don't want your states to be too specific a "data driven" approach has become more popular ..
10:01 babilen You could hardcode certain, say, usernames in your states, but the way it is done these days is by writing a state that takes a list of users from $somewhere, iterates over it and generates specific states using that dta
10:01 babilen That $somewhere are pillars
10:01 ernestonavarro great, Im following you
10:02 ernestonavarro cross fingers ....
10:03 ernestonavarro ok I got the config that I want with salt-ssh network pillar.get dhcpd
10:04 ernestonavarro but then I did salt-ssh network state.highstate and nothing change
10:04 ernestonavarro in the server
10:04 ernestonavarro I mean didn't apply the configuration
10:05 babilen Paste your top.sls, pillar data and (non-debug) output of that run, please
10:06 ernestonavarro result https://www.refheap.com/120180
10:06 babilen Paste your state top.sls please
10:06 ernestonavarro https://www.refheap.com/120181
10:06 ernestonavarro top.sls
10:07 babilen You are not targeting "dhcpd.config" to your minion
10:07 babilen And you have a stray "%" at the end of "dhcpd" on line 4
10:07 ernestonavarro no that is not in the file
10:07 ernestonavarro cat command do that sometimes
10:08 ernestonavarro https://www.refheap.com/120183
10:08 babilen The formula has two states, dhcpd and dhcpd.config. The former installs the package and ensures that the service is running while the latter managed the configuration.
10:08 ernestonavarro how do I target dhcp.config?
10:08 babilen You add "- dhcpd.config" underneath "- dhcpd" in your top.sls
10:08 ernestonavarro ohhh
10:10 ernestonavarro something is wrong
10:11 ernestonavarro https://www.refheap.com/120184
10:11 fannet joined #salt
10:11 babilen Paste your top.sls please
10:12 babilen Ah, pillar top.sls
10:12 ernestonavarro https://www.refheap.com/120185
10:12 babilen Extra space on line 5
10:13 ernestonavarro dhcpd and dhcpd.config in the same column?
10:14 babilen yes
10:14 ernestonavarro like this? https://www.refheap.com/120186
10:15 babilen yes
10:15 ernestonavarro same error
10:15 babilen https://en.wikipedia.org/wiki/YAML#Lists
10:15 saltstackbot [WIKIPEDIA] YAML#Lists | "YAML (/ˈjæməl/, rhymes with camel) is a human-readable data serialization language that takes concepts from programming languages such as C, Perl, and Python, and ideas from XML and the data format of electronic mail (RFC 2822). YAML was first proposed by Clark Evans in 2001, who designed it together..."
10:15 * babilen kicks saltstackbot
10:16 babilen ernestonavarro: So, take a look at your pillar top.sls
10:16 ernestonavarro I did
10:16 ernestonavarro but I dont
10:16 ernestonavarro find the problem
10:17 babilen Okay .. why don't we start from the beginning? Paste your states, state top.sls, all pillar files and top.sls, master config, your command and its output?
10:18 ernestonavarro ok
10:18 ernestonavarro in one paste?
10:18 ernestonavarro o several?
10:19 babilen One paste please
10:19 ernestonavarro ok
10:21 nidr0x joined #salt
10:21 mpanetta joined #salt
10:23 Muchoz joined #salt
10:24 Muchoz joined #salt
10:25 ernestonavarro @babilen https://www.refheap.com/120187
10:29 DEger joined #salt
10:29 babilen ernestonavarro: It looks as if you specified "- dhcpd.config" in srv/pillar/top.sls rather than srv/salt/top.sls but I can't be sure as you didn't paste your pillar top.sls
10:30 ernestonavarro sorry I forgot that one
10:30 ernestonavarro but I think I also try that way
10:31 babilen You are definitely missing "- dhcpd.config" in srv/salt/top.sls
10:31 babilen And my guess would be that you erroneously added it to your pillar top.sls
10:32 ernestonavarro ok having another issue know
10:32 ernestonavarro I start to hate this :(
10:34 ernestonavarro @babilien https://www.refheap.com/120188
10:35 babilen Clear the cache again
10:36 babilen Damn you GitFS!
10:36 ernestonavarro :)
10:36 babilen Or just clone it locally .. nobody got time for this shit
10:36 ernestonavarro is cloned already locally
10:36 ernestonavarro I will comment the gitfs
10:36 babilen It might make sense if you don't try to do *everything* at once (GitFS, states, formulas, pillars, ...)
10:37 ernestonavarro I didn't expect this was so complicated
10:37 babilen Ah .. you have it in both GitFS and file_roots .. that just has to mess things up
10:38 ernestonavarro ok now with just file_roots
10:38 ernestonavarro same error
10:38 babilen That's like asking a driver to take a rightleft turn :D
10:38 ernestonavarro also empty the cache
10:39 babilen Who knows what kind of breakage that misconfiguration caused now?
10:39 ernestonavarro I'm trying to figure it out
10:40 ernestonavarro I will not bother you anymore with this
10:40 ernestonavarro thanks thanks thanks
10:40 babilen That's okay, but I would really recommend to not do five things at the same time. It makes it incredibly hard to debug problems.
10:42 ernestonavarro the problem is I wanted to use it with something that I really need
10:42 armyriad joined #salt
10:42 babilen Sure, I understand, but it is typilly a lot better to go step by step, not fixing everything at the same time.
10:43 babilen Get salt-ssh running. Then put *one* state into GitFS, verify it works. Add a formula. Run it without user configuration. Add a pillar. Verify the pillar works ...
10:43 babilen And so on ..
10:43 babilen My impression is that salt tried to cache states/files from two different sources and somehow messed up because you had the same stuff in both GitFS and file_roots.
10:44 babilen You might want to look into "salt 'network' cp.list_master" to see which files it knows about.
10:44 babilen s/typilly/typically/
10:50 irctc952 joined #salt
10:50 babilen Also log into the minion and remove cached files there
10:51 ernestonavarro but is ssh, should not remove it?
10:51 babilen A "salt-ssh 'network' ... --wipe" might be a good idea
10:51 babilen No, that would require it to upload everything every time you run a state/command.
10:52 ernestonavarro done
10:53 babilen I also don't want to rule out that the formula is broken. I've never used it before. But with all the things that have been changed it is hard to say what works and what doesn't.
10:54 ernestonavarro https://www.refheap.com/120189
11:04 Muchoz joined #salt
11:07 babilen ernestonavarro: Okay, I'd recommend to forget about dhcpd-formula for now. You can revisit it later. Try something tested such as the salt-formula or users-formula.
11:09 ernestonavarro but dhcpd is from https://github.com/saltstack-formulas
11:10 babilen Remove "subnets" from your pillar (or remove the pillar completely) and try again
11:10 babilen I guess the formula is broken, but who knows?
11:10 ernestonavarro I'm trying exactly that
11:11 ernestonavarro the problem is the subnets
11:11 ernestonavarro :(
11:11 ernestonavarro thanks again for taking the time to help me
11:11 ernestonavarro I have to go now
11:11 ernestonavarro but ... I will come back :)
11:13 babilen https://github.com/enavarrocu/dhcpd-formula/blob/master/dhcpd/files/subnet.jinja is likely broken
11:13 babilen Horrible code
11:23 garphy joined #salt
11:31 mohae_ joined #salt
11:32 DEger joined #salt
11:37 manji joined #salt
11:38 DEger joined #salt
11:40 mapu joined #salt
11:49 DEger joined #salt
11:57 west575 joined #salt
11:58 CeBe joined #salt
11:59 DEger joined #salt
11:59 fannet joined #salt
12:03 west575_ joined #salt
12:11 DEger joined #salt
12:14 dmaiocchi joined #salt
12:17 edrocks joined #salt
12:18 DEger joined #salt
12:28 DEger joined #salt
12:30 Muchoz joined #salt
12:30 shoemonkey joined #salt
12:31 bluenemo joined #salt
12:41 ernestonavarro joined #salt
12:42 west575 joined #salt
12:49 s_kunk joined #salt
12:49 rem5 joined #salt
12:54 fgimian joined #salt
12:56 fgimian joined #salt
12:59 DEger joined #salt
13:05 mage_ any idea what's the codename for the next salt version?
13:08 Muchoz joined #salt
13:11 DEger joined #salt
13:11 Muchoz_ joined #salt
13:12 shoemonkey joined #salt
13:17 nidr0x joined #salt
13:18 Muchoz joined #salt
13:19 fannet joined #salt
13:20 DEger joined #salt
13:23 Sylvain31 joined #salt
13:25 nebuchadnezzar joined #salt
13:26 shoemonkey joined #salt
13:29 nidr0x joined #salt
13:30 Jimlad joined #salt
13:31 manji joined #salt
13:32 mage_ is the codename for the next salt version "Carbon" ?
13:32 babilen mage_: https://docs.saltstack.com/en/latest/topics/releases/version_numbers.html
13:32 mage_ thanks :p
13:32 babilen It is
13:33 aidin joined #salt
13:36 alex_s joined #salt
13:39 mindscratch joined #salt
13:40 nidr0x joined #salt
13:41 mindscratch I am looking for guidance on how to configure/setup pillar data for different environments (such as staging and production). Just curious how people generally do taht
13:43 scoates joined #salt
13:46 CeBe joined #salt
13:47 amcorreia joined #salt
13:47 fannet joined #salt
13:50 fannet_ joined #salt
13:51 slav0nic joined #salt
13:53 nidr0x joined #salt
13:53 DanSlimmon joined #salt
14:01 iceyao joined #salt
14:02 aidin joined #salt
14:07 nidr0x joined #salt
14:11 dendazen joined #salt
14:19 davetoo left #salt
14:19 nidr0x joined #salt
14:23 DanSlimmon joined #salt
14:26 Jimlad_ joined #salt
14:31 nidr0x joined #salt
14:32 rem5 joined #salt
14:38 Muchoz joined #salt
14:45 deus_ex joined #salt
14:55 DEger joined #salt
15:10 rem5 joined #salt
15:10 cprior joined #salt
15:11 manji joined #salt
15:11 nidr0x joined #salt
15:16 zenlot joined #salt
15:16 \ask joined #salt
15:17 bfig joined #salt
15:19 rylnd joined #salt
15:19 guerby joined #salt
15:20 weylin joined #salt
15:21 rem5 joined #salt
15:27 nidr0x joined #salt
15:32 cprior When using salt to salt itself, what is a best practise for masterd./*conf files?
15:34 cprior Or minion.d/conf. For example I have a file /etc/salt/minion.d/beacons.conf. In a state-file.sls I can easily use file.prepend to make sure it starts with beacons:
15:34 cprior But then I need to manage several entries under e.g. inotify:
15:35 babilen Use https://github.com/saltstack-formulas/salt-formula
15:36 fannet joined #salt
15:36 cprior ah, many thanks. I will look into that.  Ahh -- THAT is where I read the catching phrase "salt can salt itself"!
15:38 CeBe joined #salt
15:48 DEger joined #salt
15:50 DanSlimmon joined #salt
15:53 ageorgop joined #salt
15:54 teatime You are the salt of the earth. But what good is salt if it has lost its flavor? Can you make it salty again? It will be thrown out and trampled underfoot as worthless.
16:00 ernestonavarro_ joined #salt
16:00 DEger joined #salt
16:07 jesusaur joined #salt
16:08 DEger joined #salt
16:18 aidin left #salt
16:18 DEger joined #salt
16:19 edrocks joined #salt
16:21 Miouge joined #salt
16:27 scoates joined #salt
16:28 Eureka703 joined #salt
16:30 rim-k joined #salt
16:31 heewa joined #salt
16:32 DEger joined #salt
16:35 necronian joined #salt
16:35 Muchoz joined #salt
16:38 rem5 joined #salt
16:56 ernestonavarro joined #salt
16:58 DEger joined #salt
17:00 Aleks3Y joined #salt
17:03 rem5_ joined #salt
17:07 brotatochip joined #salt
17:08 CeBe joined #salt
17:20 cebreidian joined #salt
17:22 CeBe joined #salt
17:24 fannet joined #salt
17:34 Miouge joined #salt
17:43 west575 joined #salt
17:51 Ayo joined #salt
17:52 i90rr joined #salt
17:59 fracklen joined #salt
18:00 rem5 joined #salt
18:01 west575 joined #salt
18:01 Lionel_Debroux joined #salt
18:03 i90rr joined #salt
18:09 DarkKnightCZ joined #salt
18:09 Miouge joined #salt
18:10 iggy ernestonavarro: you are using `--extra-filerefs` right?
18:11 iggy https://github.com/saltstack/salt/issues/26585
18:11 saltstackbot [#26585]title: salt-ssh not providing jinja file for salt-formula | When bootstrapping\setting up a VPS using salt-ssh, I use [salt-formula](https://github.com/saltstack-formulas/salt-formula) to properly configure the minion after the bootstrap script has done its job....
18:11 Jimlad joined #salt
18:11 iggy thanks saltstackbot
18:13 mikecmpbll joined #salt
18:18 gngsk joined #salt
18:18 Jimlad_ joined #salt
18:19 mdhas joined #salt
18:20 brotatochip joined #salt
18:21 punkoivan joined #salt
18:22 Jimlad joined #salt
18:22 punkoivan left #salt
18:23 ernestonavarro_ joined #salt
18:24 mpanetta joined #salt
18:25 Miouge joined #salt
18:28 Jimlad joined #salt
18:30 CeBe joined #salt
18:30 thejrose1984 joined #salt
18:44 s_kunk joined #salt
18:44 aharvey joined #salt
18:51 dendazen joined #salt
18:54 brotatochip joined #salt
19:13 fannet joined #salt
19:32 brotatochip joined #salt
19:36 DarkKnightCZ joined #salt
19:40 keimlink joined #salt
19:41 DarkKnightCZ joined #salt
19:43 Miouge joined #salt
19:44 rim-k joined #salt
19:44 Turl joined #salt
19:48 nmadhok joined #salt
20:19 whitenoise joined #salt
20:21 edrocks joined #salt
20:30 nidr0x joined #salt
20:34 DEger joined #salt
20:35 brotatochip joined #salt
20:42 nidr0x joined #salt
20:48 DEger_ joined #salt
20:56 nidr0x joined #salt
20:58 rem5 joined #salt
21:01 fannet joined #salt
21:06 tristianc joined #salt
21:08 nidr0x joined #salt
21:09 aharvey joined #salt
21:16 abednarik joined #salt
21:18 brotatochip joined #salt
21:19 DEger joined #salt
21:20 nidr0x joined #salt
21:20 rem5 joined #salt
21:28 DEger joined #salt
21:31 nidr0x joined #salt
21:34 TyrfingMjolnir joined #salt
21:39 lero joined #salt
21:39 lero joined #salt
21:40 lero joined #salt
21:40 mdhas joined #salt
21:42 nidr0x joined #salt
21:46 lero joined #salt
21:47 Muchoz joined #salt
21:48 DEger joined #salt
21:49 lero joined #salt
21:51 lero joined #salt
21:52 lero joined #salt
21:53 lero joined #salt
21:53 lero joined #salt
21:53 Trauma joined #salt
21:54 nidr0x joined #salt
21:56 lero joined #salt
22:07 nidr0x joined #salt
22:11 linjan_ joined #salt
22:11 patrek joined #salt
22:12 west575 joined #salt
22:17 west575 joined #salt
22:18 nidr0x joined #salt
22:31 nidr0x joined #salt
22:35 tristianc joined #salt
22:36 zenlot6 joined #salt
22:38 DEger joined #salt
22:39 sjorge joined #salt
22:41 nidr0x joined #salt
22:43 amcorreia joined #salt
22:43 sjorge joined #salt
22:48 tristianc joined #salt
22:49 fannet joined #salt
22:49 west575 joined #salt
22:56 ageorgop joined #salt
23:00 Muchoz_ joined #salt
23:02 Nahual joined #salt
23:16 brotatochip joined #salt
23:16 nmadhok joined #salt
23:18 DEger joined #salt
23:31 drawsmcgraw left #salt
23:38 DEger joined #salt
23:49 DEger joined #salt
23:53 Lee- joined #salt
23:58 cliluw joined #salt

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