Skip to content

Instantly share code, notes, and snippets.

@pryorda

pryorda/init.sls Secret

Created June 29, 2016 16:04
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 pryorda/db888ea9e84da3e6919850564436edfe to your computer and use it in GitHub Desktop.
Save pryorda/db888ea9e84da3e6919850564436edfe to your computer and use it in GitHub Desktop.
stuffs
{% 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
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#
@pryorda
Copy link
Author

pryorda commented Jun 29, 2016

Error: stderr: + adjoin -f -u -p domain.local -w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment