Skip to content

ansible role to install mock, clean room package builder for RedHat Enterprise Linux derivative distributions.

License

Notifications You must be signed in to change notification settings

uchida/ansible-mock-role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uchida.mock

Ansible Role Version License Travis

ansible role to install mock, clean room package builder for RedHat Enterprise Linux derivative distributions. In addition, this role add user to mock group and initialize chroot repository.

Role Variables

Available role variables are listed below, along with default values:

mock_config: ''
mock_user: mock

mock_config is a variable to specify mock configuration name in /etc/mock. if this variable is specified, create mock repository. default '' no mock repository created.

mock_user is a variable to specify user to be add in the mock group.

Example Playbooks

install mock and add vagrant user to mock group and initialize epel-6-x86_64 repository

- hosts: servers
  roles:
  - role: uchida.mock
    mock_config: epel-6-x86_64
    mock_user: vagrant

install mock and add vagrant user to mock group and initialize fedora-rawhide-x86_64, epel-7-x86_64 and epel-6-x86_64 repositories.

- hosts: servers
  roles:
  - role: uchida.mock
    mock_user: vagrant
  - role: uchida.mock
    mock_config: fedora-rawhide-x86_64
    mock_user: vagrant
  - role: uchida.mock
    mock_config: epel-7-x86_64
    mock_user: vagrant
  - role: uchida.mock
    mock_config: epel-6-x86_64
    mock_user: vagrant

License

CC0

dedicated to public domain, no rights reserved.

About

ansible role to install mock, clean room package builder for RedHat Enterprise Linux derivative distributions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published