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

Allow modifying / disabling repos in /etc #105

Closed
igalic opened this issue Nov 16, 2020 · 2 comments
Closed

Allow modifying / disabling repos in /etc #105

igalic opened this issue Nov 16, 2020 · 2 comments

Comments

@igalic
Copy link
Contributor

igalic commented Nov 16, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.19.1
  • Ruby: 2.6
  • Distribution: FreeBSD 12.2-RELEASE
  • Module version: 2.4.0

How to reproduce (e.g Puppet code you use)

according to the README,

Disabling the FreeBSD default repository is done with:

pkgng::repo { 'FreeBSD':
 enabled => false,
}

What are you seeing

This, however, just adds a file in /usr/local/etc/pkg/repos, but that does not seem to actually disable the repo

What behaviour did you expect instead

I would expect to disable the FreeBSD repo, by modifying /etc/pkg/FreeBSD.conf

Any additional information you'd like to impart

I don't know if this is a bug in pkg.

@brooksdavis
Copy link

Is false a synonym for no in libucl? I've noticed that libucl is to accepting of nonsense (e.g. misspelling enabled and enable results is silently doing nothing).

@igalic
Copy link
Contributor Author

igalic commented Nov 16, 2020

debugged this with the help of @RhodiumToad on IRC:

22:09 <RhToad> what does  pkg stats   output?
22:09 <RhToad> specifically for  Number of repositories:
22:10 <RhToad> I just put a copy of that FreeBSD.conf onto one of my VMs and it has correctly disabled access to the freebsd repo

Turns out the number was, indeed 1.
The pkg: leatherman: duplicate dependency listing: curl (among many other packages) were resolved with pkg upgrade -f;

@igalic igalic closed this as completed Nov 16, 2020
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

2 participants