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

Manage iso directory within mrepo::iso (requires puppet/archive, drop puppet/staging) #97

Merged
merged 2 commits into from Oct 24, 2018

Conversation

mrolli
Copy link
Contributor

@mrolli mrolli commented Oct 19, 2018

Pull Request (PR) description

Previsouly the directory, where iso file are downloaded to, was not
managed by the define mrepo::iso though blindly used, which is not expected behaviour. This
change adds a file resource for the download directory.

This Pull Request (PR) fixes the following issues

n/a

Previsouly the directory, where iso file are downloaded to, was not
managed by the define mrepo::iso, which is not expected behaviour. This
change adds a file resource for the download directory.
manifests/iso.pp Outdated
mode => "0644",
}

-> staging::file { $name:
Copy link
Member

Choose a reason for hiding this comment

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

The staging module is deprecated. Could you implement this with https://forge.puppet.com/puppet/archive ?

Copy link
Member

Choose a reason for hiding this comment

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

ah, the diff trolled me, that was already present. You don't need to rework this (unless you want to).

@bastelfreak
Copy link
Member

@mrolli can you take a look at the failing travis jobs and add a unit test for this change?

@mrolli
Copy link
Contributor Author

mrolli commented Oct 23, 2018

Hm, apparently the rubocop ruleset of voxpupuli differs a lot with what Puppetlabs is using in PDK. :-(

Is this:

is_expected.to contain_mrepo__iso('CentOS-7-x86_64-Minimal-1804.iso').
  with('source_url' => 'http://example.com/isos')

really better than this?:

is_expected.to contain_mrepo__iso('CentOS-7-x86_64-Minimal-1804.iso')
  .with('source_url' => 'http://example.com/isos')

Anyway, fixed to fit the voxpupuli standards.

@bastelfreak bastelfreak changed the title Manage iso directory within mrepo::iso Manage iso directory within mrepo::iso (requires puppet/archive, drop puppet/staging) Oct 24, 2018
@bastelfreak
Copy link
Member

Thanks @mrolli !

@bastelfreak bastelfreak merged commit 21cfca4 into voxpupuli:master Oct 24, 2018
@mrolli mrolli deleted the feature/manage-iso-dir branch October 25, 2018 05:16
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.

None yet

2 participants