Skip to content

problem with add or delete a repo #22

@Stanislas93

Description

@Stanislas93

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',
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions