Skip to content

Add PDK to idesdk section#18

Closed
bittner wants to merge 2 commits intoedestecd:masterfrom
comsolit:feature/add-pdk-to-idesdk
Closed

Add PDK to idesdk section#18
bittner wants to merge 2 commits intoedestecd:masterfrom
comsolit:feature/add-pdk-to-idesdk

Conversation

@bittner
Copy link
Copy Markdown
Contributor

@bittner bittner commented Dec 12, 2017

These changes add PDK, the Puppet Development Kit, to the idesdk section. This is meant to live in this repo as long as Puppetlab's packages are not yet installable off repository servers (using the Puppet package resource).

Fixes #14.

@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Dec 12, 2017

We have the same two issues that make the build fail as in PR #16. This will go away with merging PR #15, I'm pretty sure.

@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Apr 4, 2018

🔔 ping!

This still seem valid even though Puppet Labs state on the download page that the PDK is "available via native package managers". Seems a bit tricky though picking the right Puppet version for the repository-based installation.

Comment thread manifests/idesdk/pdk.pp
provider => 'dpkg',
}

file { '/tmp/pdk.deb':
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I don't think we need to download the package for linux any longer.
If you are running puppet on a machine there is a good chance you installed it from the official repos, which also have pdk now. I think we can just get away with the package.

Copy link
Copy Markdown
Contributor Author

@bittner bittner May 15, 2018

Choose a reason for hiding this comment

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

Maybe yes. For a pure PDK installation it's still more than just package {'pdk':}, though, unfortunately. That's still my motivation. You can look at my Ansible-driven implementation for comparison. It's 3 steps that you won't recall from the top of your head. They make sense to automate.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can it be optional to download the package? I will use this and I can make the assumption that the puppet repo is setup on my machines. Can you use a param and do either?

@bittner bittner force-pushed the feature/add-pdk-to-idesdk branch from a1f8661 to ff3bd57 Compare May 23, 2018 22:03
@bittner bittner force-pushed the feature/add-pdk-to-idesdk branch from fefb875 to 0332319 Compare May 23, 2018 22:19
Comment thread manifests/idesdk/pdk.pp

class software::idesdk::pdk (
$ensure = $software::params::software_ensure,
$version = $software::params::pdk_version,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Is $version used?

Comment thread manifests/idesdk/pdk.pp
$url = $software::params::pdk_url,
) inherits software::params {

validate_string($ensure)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can we get rid of the legacy validate. I think I have just been removing this one from the other profiles.

@edestecd
Copy link
Copy Markdown
Owner

edestecd commented Sep 12, 2018

resolved by 1edd867

@edestecd edestecd closed this Sep 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants