This write-up will detail the process of creating an organization, product, sync plan and repository on Katello Using foreman hammer-cli. After it that has been setup we will point our server to the new repository. The repository we will sync with is the publicly available RHEL 5 OralceASM repository. Step 1: Create an Organization The…
Create an Organization, Sync Plan, Product and Repository on Katello Using foreman hammer-cli
hammer organization create cheat sheet
This write-up details the process used to create an Organization on Katello the upstream version of Red Hat Satellite Server 6. Help: hammer organization create
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
Usage: hammer organization create [OPTIONS] Options: --compute-resource-ids COMPUTE_RESOURCE_IDS Compute resource IDs Comma separated list of values. --compute-resources COMPUTE_RESOURCE_NAMES Comma separated list of values. --config-template-ids CONFIG_TEMPLATE_IDS Provisioning template IDs Comma separated list of values. --config-templates CONFIG_TEMPLATE_NAMES Comma separated list of values. --description DESCRIPTION description --domain-ids DOMAIN_IDS Domain IDs Comma separated list of values. --domains DOMAIN_NAMES Comma separated list of values. --environment-ids ENVIRONMENT_IDS Environment IDs Comma separated list of values. --environments ENVIRONMENT_NAMES Comma separated list of values. --hostgroup-ids HOSTGROUP_IDS Host group IDs Comma separated list of values. --hostgroups HOSTGROUP_NAMES Comma separated list of values. --label LABEL unique label --media MEDIUM_NAMES Comma separated list of values. --media-ids MEDIA_IDS Media IDs Comma separated list of values. --name NAME name --provisioning-template-ids PROVISIONING_TEMPLATE_IDS Provisioning template IDs Comma separated list of values. --provisioning-templates PROVISIONING_TEMPLATE_NAMES Comma separated list of values. --ptable-ids PTABLE_IDS Partition template IDs Comma separated list of values. --ptables PTABLE_NAMES Comma separated list of values. --realm-ids REALM_IDS Realm IDs Comma separated list of values. --realms REALM_NAMES Comma separated list of values. --smart-proxies SMART_PROXY_NAMES Comma separated list of values. --smart-proxy-ids SMART_PROXY_IDS Smart proxy IDs Comma separated list of values. --subnet-ids SUBNET_IDS Subnet IDs Comma separated list of values. --subnets SUBNET_NAMES Comma separated list of values. --user-ids USER_IDS User IDs Comma separated list of values. --users USER_NAMES Comma separated list of values. -h, --help |
Example: hammer product create
1 2 |
hammer organization create --name "The Test Lab" --description "Test Organization" |
List All Configured Organizations
1 2 |
hammer organization list |
Example Output
1 2 3 4 5 6 7 |
---|---------------|---------------|------------------ ID | NAME | LABEL | DESCRIPTION ---|---------------|---------------|------------------ 4 | The Test Lab | The_Test_Lab | Test Organization 1 | The Wills Lab | The_Wills_Lab | ---|---------------|---------------|------------------ |
hammer sync-plan create Cheat Sheet
This write-up details the process of using the hammer sync-plan create command to create sync plans. Help: hammer sync-plan create
1 2 |
hammer sync-plan create --help |
Example Output
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Usage: hammer sync-plan create [OPTIONS] Options: --description DESCRIPTION sync plan description --enabled ENABLED enables or disables synchronization One of true/false, yes/no, 1/0. --interval INTERVAL how often synchronization should run Possible value(s): 'hourly', 'daily', 'weekly' --name NAME sync plan name --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID organization ID --organization-label ORGANIZATION_LABEL Organization label to search by --sync-date SYNC_DATE start date and time of the synchronization defaults to now Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format -h, --help print help |
Example: hammer sync-plan create In this example I use hammer sync-plan create to create a sync plan called Daily.Sync.Plan that starts on 2016-10-01 and will run daily at 01:00:00. in my…
-
Recent Posts
Categories
- Audit
- Backups
- Clustering
- Development
- FreeBSD
- FreeIPA
- GlusterFS
- Guru Labs
- IPV6
- Katello
- Linux
- Linux
- Linux
- Logical Volume Manager
- mysql
- Networking
- Pacemaker
- Performance Monitoring
- Red Hat Enterprise Linux
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Satellite Server 6
- Red Hat Summit
- Security
- Shell Scripting
- Solaris
- Storage Management
- Training
- Troubleshooting
- Uncategorized
- VAS/QAS Administration
- VERITAS Cluster Server
- VERITAS InfoScale
- VERITAS NetBackup
Tags
agent backup centos 6 cluster clusvcadm cman df fence fencing filesystem find fstype gl236 glusterfs guru labs hammer-cli hardening HP ILO infoscale oracle ownership pacemaker pcp pcs permissions pmcd QAS red hat 6 resource resources rgmanager rhel rhel 6 rhel 7 scripting security ssh storage sync-plan tarsnap training VAS vcs veritas