Skip to content

Commit

Permalink
Merge pull request #6 from jordiprats/master
Browse files Browse the repository at this point in the history
lint
  • Loading branch information
jordiprats authored Jan 24, 2018
2 parents 9319acf + 9312347 commit 0fa680d
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 45 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ controller-v4.0.6.1.sh
junit
log
spec/fixtures/
Gemfile.lock
/.yardwarns
/.yardoc
/doc
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@ script:
bundler_args: --without system_tests
matrix:
include:
- rvm: default
env: LINT=puppetcode
dist: trusty
bundler_args:
script: bundle exec rake lint
- rvm: default
env: LINT=metadata
dist: trusty
bundler_args:
script: bundle exec rake metadata_lint
- rvm: default
env: JOB=validate
dist: trusty
bundler_args:
script: bundle exec rake validate
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# CHANGELOG

46 changes: 6 additions & 40 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,49 +1,15 @@
# == Class: nscd
#
# Full description of class nscd here.
#
# === Parameters
#
# Document parameters here.
#
# [*sample_parameter*]
# Explanation of what this parameter affects and what it defaults to.
# e.g. "Specify one or more upstream ntp servers as an array."
#
# === Variables
#
# Here you should define a list of variables that this module would require.
#
# [*sample_variable*]
# Explanation of how this variable affects the funtion of this class and if
# it has a default. e.g. "The parameter enc_ntp_servers must be set by the
# External Node Classifier as a comma separated list of hostnames." (Note,
# global variables should be avoided in favor of class parameters as
# of Puppet 2.6.)
#
# === Examples
#
# class { 'nscd':
# servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
# }
#
# === Authors
#
# Author Name <[email protected]>
#
# === Copyright
#
# Copyright 2015 Your name here, unless otherwise noted.
#
class nscd($ensure='running', $enable=true) inherits nscd::params {
class nscd(
$ensure='running',
$enable=true
) inherits nscd::params {

package { 'nscd':
ensure => 'installed',
}

service { 'nscd':
ensure => $ensure,
enable => $enable,
ensure => $ensure,
enable => $enable,
require => Package['nscd'],
}

Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/^7.*$/:
{
}
default: { fail("Unsupported RHEL/CentOS version!") }
default: { fail('Unsupported RHEL/CentOS version!') }
}
}
default : { fail('Unsupported OS!') }
Expand Down
30 changes: 26 additions & 4 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,38 @@
"author": "eyp",
"summary": "nscd deamon",
"license": "Apache-2.0",
"source": "",
"project_page": null,
"issues_url": null,
"source": "https://github.com/NTTCom-MS/eyp-nscd",
"project_page": "https://github.com/NTTCom-MS/eyp-nscd",
"issues_url": "https://github.com/NTTCom-MS/eyp-nscd/issues",
"dependencies": [
{"name":"puppetlabs/stdlib","version_requirement":">= 1.0.0"}
{"name":"puppetlabs/stdlib","version_requirement":">= 1.0.0 < 9.9.9"}
],
"operatingsystem_support": [
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [ "7" ]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [ "7" ]
},
{
"operatingsystem": "Scientific",
"operatingsystemrelease": [ "7" ]
},
{
"operatingsystem": "OEL",
"operatingsystemrelease": [ "7" ]
},
{
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [ "7" ]
}
],
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 3.8.0"
}
]
}

0 comments on commit 0fa680d

Please sign in to comment.