Skip to content
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

problem with add or delete a repo #22

Open
Stanislas93 opened this issue Jan 11, 2018 · 0 comments
Open

problem with add or delete a repo #22

Stanislas93 opened this issue Jan 11, 2018 · 0 comments

Comments

@Stanislas93
Copy link

Hi,

Thanks a lot for your module.

Register clients to Red Hat Subscription management using a username and password is ok but i have a problem when i want to had or delete a repo. It's not ok with this conf

can you have an idea?

Regards

my conf in manifests/config.pp

subscription_manager Configuration

class subscription_manager::config {
file { '/etc/rhsm/rhsm.conf':
ensure => 'file',
content => template('subscription_manager/rhsm.conf.erb'),
owner => 'root',
group => 'root',
mode => '0644',
}

rhsm_register { 'subscription.rhsm.redhat.com':
username => 'rhn-user',
password => 'password',
org => 'xxxxxxxx',
autosubscribe => true,
force => true,
}

rhsm_repo { 'rhel-7-server-optional-rpms':
ensure => 'absent',
}

rhsm_repo { 'rhel-7-server-supplementary-rpms': }

rhsm_repo { 'rhel-sap-for-rhel-7-server-rpms':
ensure => 'absent',
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant