Skip to content

Add missing param declarations (Ubuntu, Windows)#16

Merged
edestecd merged 4 commits intoedestecd:masterfrom
comsolit:fix/add-missing-undefs
Dec 12, 2017
Merged

Add missing param declarations (Ubuntu, Windows)#16
edestecd merged 4 commits intoedestecd:masterfrom
comsolit:fix/add-missing-undefs

Conversation

@bittner
Copy link
Copy Markdown
Contributor

@bittner bittner commented Oct 26, 2017

Tests on the roles of our control repo discovered that some param values are not set for Ubuntu and Windows. This PR adds them.

@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Oct 27, 2017

Note that this issue is related to STRICT_VARIABLES in the spec helper, which could be turned on as an alternative. A very similar scenario is discussed in joshuabaird/puppet-ipaclient#63 (custom facts).

@bittner bittner force-pushed the fix/add-missing-undefs branch 13 times, most recently from 1229509 to e7dfc4c Compare November 2, 2017 13:22
@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Nov 2, 2017

Puppet Lab's PDK has changed opinion about supported OSes and makes test runs fail with the latest version. The second commit addresses this issue and makes Debian a supported option in general.

See also: puppetlabs/pdk#338

@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Nov 2, 2017

@edestecd This PR is ready for merging. Thank you!

@bittner bittner force-pushed the fix/add-missing-undefs branch from e7dfc4c to 24574e9 Compare November 2, 2017 13:52
@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Nov 9, 2017

Anything I still need to do to make you merge this PR?

Comment thread .fixtures.yml
repositories:
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
apt: "https://github.com/puppetlabs/puppetlabs-apt.git"
vcsrepo: "https://github.com/puppetlabs/puppetlabs-vcsrepo.git"
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.

hmm why are we switching these? It seems like puppetlabs modules still use the repos.
https://github.com/puppetlabs/puppetlabs-apache/blob/master/.fixtures.yml

I also like testing against newer code, so we can be aware sooner of upcoming changes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, that's true! It's for testing, then it makes sense. (I thought I would do you a favor, sorry!) 😳

Comment thread manifests/editors/atom.pp Outdated
source => 'https://atom.io/download/deb',
path => '/tmp/atom-amd64.deb',
extract => false,
cleanup => false,
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.

Hmm I need to investigate this more. I have seen examples of downloading debs before...
Not so sure we need to keep downloading it to /tmp once it is installed. I think some other solutions I have seen solve that somehow. I need to go digging

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.

Also in puppet 4 the file type can take http urls as source now. If there is no extraction, we may want to use that to reduce dependencies

@edestecd
Copy link
Copy Markdown
Owner

edestecd commented Nov 9, 2017

@bittner sorry for the delay. I have a few comments.

@bittner bittner force-pushed the fix/add-missing-undefs branch 2 times, most recently from 5d5438d to 9c27a5e Compare November 9, 2017 16:41
@bittner bittner force-pushed the fix/add-missing-undefs branch from 9c27a5e to c1fc4be Compare November 9, 2017 16:50
@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Nov 9, 2017

I hope the changes now do what they should. Thanks for your input!

Comment thread manifests/editors/atom.pp
}

file { '/tmp/atom-amd64.deb':
source => 'https://atom.io/download/deb',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

On Puppet 4.8 this doesn't work for some reason. Despite the Puppet documentation saying it should work. I had to fall back to using archive for downloading the .deb file. Not sure why. I remember trying hard before giving up.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But then again: We're using this module, this branch in production. And it works. 😏 😲

I think the world is just flat, really.

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.

lol, it works for us in our environment.

@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Dec 5, 2017

Do you have any more comments before you can merge this PR?

@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Dec 7, 2017

@edestecd We want to open more PRs, and the changes in this PR would be needed to continue without fuss. Would you mind to merge it?

@bittner bittner force-pushed the fix/add-missing-undefs branch 2 times, most recently from 9f098fc to cb38ce3 Compare December 11, 2017 11:15
@bittner bittner force-pushed the fix/add-missing-undefs branch 3 times, most recently from 4c99ba7 to 6b53b65 Compare December 11, 2017 11:28
@bittner bittner force-pushed the fix/add-missing-undefs branch from 6b53b65 to bd78f5e Compare December 11, 2017 11:30
@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Dec 11, 2017

This PR now also updates the Skype installation. Now the skypeforlinux package is installed from official Microsoft repositories for both vanilla Debian and Ubuntu.

Comment thread metadata.json Outdated
"dependencies": [
{"name": "puppetlabs/stdlib", "version_requirement": ">= 4.2.0 < 5.0.0"},
{"name": "puppetlabs/apt", "version_requirement": ">= 2.1.1 < 3.0.0"},
{"name": "puppet/archive", "version_requirement": ">= 1.1.2 < 3.0.0"},
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.

Are we using archive?

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 can merge if you remove this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Now we have a few new errors from existing code. This would go away anyway if you merge #15, I would guess.

@edestecd
Copy link
Copy Markdown
Owner

The new errors are from a new rubocop check that was added today.
We hit it in our puppet control repo today as well.

@edestecd edestecd merged commit fe8beb8 into edestecd:master Dec 12, 2017
@bittner bittner mentioned this pull request Dec 12, 2017
@bittner bittner deleted the fix/add-missing-undefs branch December 12, 2017 20:20
@bittner
Copy link
Copy Markdown
Contributor Author

bittner commented Dec 12, 2017

Thanks!

I'm now rebasing PR #15. Can you take a look at that later, too?

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