Skip to content

Add initscripts, SystemD service units and environment files for Debian - #32857

Merged
cachedout merged 1 commit into
saltstack:2015.8from
vutny:debian-init-files
May 19, 2016
Merged

cachedout merged 1 commit into
saltstack:2015.8from
vutny:debian-init-files

Conversation

@vutny

@vutny vutny commented Apr 26, 2016

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds necessary files for complete bootstrapping (via bootstrap-salt.sh) Salt components on Debian GNU/Linux from Git without downloading from external repos and sources.

This PR is required for replacing workarounds in the bootstrap script which set up Salt services.
It will complement PR saltstack/salt-bootstrap#828 for better support of git installations on Debian.

@rallytime

Copy link
Copy Markdown
Contributor

Thanks @vutny. I think this need review from someone other than me. @terminalmage @cachedout or maybe @s0undt3ch? Can you guys check this one out when you get a moment?

@rallytime rallytime added the pending-discussion The issue or pull request needs more discussion before it can be closed or merged label Apr 26, 2016
@vutny

vutny commented Apr 27, 2016

Copy link
Copy Markdown
Contributor Author

Actually these files are from official Salt packages build by salt-pack. I've just corrected service descriptions are removed useless comments from units.
At the moment, the files are only supposed to be used in the bootstrap process.

@cachedout

Copy link
Copy Markdown
Contributor

@vutny Could you please further explain the intention here? It looks like you changed the bootstrap script to expect these? Where were they being pulled from prior to this?

@cachedout

Copy link
Copy Markdown
Contributor

@vutny Could you please respond to my question above when you get a moment? Thanks.

@vutny

vutny commented May 10, 2016

Copy link
Copy Markdown
Contributor Author

@cachedout Sorry for the delay.

Main intention for adding these files is to have consistent bootstrapping from Git on Debian systems.
Currently Salt git repository contains only SysV initscripts and SystemD units only suitable for rpm based distros and Ubuntu.

Available SystemD service units don't work on Debian 8 and we need to edit them in-line after copying from the repo checkout directory.
To be able to successfully do a git installation on Debian 7, develop version of bootstrap script downloads the service init files from Debian VCS. That's not very reliable way though.

In any case, old behavior will be kept as fallback if required files are missing in the git branch that used to bootstrap from.

This PR eliminates unnecessary external sources needed for bootstrapping Debian GNU/Linux from Git and makes the installation straight-forward like on other systems.

@cachedout

Copy link
Copy Markdown
Contributor

@s0undt3ch You have any input here?

@s0undt3ch

Copy link
Copy Markdown
Contributor

If we already provide these kind of files for other distros, is there really any reason why we shouldn't also provide the Debian ones?

@cachedout

Copy link
Copy Markdown
Contributor

@s0undt3ch Seems sensible enough to me. Let's do it.

@cachedout
cachedout merged commit 37e1930 into saltstack:2015.8 May 19, 2016
@vutny
vutny deleted the debian-init-files branch May 20, 2016 07:08
cachedout pushed a commit that referenced this pull request May 20, 2016
* Fix master hanging after a request from minion with removed key. (#33333)

* ZMQ monitor for MWorker connections.

* Reauth minion if the key was removed on the master side.

* Allow concurrency mode in state runs if using sudo (#33325)

Closes #30130

* Disambiguate non-exact matches when checking if sysv service is enabled (#33324)

Fixes #33323

* remove redundant, incorrect sudo_runas config documentation (#33318)

* remove sudo_runas documentation

`sudo_runas` was renamed to `sudo_user` and the documentation was not
updated accordingly.

* conf/minion: update sudo_user description

The description from sudo_runas was better.

* import ps from psutil_compat in beacons (#33334)

* beacons.network_info: import gate psutil

* beacons.ps: import gate psutil

* Add docs for mine_functions config var (#33326)

* Add docs for mine_functions config var

* Note that mine_enabled essentially just doesn't add the mine
update function to the scheduler.

* Bp 28467 calm mine (#33327)

* make minion mine update behavior more configurable

* Add docs for mine_functions config var

* Remove config dup from mine config options

Refs #28467

* 2015.8 does not have _DFLT_MULTIPROCESSING_MODE

* This won't be in until 2015.8.10.

* Fix network.managed for windows (#33312)

* Fix some link errors in the test writing tutorial (#33347)

* Describes parameters in register_instances function (#33339)

* Fix UnboundLocalError in git.latest (#33340)

Resolves #32260.

* Expanded documentation for boto_elb state and module (#33341)

* Describes what happens when the CNAME parameter is given.

* Describes what the recognized attributes are for for ELBs.

* Properly detect newer Linux Mint distros (#33359)

* Properly detect newer Linux Mint distros

LMDE 2 and Linux Mint 17.3 changed the DISTRIB_ID in /etc/lsb-release to
``LinuxMint``, breaking OS detection for these distros.

This commit fixes that by adding an entry to the OS_NAME_MAP in the core
grains.

* Remove LinuxMint os_family from aptpkg.py

It is no longer necessary as the distro is now detected properly, which
will lead to an os_family of Debian.

* Update job_cache and keep_jobs docs to be more specific to their behavior (#33328)

* Update job_cache and keep_jobs docs to be more specific to their behavior

Also fixed a bug discovered when investigating job_cache/keep_jobs functionality
where the jid directory and files were removed by the cache cleaner, but not the
original jid clash detection directory created in /var/cache/salt/master/jobs/.

Fixes #29286

* Add testcase for the changes in the local_cache.clean_old_jobs func

* Mark tests as destructive

* Put destructive test decorator in correct location

* Remove mentions of windows not supporting pkgs param (#33361)

Fixes #33313

* Updates docs version to 2015.8.9
Adds note regarding the os grain on Mint Linux
Adds an FAQ regarding grains that change due to upstream changes

* revved 2015.8 branch to .9 in version selector

* Add initscripts, SystemD service units and environment files for Debian (#32857)

* Add note to docs about api settings for Hipchat API v2 (#33365)

Fixes #27779

* Add win_pkg to list of modules that support "version" in pkg.installed (#33362)

Fixes #32913

* Add note about name parameter in git_pillar docs (#33369)

Fixes #27737

* Better YAML syntax error handling (#33375)

Closes #26574

* Improve doc clarity for disable_modules documentation (#33379)

* Improve doc clarity for disable_modules documentation

* Additional clarification on blacklisted name

* maintain the fallabck because I am totally sick of this crap

* blast, put the try/except int he right place

* restore whitespace

* Fix traceback in logging for config validation (#33386)

* 2015.8.10 release notes

* Sync pillarstack to latest upstream version (#33391)

* Don't lay down all available opts (#33385)

* Don't lay down all available opts

* We need at least one opt in there

* Condense defaults

* Put the default hash type back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-discussion The issue or pull request needs more discussion before it can be closed or merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants