Explorar el Código

Merge pull request #93 from maschinetheist/master

Added ability to specify room number, home phone, and work phone
lookup-fix-3
Forrest hace 9 años
padre
commit
014805de29
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  1. +3
    -0
      pillar.example
  2. +9
    -0
      users/init.sls

+ 3
- 0
pillar.example Ver fichero

@@ -10,6 +10,9 @@ users:
enforce_password: True
home: /custom/buser
createhome: True
roomnumber: "A-1"
workphone: "(555) 555-5555"
homephone: "(555) 555-5551"
manage_vimrc: False
manage_bashrc: False
manage_profile: False

+ 9
- 0
users/init.sls Ver fichero

@@ -95,6 +95,15 @@ users_{{ name }}_user:
{% if 'fullname' in user %}
- fullname: {{ user['fullname'] }}
{% endif -%}
{% if 'roomnumber' in user %}
- roomnumber: {{ user['roomnumber'] }}
{% endif %}
{% if 'workphone' in user %}
- workphone: {{ user['workphone'] }}
{% endif %}
{% if 'homephone' in user %}
- homephone: {{ user['workphone'] }}
{% endif %}
{% if not user.get('createhome', True) %}
- createhome: False
{% endif %}

Cargando…
Cancelar
Guardar