Skip to content

Instantly share code, notes, and snippets.

@cilkay
Created October 16, 2016 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cilkay/28c7522d89ce12bd893da4a583f26535 to your computer and use it in GitHub Desktop.
Save cilkay/28c7522d89ce12bd893da4a583f26535 to your computer and use it in GitHub Desktop.
interfaces:
file.managed:
- name: /etc/network/interfaces
- source: salt://network/interfaces
- template: jinja
hosts:
file.managed:
- name: /etc/hosts
- source: salt://hosts/hosts
- template: jinja
hostname:
file.managed:
- name: /etc/hostname
- source: salt://hosts/hostname
- template: jinja
update-hostname:
cmd.run:
- name: hostname {{ grains['tcmweb_hostname'] }}
networking:
service.running:
- reload: True
- watch:
- file: /etc/network/interfaces
- file: /etc/hosts
- file: /etc/hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment