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 forcing of os/dist for repository install #32

Merged
merged 3 commits into from
Nov 23, 2015

Conversation

afiune
Copy link

@afiune afiune commented Nov 21, 2015

Sometimes it is very useful to be able to force an specific os platform or even the distribution.
This commit enables the end user to be able to force it, here a couple examples:

packagecloud_repo "computology/packagecloud-cookbook-test-public" do
   type "deb"
   force_os "ubuntu"
end

packagecloud_repo "computology/packagecloud-test-packages" do
   type "rpm"
   force_os "rhel"
   force_dist "6.7"
end

Sometimes it is very useful to be able to force an specific os platform.
This commit enables the end user to force, here a couple examples:

```
packagecloud_repo "computology/packagecloud-cookbook-test-public" do
  type "deb"
  force_os "ubuntu"
end

packagecloud_repo "computology/packagecloud-test-packages" do
  type "rpm"
  force_os "rhel"
end
```

Idea from sous-chefs#31
Salim Afiune added 2 commits November 20, 2015 21:59
This commit enables the end user to force the os distribution to
configure.

```
packagecloud_repo 'computology/packagecloud-cookbook-test-public' do
  type 'rpm'
  force_dist '6.5'
end
```

Closes sous-chefs#31
@afiune afiune changed the title Allow forcing of os for repository install Allow forcing of os/dist for repository install Nov 21, 2015
@afiune
Copy link
Author

afiune commented Nov 23, 2015

@capotej Any thoughts on this? 😄

@capotej
Copy link
Contributor

capotej commented Nov 23, 2015

Looks great! Although I think a force_dist would be useful as well...

I'll merge as soon as our test suite finishes running

@afiune
Copy link
Author

afiune commented Nov 23, 2015

@capotej force_dist is there as well 😄 let me know how it goes! Thank you

@capotej
Copy link
Contributor

capotej commented Nov 23, 2015

Oops! Must have missed it :) Merging as soon as tests pass (almost done)

capotej added a commit that referenced this pull request Nov 23, 2015
Allow forcing of os/dist for repository install
@capotej capotej merged commit fe2fbd0 into sous-chefs:master Nov 23, 2015
@capotej
Copy link
Contributor

capotej commented Nov 23, 2015

Thanks @afiune!

@afiune afiune deleted the afiune/force_os branch November 24, 2015 15:14
@afiune afiune restored the afiune/force_os branch November 24, 2015 15:14
@afiune
Copy link
Author

afiune commented Nov 24, 2015

@capotej Thank you for the review/merge. May I ask when the cookbook could be released to supermarket? 😄 I have to make two more changes and I would love to make them today if possible.

Anything I can help with?

@afiune afiune deleted the afiune/force_os branch November 24, 2015 15:54
@capotej
Copy link
Contributor

capotej commented Nov 24, 2015

Just pushed it up 👍

@afiune
Copy link
Author

afiune commented Nov 24, 2015

That is terrific!!! thank you so much. 😄

@capotej
Copy link
Contributor

capotej commented Nov 24, 2015

No problem, thanks for the patch!

afiune pushed a commit to afiune/runit that referenced this pull request Nov 24, 2015
The `imeyer/runit` packagecloud repo does not have the ability to
resolve packages for OEL systems.

By consuming [PR#32](sous-chefs/packagecloud#32) this
commit enables `runit` cookbook to be able to install in OEL
systems by forcing the os platform to be `rhel` since that is the base
and packages should work the same way.

Pointing to packagecloud repo (master) in github since there is where
the new code for forcing exist. (Need to release it to Supermarket)
afiune pushed a commit to afiune/runit that referenced this pull request Nov 24, 2015
The `imeyer/runit` packagecloud repo does not have the ability to
resolve packages for OEL systems.

By consuming [PR#32](sous-chefs/packagecloud#32) this
commit enables `runit` cookbook to be able to install in OEL
systems by forcing the os platform to be `rhel` since that is the base
and packages should work the same way.

Pointing to packagecloud repo (master) in github since there is where
the new code for forcing exist. (Need to release it to Supermarket)
afiune pushed a commit to afiune/runit that referenced this pull request Nov 30, 2015
The `imeyer/runit` packagecloud repo does not have the ability to
resolve packages for OEL systems.

By consuming [PR#32](sous-chefs/packagecloud#32) this
commit enables `runit` cookbook to be able to install in OEL
systems by forcing the os platform to be `rhel` since that is the base
and packages should work the same way.

Pointing to packagecloud repo (master) in github since there is where
the new code for forcing exist. (Need to release it to Supermarket)
afiune pushed a commit to afiune/runit that referenced this pull request Mar 1, 2016
The `imeyer/runit` packagecloud repo does not have the ability to
resolve packages for OEL systems.

By consuming [PR#32](sous-chefs/packagecloud#32) this
commit enables `runit` cookbook to be able to install in OEL
systems by forcing the os platform to be `rhel` since that is the base
and packages should work the same way.

Pointing to packagecloud repo (master) in github since there is where
the new code for forcing exist. (Need to release it to Supermarket)
chef-delivery pushed a commit to chef-boneyard/delivery-cluster that referenced this pull request Mar 3, 2016
There are two PR's that enables Delivery to work with OEL systems,
one of them is against packagecloud cookbook and it has already been
merged.
sous-chefs/packagecloud#32

The other one though is still pending. It is to runit but it is working
fine.
chef-cookbooks/runit#164

Until we get this merged we will point to this repo that has the
improvement.
https://github.com/afiune/runit/tree/afiune/make-it-work-in-oel
afiune pushed a commit to afiune/runit that referenced this pull request Aug 26, 2016
The `imeyer/runit` packagecloud repo does not have the ability to
resolve packages for OEL systems.

By consuming [PR#32](sous-chefs/packagecloud#32) this
commit enables `runit` cookbook to be able to install in OEL
systems by forcing the os platform to be `rhel` since that is the base
and packages should work the same way.

Pointing to packagecloud repo (master) in github since there is where
the new code for forcing exist. (Need to release it to Supermarket)
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.

2 participants