Giter VIP home page Giter VIP logo

automation-examples's People

Contributors

b-harper avatar carlwgeorge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

automation-examples's Issues

Chef and Puppet

Both Chef and Puppet have examples for IUS. In both cases, they manually create the IUS repositories configuration files and do not use the ius-release package. Should we link to those example? Should we reach out and determine why the ius-release package was not used?

Ansible playbook failed

Trying to run the Ansible playbook: ansible-playbook -i "hosts" enable-ius.yml I get the error: Failure downloading https://centos7.iuscommunity.org/ius-release.rpm, 'NoneType' object has no attribute 'read'

Running with -vvvv

TASK [install IUS release package] *********************************************
task path: /home/vagrant/ansible-playbook-aegir-centos/enable-ius.yml:24
<haproxy.dev> ESTABLISH SSH CONNECTION FOR USER: None
<haproxy.dev> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r haproxy.dev '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478002414.39-180297584212514 `" && echo ansible-tmp-1478002414.39-180297584212514="` echo $HOME/.ansible/tmp/ansible-tmp-1478002414.39-180297584212514 `" ) && sleep 0'"'"''
<haproxy.dev> PUT /tmp/tmpcDwJ_w TO /home/vagrant/.ansible/tmp/ansible-tmp-1478002414.39-180297584212514/yum
<haproxy.dev> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r '[haproxy.dev]'
<haproxy.dev> ESTABLISH SSH CONNECTION FOR USER: None
<haproxy.dev> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r haproxy.dev '/bin/sh -c '"'"'chmod u+x /home/vagrant/.ansible/tmp/ansible-tmp-1478002414.39-180297584212514/ /home/vagrant/.ansible/tmp/ansible-tmp-1478002414.39-180297584212514/yum && sleep 0'"'"''
<haproxy.dev> ESTABLISH SSH CONNECTION FOR USER: None
<haproxy.dev> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/ansible-ssh-%h-%p-%r -tt haproxy.dev '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qhedrztmtfnuecabiruxawxazzdnjrzl; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1478002414.39-180297584212514/yum; rm -rf "/home/vagrant/.ansible/tmp/ansible-tmp-1478002414.39-180297584212514/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
fatal: [haproxy.dev]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"conf_file": null, "disable_gpg_check": false, "disablerepo": null, "enablerepo": null, "exclude": null, "install_repoquery": true, "list": null, "name": ["https://centos7.iuscommunity.org/ius-release.rpm"], "state": "present", "update_cache": false, "validate_certs": true}, "module_name": "yum"}, "msg": "Failure downloading https://centos7.iuscommunity.org/ius-release.rpm, 'NoneType' object has no attribute 'read'"}

Something else I notice and maybe help; When you run a task to install the epel repo using the state: latest it fails instead when you run as state: present

This one will fail:

- name: Install epel repo
  yum:
    name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    state: latest

But this one will work:

- name: Install epel repo
  yum:
    name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    state: present

Unfortunately doing the same on for the IUS repo it always fails:

- name: Install IUS repo
  yum:
    name: https://centos7.iuscommunity.org/ius-release.rpm
    state: present

[bash] abort exection on error

There is a minor problem with the enable-ius.sh script in the bash branch. If the ius-release or epel-release RPM URLs fail to resolve for whatever reason, the script keeps running and tries to import a key file that doesn't exist, resulting in a misleading error.

# rpm --import /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
error: /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY: import read failed(2).

Using set -e (abort for any non-zero exit code) at the start of the script should be able to handle this, as long as yum properly produces a non-zero exit code when yum install <URL_TO_RPM> fails to resolve the given URL.

Add license

Please add a license or a clarifying statement under which conditions the scripts can be used, thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.