Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with pulp
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
Overview
This module installs and configures the Pulp repository management software.
Module Description
This module specifically limits itself to the Pulp software and does not try to manage any other components that make up a Pulp server. This is to provide maximum flexibility and minimal scope.
It should be combined with web server, messaging transport, and database module to configure a working Pulp server.
Setup
What pulp affects
- Packages
- pulp-server
- pulp-selinux
- python-pulp-streamer
- python-gofer-(qpid|amqp)
- pulp-*-plugins packages
- pulp-admin-client
- pulp-*-admin-extensions packages
- pulp-puppet-tools
- python-pulp-puppet-common
- Files
- /etc/pulp/admin/admin.conf
- /etc/pulp/admin/conf.d/puppet.conf
- /etc/pki/pulp/rsa.key
- /etc/pulp/repo_auth.conf
- /etc/pulp/server/plugins.conf.d/ files
- /etc/sysconfig/pulp_workers
- Services
- pulp_celerybeat
- pulp_resource_manager
- pulp_workers
- pulp_streamer
- Execs
- pulp-gen-key-pair
- pulp-gen-ca-certificate
- pulp-manage-db
- reloading systemctl daemon
Beginning with pulp
You will need a working MongoDB database and your webserver user present before declaring the Pulp module. By default the module will attempt to connect to a database at the default location with the default credentials and run the pulp-manage-db command as the webserver user for database migrations.
class { '::pulp': }
The pulp-manage-db command can be disabled:
class { '::pulp':
exec_pulp_manage_db => false,
}
Usage
Install Pulp 2.14 with the RPM plugin enabled, repo managed, OAuth disabled, and webserver user/group management disabled:
class { '::pulp':
version => '2.14',
server_default_login => test,
server_default_password => testpass,
oauth_enabled => false,
enable_plugins => ['rpm'],
manage_http_user => false,
manage_http_group => false,
manage_repo => true,
}
Reference
Parameters
All defaults can be found in the data directory files.
version: Version of Pulp to install and configure.pulp_packages_ensure: Ensure value for the Pulp packages.gofer_package_ensure: Ensure value for the gofer packages.enable_plugins: Array of Pulp plugins to enable.http_user: User the webserver runs under.manage_http_user: Enable/disable management of the webserver user.http_group: Group the webserver runs under.manage_http_group: Enable/disable management of the webserver group.exec_pulp_manage_db: Enable/Disable execution of the pulp-manage-db command.manage_repo: Enable/disable management of the Pulp repo.repo_proxy: Proxy used for connecting to the Pulp repo.proxy_host: Proxy host for plugin configuration.proxy_port: Proxy port for plugin configuration.proxy_username: Proxy username for plugin configuration.proxy_password: Proxy password for plugin configuration.number_workers: Number of workers to set in /etc/sysconfig/pulp_workers.max_tasks_per_child: Max tasks per child to set in /etc/sysconfig/pulp_workers.
Settings from repo_auth.conf
See https://github.com/pulp/pulp/blob/master/server/etc/pulp/repo_auth.conf
repo_authrepo_auth_repo_url_prefixesrepo_auth_verify_sslrepo_auth_disabled_authenticatorsrepo_auth_cert_locationrepo_auth_global_cert_locationrepo_auth_protected_repo_listing_filerepo_auth_crl_location
Settings from server.conf
See https://github.com/pulp/pulp/blob/master/server/etc/pulp/server.conf
Database section
database_namedatabase_seedsdatabase_usernamedatabase_passworddatabase_replica_setdatabase_ssldatabase_ssl_keyfiledatabase_ssl_certfiledatabase_verify_ssldatabase_ca_pathdatabase_unsafe_autoretrydatabase_write_concern
Server section
server_server_nameserver_key_urlserver_ks_urlserver_default_loginserver_default_passwordserver_debugging_modeserver_log_levelserver_working_directory
Authentication section
authentication_rsa_keyauthentication_rsa_pub
Security section
security_cacertsecurity_cakeysecurity_ssl_ca_certificatesecurity_user_cert_expirationsecurity_consumer_cert_expirationsecurity_serial_number_path
Consumer History section
consumer_history_lifetime
Data Reaping section
data_reaping_reaper_intervaldata_reaping_archived_callsdata_reaping_consumer_historydata_reaping_repo_sync_historydata_reaping_repo_publish_historydata_reaping_repo_group_publish_historydata_reaping_task_status_historydata_reaping_task_result_history
LDAP section
ldap_enabledldap_urildap_baseldap_tlsldap_default_roleldap_filter
OAuth section
oauth_enabledoauth_oauth_keyoauth_oauth_secret
Messaging section
messaging_urlmessaging_transportmessaging_auth_enabledmessaging_cacertmessaging_clientcertmessaging_topic_exchangemessaging_event_notifications_enabledmessaging_event_notification_url
Tasks section
tasks_broker_urltasks_celery_require_ssltasks_cacerttasks_keyfiletasks_certfiletasks_login_method
Email section
email_enabledemail_hostemail_portemail_from
Lazy Redirect section
lazy_redirect_hostlazy_redirect_portlazy_redirect_pathlazy_https_retrievallazy_download_intervallazy_download_concurrency
Profiling section
profiling_enabledprofiling_directory