Managing content Red Hat Satellite 6.16 Import content from Red Hat and custom sources, manage applications lifecycle across lifecycle environments, filter content by using Content Views, synchronize content between Satellite Servers, and more Red Hat Satellite Documentation Team satellite-doc-list@redhat.com

Commands:
scp ~/ manifest_file .zip root@ satellite.example.com :~/.
hammer subscription upload --file ~/ manifest_file .zip --organization " My_Organization "
tree -d -L 11 └── content 1 ├── beta 2 │ └── rhel 3 │ └── server 4 │ └── 7 5 │ └── x86_64 6 │ └── sat-tools 7 └── dist └── rhel └── server └── 7 ├── 7.2 │ └── x86_64 │ └── kickstart └── 7Server └── x86_64 └── os
hammer alternate-content-source create --alternate-content-source-type custom --base-url " https://local-repo.example.com:port " --name " My_ACS_Name " --smart-proxy-ids My_Capsule_ID
hammer alternate-content-source list
hammer alternate-content-source refresh --id My_Alternate_Content_Source_ID
hammer alternate-content-source update --id My_Alternate_Content_Source_ID --smart-proxy-ids My_Capsule_ID
hammer alternate-content-source refresh --id My_Alternate_Content_Source_ID
hammer alternate-content-source create --alternate-content-source-type simplified --name My_ACS_Name --product-ids My_Product_ID --smart-proxy-ids My_Capsule_ID
hammer alternate-content-source list
hammer alternate-content-source refresh --id My_ACS_ID
rhui-manager repo info --repo_id My_Repo_ID
hammer alternate-content-source create --alternate-content-source-type rhui --base-url " https://rhui-cds-node/pulp/content " --name " My_ACS_Name " --smart-proxy-ids My_Capsule_ID --ssl-client-cert-id My_SSL_Client_Certificate_ID --ssl-client-key-id My_SSL_Client_Key_ID --subpaths path/to/repo/1/,path/to/repo/2/ --verify-ssl 1
hammer alternate-content-source list
hammer alternate-content-source refresh --id My_Alternate_Content_Source_ID
hammer alternate-content-source update --id My_Alternate_Content_Source_ID --smart-proxy-ids My_Capsule_ID
hammer alternate-content-source refresh --id My_Alternate_Content_Source_ID
scp My_SSL_Certificate root@satellite.example.com:~/.
wget -P ~ http:// upstream-satellite.example.com /pub/katello-server-ca.crt
hammer content-credential create --content-type cert --name " My_SSL_Certificate " --organization " My_Organization " --path ~/ My_SSL_Certificate
hammer product create --name " My_Product " --sync-plan " Example Plan " --description " Content from My Repositories " --organization " My_Organization "
hammer repository create --arch " My_Architecture " --content-type "yum" --gpg-key-id My_GPG_Key_ID --name " My_Repository " --organization " My_Organization " --os-version " My_Operating_System_Version " --product " My_Product " --publish-via-http true --url My_Upstream_URL
hammer product list --organization " My_Organization "
hammer repository-set list --product "Red Hat Enterprise Linux Server" --organization " My_Organization "
hammer repository-set enable --name "Red Hat Enterprise Linux 7 Server (RPMs)" --releasever "7Server" --basearch "x86_64" --product "Red Hat Enterprise Linux Server" --organization " My_Organization "
hammer product synchronize --name " My_Product " --organization " My_Organization "
hammer repository synchronize --name " My_Repository " --organization " My_Organization " --product " My Product "
ORG=" My_Organization " for i in USD(hammer --no-headers --csv repository list --organization USDORG --fields Id) do hammer repository synchronize --id USD{i} --organization USDORG --async done
hammer settings set --name default_redhat_download_policy --value immediate
hammer settings set --name default_download_policy --value immediate
hammer repository list --organization-label My_Organization_Label
hammer repository update --download-policy immediate --name " My_Repository " --organization-label My_Organization_Label --product " My_Product "
hammer repository list --organization-label My_Organization_Label
hammer repository update --id 1 --mirroring-policy mirror_complete
hammer repository upload-content --id My_Repository_ID --path /path/to/example-package.rpm
hammer repository upload-content --content-type srpm --id My_Repository_ID --path /path/to/example-package.src.rpm
semanage port -l | grep ^http_port_t http_port_t tcp 80, 81, 443, 488, 8008, 8009, 8443, 9000
semanage port -a -t http_port_t -p tcp 10011
hammer repository list --organization " My_Organization "
hammer repository synchronize --id My_ID
hammer repository synchronize --id My_ID --skip-metadata-check true
hammer repository synchronize --id My_ID --validate-contents true
hammer capsule content verify-checksum --id My_Capsule_ID --organization-id 1 --content-view-id 3
hammer capsule content verify-checksum --id My_Capsule_ID --organization-id 1 --lifecycle-environment-id 1
hammer capsule content verify-checksum --id My_Capsule_ID --organization-id 1 --repository-id 1
hammer capsule content verify-checksum --id My_Capsule_ID
hammer http-proxy create --name My_HTTP_Proxy --url http-proxy.example.com:8080
hammer repository update --http-proxy-policy HTTP_Proxy_Policy --id Repository_ID
hammer sync-plan create --description " My_Description " --enabled true --interval daily --name " My_Products " --organization " My_Organization " --sync-date "2023-01-01 01:00:00"
hammer sync-plan list --organization " My_Organization "
hammer product set-sync-plan --name " My_Product_Name " --organization " My_Organization " --sync-plan " My_Sync_Plan_Name "
ORG=" My_Organization " SYNC_PLAN="daily_sync_at_3_a.m" hammer sync-plan create --name USDSYNC_PLAN --interval daily --sync-date "2023-04-5 03:00:00" --enabled true --organization USDORG for i in USD(hammer --no-headers --csv --csv-separator="|" product list --organization USDORG --per-page 999 | grep -vi not_synced | awk -F'|' 'USD5 != "0" { print USD1}') do hammer product set-sync-plan --sync-plan USDSYNC_PLAN --organization USDORG --id USDi done
hammer product list --organization USDORG --sync-plan USDSYNC_PLAN
hammer repository update --download-concurrency 5 --id Repository_ID --organization " My_Organization "
wget http://www.example.com/9.5/example-9.5-2.noarch.rpm
rpm2cpio example-9.5-2.noarch.rpm | cpio -idmv
-----BEGIN PGP PUBLIC KEY BLOCK----- mQINBFy/HE4BEADttv2TCPzVrre+aJ9f5QsR6oWZMm7N5Lwxjm5x5zA9BLiPPGFN 4aTUR/g+K1S0aqCU+ZS3Rnxb+6fnBxD+COH9kMqXHi3M5UNzbp5WhCdUpISXjjpU XIFFWBPuBfyr/FKRknFH15P+9kLZLxCpVZZLsweLWCuw+JKCMmnA =F6VG -----END PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK----- mQINBFw467UBEACmREzDeK/kuScCmfJfHJa0Wgh/2fbJLLt3KSvsgDhORIptf+PP OTFDlKuLkJx99ZYG5xMnBG47C7ByoMec1j94YeXczuBbynOyyPlvduma/zf8oB9e Wl5GnzcLGAnUSRamfqGUWcyMMinHHIKIc1X1P4I= =WPpI -----END PGP PUBLIC KEY BLOCK-----
scp ~/etc/pki/rpm-gpg/RPM-GPG-KEY- EXAMPLE-95 root@satellite.example.com:~/.
hammer content-credentials create --content-type gpg_key --name " My_GPG_Key " --organization " My_Organization " --path ~/RPM-GPG-KEY- EXAMPLE-95
hammer lifecycle-environment create --name " Environment Path Name " --description " Environment Path Description " --prior "Library" --organization " My_Organization "
hammer lifecycle-environment create --name " Environment Name " --description " Environment Description " --prior " Prior Environment Name " --organization " My_Organization "
hammer lifecycle-environment paths --organization " My_Organization "
hammer capsule list
hammer capsule info --id My_capsule_ID
hammer capsule content available-lifecycle-environments --id My_capsule_ID
hammer capsule content add-lifecycle-environment --id My_capsule_ID --lifecycle-environment-id My_Lifecycle_Environment_ID --organization " My_Organization "
hammer capsule content synchronize --id My_capsule_ID
hammer capsule content synchronize --id My_capsule_ID --lifecycle-environment-id My_Lifecycle_Environment_ID
hammer capsule content synchronize --id My_capsule_ID --skip-metadata-check true
hammer lifecycle-environment list --organization " My_Organization "
hammer lifecycle-environment delete --name " My_Environment " --organization " My_Organization "
hammer capsule list
hammer capsule info --id My_Capsule_ID
hammer capsule content lifecycle-environments --id My_Capsule_ID
hammer capsule content remove-lifecycle-environment --id My_Capsule_ID --lifecycle-environment-id My_Lifecycle_Environment_ID
hammer capsule content synchronize --id My_Capsule_ID
hammer repository list --organization " My_Organization "
hammer content-view create --description " My_Content_View " --name " My_Content_View " --organization " My_Organization " --repository-ids 1,2
hammer content-view publish --description " My_Content_View " --name " My_Content_View " --organization " My_Organization "
hammer content-view add-repository --name " My_Content_View " --organization " My_Organization " --repository-id repository_ID
hammer content-view copy --name My_original_CV_name --new-name My_new_CV_name
hammer content-view copy --id=5 --new-name="mixed_copy" Content view copied.
hammer capsule content synchronize --content-view "my content view name"
hammer organization list
hammer module-stream list --organization-id My_Organization_ID
hammer content-view version promote --content-view "Database" --version 1 --to-lifecycle-environment "Development" --organization " My_Organization " hammer content-view version promote --content-view "Database" --version 1 --to-lifecycle-environment "Testing" --organization " My_Organization " hammer content-view version promote --content-view "Database" --version 1 --to-lifecycle-environment "Production" --organization " My_Organization "
ORG=" My_Organization " CVV_ID= My_Content_View_Version_ID for i in USD(hammer --no-headers --csv lifecycle-environment list --organization USDORG | awk -F, {'print USD1'} | sort -n) do hammer content-view version promote --organization USDORG --to-lifecycle-environment-id USDi --id USDCVV_ID done
hammer content-view version info --id My_Content_View_Version_ID
hammer content-view version list --organization " My_Organization "
hammer content-view create --composite --auto-publish yes --name " Example_Composite_Content_View " --description "Example composite content view" --organization " My_Organization "
hammer content-view component add --component-content-view-id Content_View_ID --composite-content-view " Example_Composite_Content_View " --latest --organization " My_Organization "
hammer content-view component add --component-content-view-id Content_View_ID --composite-content-view " Example_Composite_Content_View " --component-content-view-version-id Content_View_Version_ID --organization " My_Organization "
hammer content-view publish --name " Example_Composite_Content_View " --description "Initial version of composite content view" --organization " My_Organization "
hammer content-view version promote --content-view " Example_Composite_Content_View " --version 1 --to-lifecycle-environment "Development" --organization " My_Organization " hammer content-view version promote --content-view " Example_Composite_Content_View " --version 1 --to-lifecycle-environment "Testing" --organization " My_Organization " hammer content-view version promote --content-view " Example_Composite_Content_View " --version 1 --to-lifecycle-environment "Production" --organization " My_Organization "
hammer content-view filter create --name " Errata Filter " --type erratum --content-view " Example_Content_View " --description " My latest filter " --inclusion false --organization " My_Organization "
hammer content-view filter rule create --content-view " Example_Content_View " --content-view-filter " Errata Filter " --start-date " YYYY-MM-DD " --types enhancement,bugfix --date-type updated --organization " My_Organization "
hammer content-view publish --name " Example_Content_View " --description "Adding errata filter" --organization " My_Organization "
hammer content-view version promote --content-view " Example_Content_View " --version 1 --to-lifecycle-environment "Development" --organization " My_Organization " hammer content-view version promote --content-view " Example_Content_View " --version 1 --to-lifecycle-environment "Testing" --organization " My_Organization " hammer content-view version promote --content-view " Example_Content_View " --version 1 --to-lifecycle-environment "Production" --organization " My_Organization "
curl http://satellite.example.com/pub/katello-server-ca.crt
hammer content-export complete library --organization=" My_Organization "
ls -lh /var/lib/pulp/exports/ My_Organization /Export-Library/1.0/2021-03-02T03-35-24-00-00 total 68M -rw-r--r--. 1 pulp pulp 68M Mar 2 03:35 export-1e25417c-6d09-49d4-b9a5-23df4db3d52a-20210302_0335.tar.gz -rw-r--r--. 1 pulp pulp 333 Mar 2 03:35 export-1e25417c-6d09-49d4-b9a5-23df4db3d52a-20210302_0335-toc.json -rw-r--r--. 1 pulp pulp 443 Mar 2 03:35 metadata.json
hammer content-export complete library --chunk-size-gb=2 --organization=" My_Organization " Generated /var/lib/pulp/exports/ My_Organization /Export-Library/2.0/2021-03-02T04-01-25-00-00/metadata.json ls -lh /var/lib/pulp/exports/ My_Organization /Export-Library/2.0/2021-03-02T04-01-25-00-00/
hammer content-export complete library --organization=" My_Organization " --format=syncable
du -sh /var/lib/pulp/exports/ My_Organization /Export- My_Repository /1.0/2021-03-02T03-35-24-00-00
hammer content-import library --organization=" My_Organization " --path=" My_Path_To_Syncable_Export "
hammer content-export incremental library --organization=" My_Organization "
find /var/lib/pulp/exports/ My_Organization /Export-Library/
hammer content-view version list --content-view=" My_Content_View " --organization=" My_Organization " ---|----------|---------|-------------|----------------------- ID | NAME | VERSION | DESCRIPTION | LIFECYCLE ENVIRONMENTS ---|----------|---------|-------------|----------------------- 5 | view 3.0 | 3.0 | | Library 4 | view 2.0 | 2.0 | | 3 | view 1.0 | 1.0 | | ---|----------|---------|-------------|----------------------
hammer content-export complete version --content-view=" Content_View_Name " --version=1.0 --organization=" My_Organization "
ls -lh /var/lib/pulp/exports/ My_Organization / Content_View_Name /1.0/2021-02-25T18-59-26-00-00/
hammer content-export complete version --chunk-size-gb=2 --content-view=" Content_View_Name " --organization=" My_Organization " --version=1.0 ls -lh /var/lib/pulp/exports/ My_Organization /view/1.0/2021-02-25T21-15-22-00-00/
hammer content-view version list --content-view=" My_Content_View " --organization=" My_Organization "
hammer content-export complete version --content-view=" Content_View_Name " --version=1.0 --organization=" My_Organization " --format=syncable
ls -lh /var/lib/pulp/exports/ My_Organization / My_Content_View_Name /1.0/2021-02-25T18-59-26-00-00/
hammer content-export incremental version --content-view=" My_Content_View " --organization=" My_Organization " --version=" My_Content_View_Version "
find /var/lib/pulp/exports/ My_Organization / My_Exported_Content_View / My_Content_View_Version /
hammer content-export complete repository --name=" My_Repository " --product=" My_Product " --organization=" My_Organization "
ls -lh /var/lib/pulp/exports/ My_Organization /Export- My_Repository /1.0/2022-09-02T03-35-24-00-00/
hammer content-export complete repository --organization=" My_Organization " --product=" My_Product " --name=" My_Repository " --format=syncable
du -sh /var/lib/pulp/exports/ My_Organization /Export- My_Repository /1.0/2021-03-02T03-35-24-00-00
hammer content-export incremental repository --name=" My_Repository " --organization=" My_Organization " --product=" My_Product "
ls -lh /var/lib/pulp/exports/ My_Organization /Export- My_Repository /3.0/2021-03-02T03-35-24-00-00/ total 172K -rw-r--r--. 1 pulp pulp 20M Mar 2 04:22 export-436882d8-de5a-48e9-a30a-17169318f908-20210302_0422.tar.gz -rw-r--r--. 1 pulp pulp 333 Mar 2 04:22 export-436882d8-de5a-48e9-a30a-17169318f908-20210302_0422-toc.json -rw-r--r--. 1 root root 492 Mar 2 04:22 metadata.json
hammer content-export incremental repository --format=syncable --name=" My_Repository " --organization=" My_Organization " --product=" My_Product "
find /var/lib/pulp/exports/Default_Organization/ My_Product /2.0/2023-03-09T10-55-48-05-00/ -name "*.rpm"
hammer content-export complete library --destination-server= My_Downstream_Server_1 --organization=" My_Organization " --version=1.0
hammer content-export complete version --content-view=" Content_View_Name " --destination-server= My_Downstream_Server_1 --organization=" My_Organization " --version=1.0
hammer content-export list --organization=" My_Organization "
chown -R pulp:pulp /var/lib/pulp/imports/2021-03-02T03-35-24-00-00
ls -lh /var/lib/pulp/imports/2021-03-02T03-35-24-00-00 total 68M -rw-r--r--. 1 pulp pulp 68M Mar 2 04:29 export-1e25417c-6d09-49d4-b9a5-23df4db3d52a-20210302_0335.tar.gz -rw-r--r--. 1 pulp pulp 333 Mar 2 04:29 export-1e25417c-6d09-49d4-b9a5-23df4db3d52a-20210302_0335-toc.json -rw-r--r--. 1 pulp pulp 443 Mar 2 04:29 metadata.json
hammer content-import library --organization=" My_Organization " --path=/var/lib/pulp/imports/2021-03-02T03-35-24-00-00
hammer content-import library --organization=" My_Organization " --path=http:// server.example.com /pub/exports/2021-02-25T21-15-22-00-00/
chown -R pulp:pulp /var/lib/pulp/imports/2021-02-25T21-15-22-00-00/
ls -lh /var/lib/pulp/imports/2021-02-25T21-15-22-00-00/
hammer content-import version --organization= My_Organization --path=/var/lib/pulp/imports/2021-02-25T21-15-22-00-00/
hammer content-view version list --organization-id= My_Organization_ID
hammer content-import version --organization= My_Organization --path=http:// server.example.com /pub/exports/2021-02-25T21-15-22-00-00/
chown -R pulp:pulp /var/lib/pulp/imports/2021-03-02T03-35-24-00-00
ls -lh /var/lib/pulp/imports/2021-03-02T03-35-24-00-00 total 68M -rw-r--r--. 1 pulp pulp 68M Mar 2 04:29 export-1e25417c-6d09-49d4-b9a5-23df4db3d52a-20210302_0335.tar.gz -rw-r--r--. 1 pulp pulp 333 Mar 2 04:29 export-1e25417c-6d09-49d4-b9a5-23df4db3d52a-20210302_0335-toc.json -rw-r--r--. 1 pulp pulp 443 Mar 2 04:29 metadata.json
hammer content-import repository --organization=" My_Organization " --path=/var/lib/pulp/imports/ 2021-03-02T03-35-24-00-00
hammer content-import repository --organization=" My_Organization " --path=http:// server.example.com /pub/exports/2021-02-25T21-15-22-00-00/
hammer hostgroup set-parameter --hostgroup " My_Host_Group " --name " My_Activation_Key " --value " name_of_first_key ", " name_of_second_key ",
hammer activation-key create --name " My_Activation_Key " --unlimited-hosts --description " Example Stack in the Development Environment " --lifecycle-environment " Development " --content-view " Stack " --organization " My_Organization "
hammer activation-key update --organization " My_Organization " --name " My_Activation_Key " --service-level " Standard " --purpose-usage " Development/Test " --purpose-role " Red Hat Enterprise Linux Server " --purpose-addons " addons "
hammer activation-key product-content --content-access-mode-all true --name " My_Activation_Key " --organization " My_Organization "
hammer activation-key content-override --name " My_Activation_Key " --content-label rhel-7-server-satellite-client-6-rpms --value 1 --organization " My_Organization "
hammer host-registration generate-command --activation-keys " My_Activation_Key "
hammer host-registration generate-command --activation-keys " My_Activation_Key " --insecure true
curl -X POST https://satellite.example.com/api/registration_commands --user " My_User_Name " -H 'Content-Type: application/json' -d '{ "registration_command": { "activation_keys": [" My_Activation_Key_1 , My_Activation_Key_2 "] }}'
curl -X POST https://satellite.example.com/api/registration_commands --user " My_User_Name " -H 'Content-Type: application/json' -d '{ "registration_command": { "activation_keys": [" My_Activation_Key_1 , My_Activation_Key_2 "], "insecure": true }}'
hammer activation-key update --name " My_Activation_Key " --organization " My_Organization " --service-level premium
parameter operator value
type = security and package_name = kernel
hammer erratum list
hammer erratum info --id erratum_ID
hammer erratum list --product-id 7 --search "bug = 1213000 or bug = 1207972" --errata-restrict-applicable 1 --order "type desc"
hammer template create --file "~/ My_Snippet " --locations " My_Location " --name " My_Template_Name_custom_pre" \ --organizations "_My_Organization " --type snippet
hammer content-view filter create --content-view " My_Content_View " --description "Exclude errata items from the YYYY-MM-DD " --name " My_Filter_Name " --organization " My_Organization " --type "erratum"
hammer content-view filter rule create --content-view " My_Content_View " --content-view-filter=" My_Content_View_Filter " --organization " My_Organization " --start-date " YYYY-MM-DD " --types=security,enhancement,bugfix
hammer content-view publish --name " My_Content_View " --organization " My_Organization "
hammer content-view version promote --content-view " My_Content_View " --organization " My_Organization " --to-lifecycle-environment " My_Lifecycle_Environment "
hammer erratum list
hammer content-view version list
hammer content-view version incremental-update --content-view-version-id 319 --errata-ids 34068b
hammer host errata list --host client.example.com
hammer erratum info --id ERRATUM_ID
dnf upgrade Module_Stream_Name
hammer host errata list --host client.example.com
hammer erratum info --id ERRATUM_ID
dnf upgrade Module_Stream_Name
hammer host errata list --host client.example.com
hammer job-invocation create --feature katello_errata_install --inputs errata= ERRATUM_ID1 , ERRATUM_ID2 --search-query "name = client.example.com"
hammer erratum list --errata-restrict-installable true --organization " Default Organization "
hammer job-invocation create --feature katello_errata_install --inputs errata= ERRATUM_ID --search-query "applicable_errata = ERRATUM_ID "
for HOST in hammer --csv --csv-separator "|" host list --search "applicable_errata = ERRATUM_ID" --organization "Default Organization" | tail -n+2 | awk -F "|" '{ print USD2 }' ; do echo "== Applying to USDHOST ==" ; hammer host errata apply --host USDHOST --errata-ids ERRATUM_ID1,ERRATUM_ID2 ; done
hammer task list
hammer task progress --id task_ID
hammer job-invocation create --feature katello_errata_install --inputs errata= ERRATUM_ID1 , ERRATUM_ID2 ,... --search-query "host_collection = HOST_COLLECTION_NAME "
hammer product create --description " My_Description " --name "Red Hat Container Catalog" --organization " My_Organization " --sync-plan " My_Sync_Plan "
hammer repository create --content-type "docker" --docker-upstream-name "rhel7" --name "RHEL7" --organization " My_Organization " --product "Red Hat Container Catalog" --url "http://registry.access.redhat.com/"
hammer repository synchronize --name "RHEL7" --organization " My_Organization " --product "Red Hat Container Catalog"
<%= repository.docker_upstream_name %>
mkdir -p /etc/containers/certs.d/hostname.example.com
mkdir -p /etc/docker/certs.d/hostname.example.com
cp rootCA.pem /etc/containers/certs.d/hostname.example.com/ca.crt
cp rootCA.pem /etc/docker/certs.d/hostname.example.com/ca.crt
podman login hostname.example.com Username: admin Password: Login Succeeded!
podman login satellite.example.com
podman search satellite.example.com/
podman pull satellite.example.com/my-image:<optional_tag>
podman push My_Container_Image_Hash satellite.example.com / My_Organization_Label / My_Product_Label / My_Repository_Name [:_My_Tag_] podman push My_Container_Image_Hash satellite.example.com /id/ My_Organization_ID / My_Product_ID / My_Repository_Name [:_My_Tag_]
hammer repository-set list --product "Red Hat Enterprise Linux Server" --organization " My_Organization " | grep "file"
hammer repository-set enable --product "Red Hat Enterprise Linux Server" --name "Red Hat Enterprise Linux 7 Server (ISOs)" --releasever 7.2 --basearch x86_64 --organization " My_Organization "
hammer repository list --product "Red Hat Enterprise Linux Server" --organization " My_Organization "
hammer repository synchronize --name "Red Hat Enterprise Linux 7 Server ISOs x86_64 7.2" --product "Red Hat Enterprise Linux Server" --organization " My_Organization "
hammer product create --name " My_ISOs " --sync-plan "Example Plan" --description " My_Product " --organization " My_Organization "
hammer repository create --name " My_ISOs " --content-type "file" --product " My_Product " --organization " My_Organization "
hammer repository upload-content --path ~/bootdisk.iso --id repo_ID --organization " My_Organization "
--- collections: - name: my_namespace.my_collection version: 1.2.3
subscription-manager repos --enable=rhel-8-for-x86_64-appstream-rpms --enable=rhel-8-for-x86_64-baseos-rpms --enable=satellite-utils-6.16-for-rhel-8-x86_64-rpms
dnf module enable satellite-utils
satellite-maintain packages install pulp-manifest
satellite-maintain packages unlock satellite-maintain packages install pulp-manifest satellite-maintain packages lock
mkdir -p /var/lib/pulp/ local_repos / my_file_repo
satellite-installer --foreman-proxy-content-pulpcore-additional-import-paths /var/lib/pulp/ local_repos
touch /var/lib/pulp/ local_repos / my_file_repo / test.txt
pulp-manifest /var/lib/pulp/ local_repos / my_file_repo
ls /var/lib/pulp/ local_repos / my_file_repo PULP_MANIFEST test.txt
subscription-manager repos --enable=rhel-8-for-x86_64-appstream-rpms --enable=rhel-8-for-x86_64-baseos-rpms --enable=satellite-utils-6.16-for-rhel-8-x86_64-rpms
dnf module enable satellite-utils
dnf install pulp-manifest
mkdir /var/www/html/pub/ my_file_repo
touch /var/www/html/pub/ my_file_repo / test.txt
pulp-manifest /var/www/html/pub/ my_file_repo
ls /var/www/html/pub/ my_file_repo PULP_MANIFEST test.txt
hammer product create --description " My_Files " --name " My_File_Product " --organization " My_Organization " --sync-plan " My_Sync_Plan "
hammer repository create --content-type "file" --name " My_Files " --organization " My_Organization " --product " My_File_Product "
hammer repository upload-content --id repo_ID --organization " My_Organization " --path example_file
curl --cacert ./_katello-server-ca.crt --cert ./_My_Organization_key-cert.pem --remote-name https:// satellite.example.com /pulp/content/ My_Organization_Label /Library/custom/ My_Product_Label / My_Repository_Label / My_File
curl --remote-name http:// satellite.example.com /pulp/content/ My_Organization_Label /Library/custom/ My_Product_Label / My_Repository_Label / My_File
hammer repository list --content-type file ---|------------|-------------------|--------------|---- ID | NAME | PRODUCT | CONTENT TYPE | URL ---|------------|-------------------|--------------|---- 7 | My_Files | My_File_Product | file | ---|------------|-------------------|--------------|----
hammer repository info --name " My_Files " --organization-id My_Organization_ID --product " My_File_Product "
Publish Via HTTP: yes Published At: https:// satellite.example.com /pulp/content/ My_Organization_Label /Library/custom/ My_File_Product_Label / My_Files_Label /
Publish Via HTTP: no Published At: https:// satellite.example.com /pulp/content/ My_Organization_Label /Library/custom/ My_File_Product_Label / My_Files_Label /
curl --cacert ./_katello-server-ca.crt --cert ./_My_Organization_key-cert.pem --remote-name https:// satellite.example.com /pulp/content/ My_Organization_Label /Library/custom/ My_Product_Label / My_Repository_Label / My_File
curl --remote-name http:// satellite.example.com /pulp/content/ My_Organization_Label /Library/custom/ My_Product_Label / My_Repository_Label / My_File
satellite-maintain service stop
satellite-maintain packages install nfs-utils
mkdir /mnt/temp mount -o rw nfs.example.com:/Satellite/pulp /mnt/temp
cp -r /var/lib/pulp/* /mnt/temp/.
umount /mnt/temp
rm -rf /var/lib/pulp/*
nfs.example.com:/Satellite/pulp /var/lib/pulp nfs rw,hard,intr,context="system_u:object_r:pulpcore_var_lib_t:s0"
mount -a
df Filesystem 1K-blocks Used Available Use% Mounted on nfs.example.com:/Satellite/pulp 309506048 58632800 235128224 20% /var/lib/pulp
ls /var/lib/pulp
satellite-maintain service start