# tripleo-repos cli interface ## Considerations: - Have a template file containing all the repo information - all the CLI interfaces will work standalone. ## Scenarios 1 An user can pass the hash for a particular dlrn repo would be useful for reproducer and install a package and use a different proy url ### CLI Input ``` tripleo-repos configure-repo delorean.repo --repo-type dlrn --repo-hash 6ab585bbd38fa96125006c5ddcdbe6ad \ --promotion-pipeline current-tripleo \ --install-packages python-tripleoclient \ --include_packages tripleo-heat-templates \ --proxy-url https://x.y.z release master ``` ### CLI Output ``` Detecting Distro and Version: CentOS and 8.0 Found promotion pipeline: current-tripleo Checking the connectivity for proxy url https://x.y.z REACHABLE Getting dlrn md5 hash from https://x.y.z/centos8-master/tripleo-ci-testing/delorean.repo.md5 received: 6ab585bbd38fa96125006c5ddcdbe6ad Saving dlrn md5 hash in /tmp/dlrn_md5_hash_tripleo_ci_testing.txt setting env var DLRN_MD5_HASH 6ab585bbd38fa96125006c5ddcdbe6ad setting env var DLRN_PATH_TAG tripleo-ci-testing/6a/b5/6ab585bbd38fa96125006c5ddcdbe6ad Populating repo at /etc/yum.repos.d/delorean.repo Setting include packages : tripleo-heat-templates for the repo Installing python-tripleoclient from delorean.repo ``` ## Scenario 2 An user can enable or disable a module and install or remove a partiular package ### CLI Input ``` tripleo-repos module container-tools --enable rhel8 \ --disable 2.0 --install-packages podman ``` ### CLI Output ``` Detected container tools module, Disabling container-tools:2.0 Enabling container-tools:rhel-8 Install podman package from container-tools ``` ## Scenarios 3 Scenario 1: Prepare the tripleo env for standalone using master repo using tripleo-ci-testing pipeline ### User operations An user can pass - Openstack release - promotion pipeline to use - use nodepool proxy for rdo and centos - enable current dlrn repo - enable dlrn deps repo - populate a set of repos for deployment - remove a list of repos - disable and enabling module - perform system update - installing any particular package ### CLI interface ``` tripleo-repos --release master --promotion tripleo-ci-testing \ --use-proxy-rdo true --use-proxy-centos true \ --use-current true \ --use-delorean-deps true \ --populate-repos centos-base, centos-appstreams, centos-powertools, centos-highavailability, centos-extras, centos-ceph-octopus, centos-opstools \ --remove-repos delorean, epel \ --disable-module container-tools:rhel8 \ --enable-module container-tools:2.0 \ --perform-update true \ --install packages python3-tripleoclient ``` ### Tool output ``` Detecting Distro and Version: CentOS and 8.0 Found promotion pipeline: tripleo-ci-testing Removing delorean, epel repos. Getting dlrn md5 hash from https://trunk.rdoproject.org/centos8-master/tripleo-ci-testing/delorean.repo.md5 received: 6ab585bbd38fa96125006c5ddcdbe6ad Saving dlrn md5 hash in /tmp/dlrn_md5_hash_tripleo_ci_testing.txt setting env var DLRN_MD5_HASH 6ab585bbd38fa96125006c5ddcdbe6ad setting env var DLRN_PATH_TAG tripleo-ci-testing/6a/b5/6ab585bbd38fa96125006c5ddcdbe6ad Getting dlrn md5 hash from https://trunk.rdoproject.org/centos8-master/current/delorean.repo.md5 received: 820f4c1a7eef87b53ca705cf5eb8364f Saving dlrn md5 hash in /tmp/dlrn_md5_hash_current.txt setting env var DLRN_MD5_HASH 820f4c1a7eef87b53ca705cf5eb8364f setting env var DLRN_PATH_TAG current/82/0f/820f4c1a7eef87b53ca705cf5eb8364f Getting proxy url from default config: Setting NODEPOOL_RDO_PROXY https://trunk.rdoproject.org Setting NODEPOOL_CENTOS_MIRROR https://centos.xyz Populating repos for tripleo-ci-testing promotion pipeline populating dlrn-current.repo populating dlrn-deps.repo populating dlrn-tripleo-ci-testing.repo populating centos-base.repo populating centos-appstream.repo populating centos-powertools.repo poulating centos-ha.repo populating centos-ceph-octopus.repo populating centos-opstools.repo Listing populated repos Diabling module container-tools:rhel8 Enabling module container-tools:2.0 Cleaning dnf metadate Performing yum update. Installing package python-tripleoclient ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up