Merge pull request #4 from carlosperello/master
Added support for managing included filespull/9/head
commit
66ff6d8fee
@ -0,0 +1,2 @@ |
||||
Kenneth Wilke <kenneth.wilke@rackspace.com> |
||||
Carlos Perelló Marín <carlos@pemas.net> |
@ -1,15 +1,13 @@ |
||||
epel |
||||
==== |
||||
Copyright (c) 2013-2014 Salt Stack Formulas |
||||
|
||||
Install the EPEL RPM and GPG key on RHEL 5/6 or CentOS 5/6. |
||||
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 |
||||
|
||||
.. note:: |
||||
http://www.apache.org/licenses/LICENSE-2.0 |
||||
|
||||
See the full `Salt Formulas installation and usage instructions |
||||
<http://docs.saltstack.com/topics/conventions/formulas.html>`_. |
||||
|
||||
Available states |
||||
---------------- |
||||
|
||||
``epel`` |
||||
Installs the GPG key and EPEL RPM package for the current OS. |
||||
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,19 @@ |
||||
include: |
||||
- sudoers |
||||
|
||||
{% set sudoers = pillar.get('sudoers', {}) %} |
||||
{% set included_files = sudoers.get('included_files', []) %} |
||||
{% for included_file,spec in included_files.items() -%} |
||||
{{ included_file }}: |
||||
file.managed: |
||||
- user: root |
||||
- group: root |
||||
- mode: 440 |
||||
- template: jinja |
||||
- source: salt://sudoers/files/sudoers |
||||
- context: |
||||
included: True |
||||
sudoers: {{ spec }} |
||||
- require: |
||||
- file: /etc/sudoers |
||||
{% endfor %} |
Loading…
Reference in new issue