initial commit
This commit is contained in:
commit
4636e6cfe0
|
@ -0,0 +1,28 @@
|
|||
template formula
|
||||
================
|
||||
|
||||
0.0.5 (2014-07-28)
|
||||
|
||||
- Fixed broken link to Salt Formula documentation
|
||||
|
||||
|
||||
0.0.4 (2014-02-26)
|
||||
|
||||
- Add CHANGELOG.rst
|
||||
|
||||
|
||||
0.0.3 (2014-02-17)
|
||||
|
||||
- Add map.jinja
|
||||
- Use map.jinja content in init.sls
|
||||
|
||||
|
||||
0.0.2 (2014-02-16)
|
||||
|
||||
- Better README extension changed from .md to .rst
|
||||
- Add link to Salt Formula documentation
|
||||
|
||||
|
||||
0.0.1 (2013-11-03)
|
||||
|
||||
- Initial version
|
|
@ -0,0 +1,13 @@
|
|||
Copyright (c) 2014 Salt Stack Formulas
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -0,0 +1,26 @@
|
|||
================
|
||||
rsyncd-formula
|
||||
================
|
||||
|
||||
A formula to install and configure rsync as daemon process.
|
||||
|
||||
.. note::
|
||||
|
||||
See the full `Salt Formulas installation and usage instructions
|
||||
<http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
|
||||
|
||||
Available states
|
||||
================
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
``rsyncd``
|
||||
------------
|
||||
|
||||
Installs the rsync package, and starts the rsyncd service.
|
||||
|
||||
``rsyncd.config``
|
||||
------------
|
||||
|
||||
Configure the rsync daemon by writing an rsync.conf and rsync secrets (optional).
|
|
@ -0,0 +1,3 @@
|
|||
template:
|
||||
lookup:
|
||||
master: template-master
|
|
@ -0,0 +1,8 @@
|
|||
{% from "template/map.jinja" import template with context %}
|
||||
|
||||
template:
|
||||
pkg.installed:
|
||||
- name: {{ template.pkg }}
|
||||
service.running:
|
||||
- name: {{ template.service }}
|
||||
- enable: True
|
|
@ -0,0 +1,7 @@
|
|||
{% set rsync = salt['grains.filter_by']({
|
||||
'Debian': {
|
||||
'pkg': 'rsyncd',
|
||||
'service': 'rsyncd',
|
||||
'config': '/etc/rsyncd.conf',
|
||||
},
|
||||
}, merge=salt['pillar.get']('rsync:lookup')) %}
|
Loading…
Reference in New Issue