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

ENH: Add install_from_ppa pillar setting and PPA pkgrepo #42

Merged
merged 1 commit into from
Aug 10, 2014

Conversation

westurner
Copy link
Contributor

No description provided.

@westurner
Copy link
Contributor Author

While nginx. classic does not seem to be working completely correctly (w/ Ubuntu 12.04), I did add the PPA to both:

  • nginx.package
  • nginx.ng.install

nmadhok added a commit that referenced this pull request Aug 10, 2014
ENH: Add install_from_ppa pillar setting and PPA pkgrepo
@nmadhok nmadhok merged commit c449e5f into saltstack-formulas:master Aug 10, 2014
@westurner
Copy link
Contributor Author

Thanks!
On Aug 9, 2014 7:55 PM, "Nitin Madhok" notifications@github.com wrote:

Merged #42 #42.


Reply to this email directly or view it on GitHub
#42 (comment)
.

@nmadhok
Copy link
Member

nmadhok commented Aug 10, 2014

@westurner You're welcome. Thanks for the good work!

@westurner
Copy link
Contributor Author

👍

@westurner westurner deleted the add_install_from_ppa branch August 10, 2014 06:53
@@ -35,9 +36,23 @@ nginx-old-init-disable:
- file: nginx-old-init
{% endif %}

{% if salt['grains.get']('os_family') == 'Debian' %}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this always add the PPA even if install_from_ppa is False? Is that desirable? It probably doesn't hurt anything, but would it be better to only add the PPA if planning to install from it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@westurner Can you create a pull request with a check that @gtback suggests? I saw you did a check in nginx/ng/install.sls but probably forgot to do it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without enabled = False, the pkgrepo would remain enabled in the event that the boolean changes from True to False.

Should I add the 'enabled' attr from Line 42 (package) to Line ~20 (ng.install)?:

enabled: {{ salt['pillar.get']('nginx:install_from_ppa', False) }}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On further review, this is more complex to implement than I considered. I apologize.

Does this look correct (nginx.install_from_ppa: True/False)?:

  • False: pkg.install
  • True: pkgrepo.managed, pkg.install
  • False -> True: pkgrepo.managed, pkg.reinstall
  • True -> False: pkgrepo.absent, pkg.reinstall

Is it reasonable to expect an implementer to call pkg.reinstall (install, reinstall=True)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nmadhok
Copy link
Member

nmadhok commented Aug 12, 2014

@westurner I reverted the changes made from this pull request. Figured it's not the correct way to go about it.

@westurner
Copy link
Contributor Author

@nmadhok Thanks. See #44

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

Successfully merging this pull request may close these issues.

3 participants