Skip to content

Latest commit

 

History

History
76 lines (57 loc) · 1.37 KB

README.md

File metadata and controls

76 lines (57 loc) · 1.37 KB

ansible-module-dlrn-run

Ansible module to run DLRN on systems deployed with puppet-dlrn

This Ansible module is designed to run certain DLRN operations on systems deployed using https://github.com/rdo-infra/puppet-dlrn.

Installation

Just place the library/ folder on the same directory as your playbook, or copy the library/dlrn_run.py somewhere in your Ansible module path.

Example playbooks

Build all packages

- dlrn_run:
  become: yes
  become_user: centos-master-uc

Build a single package

- dlrn_run:
    package_name: openstack-nova
  become: yes
  become_user: centos-master-uc

Build several packages

- dlrn_run:
    package_name:
        - openstack-nova
        - openstack-cinder
        - python-tripleoclient
  become: yes
  become_user: centos-master-uc

Recheck two packages

- dlrn_run:
    package_name:
        - openstack-nova
        - openstack-cinder
    recheck: true
  become: yes
  become_user: centos-master-uc

Forcefully recheck a package

- dlrn_run:
    package_name:
        - openstack-nova
    recheck: true
    force_recheck: true
  become: yes
  become_user: centos-master-uc

Note that, to forcefully recheck a package, you need to set allow_force_rechecks=True in the builder's projects.ini file.

License

Apache 2.0

Author