-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy config files for FAM to server #14866
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
FAM: | ||
SERVER: | ||
# Parameter for all tests | ||
foreman_username: admin | ||
foreman_password: "changeme" | ||
foreman_server_url: "https://foreman.example.com" | ||
foreman_validate_certs: false | ||
|
||
foreman_proxy: "foreman.example.com" | ||
|
||
# Parameter for snapshot test | ||
snapshot_host_name: "test_host" | ||
|
||
# Parameter for job invocation test | ||
foreman_host: "foreman.example.com" | ||
|
||
# Parameter for subscription_manifest test | ||
subscription_manifest_path: "data/manifest_foreman-ansible-modules.zip" | ||
|
||
# Parameter for redhat_manifest test | ||
manifest_name: "katello.example.com" | ||
rhsm_username: "john-smith" | ||
rhsm_password: "changeme" | ||
rhsm_pool_id: 8a85f99a7db4827d017dc512fcad00b0 | ||
rhsm_validate_certs: false | ||
|
||
# Parameter for scc_product test | ||
scc_account_name_for_scc_product: testaccount | ||
scc_account_login_for_scc_product: testuser | ||
scc_account_password_for_scc_product: testpass | ||
|
||
# Parameter for external_usergroup testing | ||
auth_source_ldap_host: ldap.example.com | ||
auth_source_ldap_account: ansible | ||
auth_source_ldap_account_password: pass | ||
auth_source_ldap_base_dn: dc=example,dc=com | ||
auth_source_ldap_attr_login: uid | ||
auth_source_ldap_groups_base: cn=groups,cn=accounts,dc=example,dc=com | ||
external_usergroup_name: "admins" | ||
|
||
COMPUTE_PROFILE: | ||
libvirt: | ||
compute_resource: | ||
name: libvirt-cr01 | ||
organizations: | ||
- Test Organization | ||
locations: | ||
- Test Location | ||
params: | ||
url: qemu+ssh://libvirtuser@localhost/system | ||
compute_profile: | ||
name: app-small | ||
attrs: | ||
cpus: 1 | ||
memory: 2147483648 | ||
nics_attributes: | ||
0: | ||
type: bridge | ||
bridge: "" | ||
model: virtio | ||
volumes_attributes: | ||
0: | ||
pool_name: default | ||
capacity: 10G | ||
allocation: 0G | ||
format_type: raw | ||
ovirt: | ||
compute_resource: | ||
name: ovirt-cr01 | ||
organizations: | ||
- Test Organization | ||
locations: | ||
- Test Location | ||
params: | ||
url: "https://ovirt.example.com/ovirt-engine/api" | ||
user: compute-user@internal | ||
password: ovirtcompute123 | ||
use_v4: true | ||
datacenter: c1479626-99a2-44eb-8401-14b5630f417f | ||
ovirt_quota: 502a76bb-a3fe-42f1-aed6-2a7c892a6786 | ||
compute_profile: | ||
name: app-small | ||
attrs: | ||
cluster: Devel-Infra | ||
cores: 2 | ||
sockets: 1 | ||
memory: 1073741824 | ||
ha: 0 | ||
interfaces_attributes: | ||
0: | ||
name: "" | ||
network: ovirtmgmt | ||
interface: virtio | ||
volumes_attributes: | ||
0: | ||
size_gb: '16' | ||
storage_domain: 'Local-IBM' | ||
preallocate: '1' | ||
wipe_after_delete: '0' | ||
interface: 'virtio_scsi' | ||
bootable: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is going on here? how is this different from the
utils.manifest
case?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I honestly don't know how the path is being passed for the case where the local path contains
utils.manifest
. For my instance, I can at least say you aren't actually passing a path but rather a string. Whereas the manifest case does some sort ofread()
function. Maybe @JacobCallahan or @synkd could give us some insight here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The path is being passed by the
upload_manifest
helper [1], specifically in cases where we're uploading a manifest via CLI, rather than importing directly via API. In those cases, we need to pass the path of the manifest file toput
it onto the Satellite before being imported with hammer. The third bullet point in this comment [2] describes these scenarios.I think that, in cases where Manifester times out and we fail over to cloned manifests, the contents of the cloned manifest object need to be written to a file before transferring that file to the Satellite, whereas with Manifester, the file would already be present on the local file system. The check for
utils.manifest
is a way of distinguishing between Manifester and cloned manifests.I hope this provides some measure of clarity. It is admittedly rather confusing.
[1]
robottelo/robottelo/host_helpers/satellite_mixins.py
Line 137 in bba4931
[2] #12605 (comment)