Installs and configures the Open Build Service (OBS).
This role is written for OpenSUSE, and is currently tested on OpenSUSE Leap 15.1. It makes use of the zypper
and zypper_repository
modules, so you need to install the python-xml
package. Due to the use of the firewalld module, you must use Python 3 for your ansible_python_interpreter
.
The version of OBS to install. Only 2.10 is tested. The default is 2.10.
The version of OpenSUSE OBS is being installed on. The default is 15.1.
The fully qualified domain name for this OBS instance. The default is "obs.internal".
The domains to use when generating a self-signed certificate. The default is ["{{ obs_fqdn }}", "obs", "localhost"].
Enable compatibility with xdelta1. openSUSE now packages xdelta3 in a way where it pretends to be xdelta1, but not very well. This causes an issue for pristine-tar, which is sometimes used in Debian packaging, when xdelta1 was used. Setting this to true will replace the xdelta symlink from the xdelta3 package with an actual xdelta1 binary. The default is false.
The filename of the xdelta rpm if using xdelta1 compatibility. The default is "xdelta-1.1.4-193.d_t.3.x86_64.rpm".
Address of the signing server to use. By default this is 127.0.0.1, meaning that the local signing server set up as part of the OBS server will be used. Change this if you are using a detached signing server.
The user to use for signing. Note that this corresponds to the email address of the GPG key that should be used. By default this is defaultkey@localobs, and this is the address that will be used for the key generated for the local signer created by this role. If you are using a detached signing server, it is recommended that you use a different email address for the GPG key on that machine and set this variable to it.
Path to a certificate for the web server to use. Disables self-signed certificate generation when set.
Path to a key for the web server to use.
Address of the source server. Defaults to localhost.
Address of the repository server. Defaults to localhost.
Address of the service server. Defaults to localhost.
Address of the cloudupload server. Defaults to localhost.
Address of the worker source server. Defaults to localhost.
Address of the worker repository server. Defaults to localhost.
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
The easiest way to test your changes is using Vagrant. Once you have installed Vagrant, you can create and provision a VM like this:
$ cd open-build-service
$ vagrant up
After making changes, you can run Ansible again like this:
$ vagrant provision
Once you're finished, you can destroy the VM like this:
$ vagrant destroy
BSD 3-Clause
An optional section for the role authors to include contact information, or a website (HTML is not allowed).