Skip to content

Commit

Permalink
Remove validate command. Not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
MemberIT committed May 19, 2017
1 parent 4dc42d2 commit e864256
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions manifests/fact.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
$facter_data = { "${title}" => $value }

file { "${facterbasepath}/facts.d/${title}.yaml":
ensure => $ensure,
owner => 'root',
group => $::puppet::defaults::puppet_group,
mode => '0640',
validate_cmd => "/usr/bin/env ruby -ryaml -e \"YAML.load_file '%'\"",
content => template('puppet/fact.yaml.erb'),
ensure => $ensure,
owner => 'root',
group => $::puppet::defaults::puppet_group,
mode => '0640',
content => template('puppet/fact.yaml.erb'),
}

}
11 changes: 5 additions & 6 deletions manifests/facts.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
}

file { "${facterbasepath}/facts.d/local.yaml":
ensure => file,
owner => 'root',
group => $::puppet::defaults::puppet_group,
mode => '0640',
validate_cmd => "/usr/bin/env ruby -ryaml -e \"YAML.load_file '%'\"",
content => template('puppet/local_facts.yaml.erb'),
ensure => file,
owner => 'root',
group => $::puppet::defaults::puppet_group,
mode => '0640',
content => template('puppet/local_facts.yaml.erb'),
}

}

0 comments on commit e864256

Please sign in to comment.