On Sun, 2014-04-13 at 22:30 +0100, Stuart Henderson wrote:
> On 2014/04/13 23:06, Landry Breuil wrote:
> > On Sat, Apr 12, 2014 at 05:44:59PM +0200, viq wrote:
> > > Currently _salt-master has home of /nonexistent.
> > > _salt-master needs a home dir that exists to be able to use git with ssh
> > > keys. Seems a standard place to do that would be /var/salt
> > 
> > check how other ports needing a real homedir for their user do ?
> 
> Easy enough to do, but changing the existing user will need an upgrade
> note to tell people to change the homedir.

Yeah, that's what I thought and saw from some tests. I'd like to avoid
that, but can't really in this situation.

> > > Another thing to figure out is where to put standard place for state
> > > files etc. "default" option is to have them under /srv:
> > > 
> > > BASE_FILE_ROOTS_DIR = '/srv/salt'
> > > BASE_PILLAR_ROOTS_DIR = '/srv/pillar'
> > > BASE_MASTER_ROOTS_DIR = '/srv/salt-master'
> > > 
> > > though eg FreeBSD keeps them under /usr/local/etc/salt:
> > > 
> > > --salt-base-file-roots-dir=${ETCDIR}/states \
> > > --salt-base-pillar-roots-dir=${ETCDIR}/pillar \
> > > --salt-base-master-roots-dir=${ETCDIR}/salt-master \
> > > 
> > > So far we kept the default, do we want to change that?
> > 
> > I'd say probably somewhere in /var yes..
> 
> I chatted with viq on irc about this the other day; yep /var (or
> rather LOCALSTATEDIR) makes sense.

Yeah, it seems to make sense. But on the other hand for example puppet
by default keeps it's manifests in /etc.

If you want to see what I have right now is here
https://github.com/jasperla/openbsd-wip/tree/salt/sysutils/salt

-- 
viq

Reply via email to