Version v3.7.0 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot.
For up-to-date documentation, see the latest version.
Use these playbook tasks to manage local package repositories (YUM/APT) on Infra nodes:
./infra.yml -t repo # Create local repo from internet or offline packages./infra.yml -t repo_dir # Create local repo directory./infra.yml -t repo_check # Check if local repo exists./infra.yml -t repo_prepare # Use existing local repo if available./infra.yml -t repo_build # Build local repo from upstream if not exists./infra.yml -t repo_upstream # Add upstream repo/list files./infra.yml -t repo_remove # Remove existing repo files if repo_remove=true./infra.yml -t repo_add # Add upstream repo files to /etc/yum.repos.d (or apt)./infra.yml -t repo_url_pkg # Download packages defined in repo_url_packages./infra.yml -t repo_cache # Create metadata cache with yum makecache / apt update./infra.yml -t repo_boot_pkg # Install bootstrap packages (createrepo_c, yum-utils, etc)./infra.yml -t repo_pkg # Download packages & deps from upstream./infra.yml -t repo_create # Create local repo with createrepo_c / dpkg-dev./infra.yml -t repo_use # Add new repo to /etc/yum.repos.d | apt sources./infra.yml -t repo_nginx # Start nginx as file server if not running
Commonly used commands:
./infra.yml -t repo_upstream # Add upstream repos defined in repo_upstream./infra.yml -t repo_pkg # Download packages and their dependencies./infra.yml -t repo_create # Create/update local yum/apt repo