initial commit

This commit is contained in:
Martin Hoefling 2015-05-01 23:22:41 +02:00
commit 4636e6cfe0
7 changed files with 85 additions and 0 deletions

28
CHANGELOG.rst Normal file
View File

@ -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

13
LICENSE Normal file
View File

@ -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.

26
README.rst Normal file
View File

@ -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).

3
pillar.example Normal file
View File

@ -0,0 +1,3 @@
template:
lookup:
master: template-master

0
rsyncd/config.sls Normal file
View File

8
rsyncd/init.sls Normal file
View File

@ -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

7
rsyncd/map.jinja Normal file
View File

@ -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')) %}