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

Update based on voxpupuli/modulesync 0.16.3 #1

Merged
merged 10 commits into from
Dec 7, 2016
9 changes: 3 additions & 6 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,9 @@
fail('cfg parameter must be a hash')
}

anchor { 'grafana::begin': } ->
Copy link
Member

Choose a reason for hiding this comment

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

@dhoppe Great work on the modulesync PR. All looks good. This did stand out a bit though.

I thought perhaps we preferred contain over anchor?

ie like this

contain '::grafana::install'
contain '::grafana::config'
contain '::grafana::service'

Class['::grafana::install'] ->
Class['::grafana::config'] ~>
Class['::grafana::service']

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but there is an issue regarding broken dependencies. According to metadata.json Puppet >= 3.2 is supported, but contains was added at Puppet 3.4. The issuer could not use this module anymore, because he still uses Puppet 3.2.

I think this will be fixed with a lot of other stuff during the migration to Puppet 4.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, ok, if you're doing a reporter of a bug a favour, then I don't have any big problem with it.

class { '::grafana::install': } ->
class { '::grafana::config': } ~>
class { '::grafana::service': }

contain '::grafana::install'
contain '::grafana::service'

#Class['grafana']
class { '::grafana::service': } ->
anchor { 'grafana::end': }
}