Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable easy ssh key revocation #694

Merged
merged 2 commits into from Jun 14, 2017
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Create single source for root user/group info

  • Loading branch information
aneeshusa committed Jun 7, 2017
commit edbfd4a3f322456502c1d698f76f3a9e5e412631
@@ -1,3 +1,4 @@
{% from 'common/map.jinja' import root %}
{% from tpldir ~ '/map.jinja' import admin %}
admin-packages:
@@ -18,12 +19,8 @@ UTC:
/etc/hosts:
file.managed:
- user: root
{% if grains['os'] == 'MacOS' %}
- group: wheel
{% elif grains['os'] == 'Ubuntu' %}
- group: root
{% endif %}
- user: {{ root.user }}
- group: {{ root.group }}
- mode: 644
- source: salt://{{ tpldir }}/files/hosts
@@ -11,3 +11,21 @@
grain='os'
)
%}

{%
set root = salt['grains.filter_by']({
'defaults': {
'user': 'root',
'group': 'root'
},
'MacOS': {
'group': 'wheel'
},
'Windows': {
'user': 'Administrators'
}
},
base='defaults',
grain='os',
)
%}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.