Commit Graph

17 Commits

Author SHA1 Message Date
Nahum Shalman
adc71a4de9 SmartOS esky: build needs to invoke sdist
per saltstack/salt#15405
2014-09-10 16:29:13 -04:00
Nahum Shalman
aa0e7209c5 SmartOS Esky: Fix minion SMF manifest
Some users reported an errror that SMF couldn't find auditconfig despite
the fact that the PATH is set correctly. Invoking with the full path
seems to fix the issue.
2014-09-08 16:07:48 -04:00
Nahum Shalman
df7736b530 SmartOS esky: fix odd problem with zeromq linking 2014-09-01 12:50:07 -04:00
Nahum Shalman
d0dac42958 SmartOS esky build environment instructions cleanup 2014-08-21 17:37:55 -04:00
Nahum Shalman
cdae8948a1 SmartOS esky packaging of 2014.7
Resulting builds can be used either with zeromq or with raet
2014-08-21 16:01:46 -04:00
Nahum Shalman
7a0044a8f5 SmartOS Esky: py27-mysqldb in build environment
Requested by @johngrasty
2014-08-04 16:15:17 -04:00
Nahum Shalman
7fbe259eea SmartOS esky build: requirements files
Mimicking the breakout of requirements files in the main project,
this allows me to keep a file of extra requirements that get put in the
esky (e.g. halite) while only needing to point the build process at
either the zeromq or raet requirements file.
2014-07-09 17:49:46 -04:00
Matthieu Guegan
49419f94c3 Add a method context environment PATH
Some modules are referring to PATH env variable which do not contains /opt/local/.. paths by default. This fix provides correct PATH handling
2014-06-22 11:38:35 +02:00
Nahum Shalman
3e5742bb73 SmartOS: run salt minion in an audit context
This fixes an issue @njones11 was having with
multiple cron.present states.

"crontab -l <username>" would fail, so the temp file
would be empty, a given cronjob would go in
and then the "su - <username> crontab <temp file>" would
succeed.

This evaded debugging attempts because if you invoked the salt
minion manually from a login shell, an audit context would
already exist and the "crontab -l <username>" would succeed.

The hint was a message in the debug log of:
[ERROR   ] Command 'crontab -l legion' failed with return code: 1
[ERROR   ] stderr: crontab: The audit context for your shell has not
been set.

We explicitly set up an audit context when launching the salt minion
which allows "crontab -l <username>" to succeed.

This may fix other issues and something similar
should perhaps be applied to pkg/smartos/salt-minion.xml

"5417" was chosen arbitrarily
2014-06-19 16:11:49 -04:00
Nahum Shalman
6af019d7cf smartos esky: improve "installer"
detect if this is a global or non-global zone
global zones are always minions

if the user passes in the name/address of the master
we configure a minimal minion file and launch the minion
2014-05-08 12:04:22 -04:00
Nahum Shalman
e62862f992 update documentation about SmartOS esky packaging 2014-02-25 19:27:39 -05:00
Nahum Shalman
3c179c2a41 SmartOS esky packaging: minor fixup
Don't assume that the top directory is named "salt"
The user might choose to name it "salt-<version>"
or "saltstack" or whatever else.

install.sh is already that flexible; this fixes _syspaths.py
2014-01-24 09:47:37 -05:00
Nahum Shalman
9f2a19ef05 SmartOS Esky Packaging: Fix PATH for services
We ran into some weird issues with these SMF manifests
with certain critical binaries not being found in the PATH.

This PATH is derived from root's default PATH when logging
in to a SmartOS zone.
2014-01-23 15:31:44 -05:00
Nahum Shalman
e94f42449a SmartOS esky build tooling
This includes:
Notes on how I created a build environment
The _syspaths.py that allows the esky build to be installed anywhere
"Template" SMF manifests and an install script to import them
A script for building both the esky zip and a deployable tarball
2014-01-05 11:20:24 -05:00
mguegan
8ba8138bc4 pkg/smartos : fix the manifest of salt-master to start@boot 2013-05-30 20:33:16 +02:00
mguegan
89de6a1606 smartos : change default config directory for Salt services 2013-05-20 13:00:38 +02:00
mguegan
737b4e0fb2 pkg/smartos : add compatible manifests for the SmartOS platform
Manifests in pkg/solaris are using /etc/salt which is innapropriate
for SmartOS design (/etc is removed @reboot). I suggest to add a
new directory in order to preserve existing Solaris installations
(and SmartOS one which are based on those manifests).
2013-05-13 22:17:35 +02:00