-
-
Save pryorda/db888ea9e84da3e6919850564436edfe to your computer and use it in GitHub Desktop.
stuffs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if grains['os'] in ('CentOS', 'RedHat', 'Oracle Linux Server') %} | |
centrify_extract: | |
archive: | |
- extracted | |
- name: /tmp/centrify/ | |
- source: http://maven1:8081/artifactory/Archive/centrify/centrify/centrify/centrify-centrify.tgz | |
- source_hash: md5=117c90fd0a67ca73a46471c2d2c34980 | |
- archive_format: tar | |
centrify_install: | |
pkg.installed: | |
- sources: | |
- CentrifyDC: /tmp/centrify/centrifydc-5.1.1-rhel3-x86_64.rpm | |
- CentrifyDC-openssh: /tmp/centrify/centrifydc-openssh-6.0p1-5.1.1-rhel3-x86_64.rpm | |
{% elif grains['osfullname'] in ('Ubuntu') %} | |
download_centrify: | |
cmd.run: | |
- name: "mkdir /tmp/centrify/ || true && curl -sk -o /tmp/centrify/centrify.tgz http://edge.centrify.com/products/centrify-suite/2016-update-1/installers/centrify-suite-2016.1-deb7-x86_64.tgz?_ga=1.234049502.1163249701.1463106592 && tar xvf /tmp/centrify/centrify.tgz -C /tmp/centrify " | |
- unless: [[ -e /tmp/centrify/centrify.tgz ]] | |
centrify_install: | |
cmd.run: | |
- name: "dpkg -i /tmp/centrify/centrifydc-5*x86_64.deb && dpkg -i /tmp/centrify/centrifydc-openssh-*.deb" | |
- unless: which adjoin | |
{% endif %} | |
centrify_setup: | |
cmd.script: | |
- env: | |
- PASSWORD: '{{ salt['pillar.get']('password') }}' | |
- DOMAINUSER: {{ salt['pillar.get']('name') }} | |
- source: salt://default/centrify/join.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@saltmaster01a:/srv/salt/default/centrify# cat join.sh | |
#!/bin/bash | |
set -x | |
adjoin -f -u $DOMAINUSER -p $PASSWORD domain.local -w | |
root@saltmaster01a:/srv/salt/default/centrify# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error: stderr: + adjoin -f -u -p domain.local -w