Skip to content

Commit

Permalink
Merge pull request #20 from ggiesen/master
Browse files Browse the repository at this point in the history
Resolves #19. Revert to not using punctation in OTP, and use single quotes in shell commands
  • Loading branch information
fpytloun authored Nov 10, 2021
2 parents 2a75304 + f2e5881 commit 2e62986
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions freeipa/client/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ include:
- freeipa.client.cert
{%- if client.install_principal is defined %}
{%- if salt['salt_version.greater_than']('Aluminium') %}
{%- set otp = salt['random.get_str'](length=20, punctuation=False) %}
{%- else %}
{%- set otp = salt['random.get_str'](20) %}
{%- endif %}
freeipa_push_principal:
file.managed:
Expand Down Expand Up @@ -160,9 +164,9 @@ freeipa_client_install:
{%- if client.realm is defined %} --realm {{ client.realm }}{%- endif %}
--hostname {{ ipa_host }}
{%- if otp is defined %}
-w {{ otp }}
-w '{{ otp }}'
{%- else %}
-w {{ client.otp }}
-w '{{ client.otp }}'
{%- endif %}
{%- if not client.get('ntp', {}).get('enabled', True) %} --no-ntp{%- endif %}
{%- if client.get('mkhomedir', True) %} --mkhomedir{%- endif %}
Expand Down

0 comments on commit 2e62986

Please sign in to comment.