Syntax error at '::nfs::server::export' in puppet -
i getting following syntax error:
but don't find error in code. can explain cause , me fix ?
error: not retrieve catalog remote server: error 400 on server: syntax error @ '::nfs::server::export' @ /etc/puppetlabs/code/environments/production/modules/profiles/manifests/nfsserver.pp:18:21 on node puppetmaster.solartis.net warning: not using cache on failed catalog error: not retrieve catalog; skipping run
following puppet code have tried do. please go through following.
class profiles::nfsserver($nfs_exports_global=hiera_hash('nfs::nfs_exports_global', false)) inherits nfs { class { '::nfs': server_enabled=> true, client_enabled=> false, nfs_v4=> true, nfs_v4_idmap_domain=> $: : domain, nfs_v4_export_root=>'/opt/jbossrepo', nfs_v4_export_root_clients=>'192.168.5.0/24(rw,fsid=root,insecure,no_subtree_check,async,no_root_squash)', } $defaults_nfs_exports= { ensure=>'mounted', clients=>'192.168.5.0/24(rw,insecure,no_subtree_check,async,no_root_squash) } if $nfs_exports_global { create_resources('::nfs::server::export', $nfs_exports_global, $defaults_nfs_exports) } }
i found missing single ' ( diff -bw see is) used puppet parser validate
feed back
class profiles::nfsserver($nfs_exports_global=hiera_hash('nfs::nfs_exports_global', false)) inherits nfs { class { '::nfs': server_enabled=> true, client_enabled=> false, nfs_v4=> true, nfs_v4_idmap_domain=> $::domain, nfs_v4_export_root=>'/opt/jbossrepo', nfs_v4_export_root_clients=>'192.168.5.0/24(rw,fsid=root,insecure,no_subtree_check,async,no_root_squash)', } $defaults_nfs_exports= { ensure=>'mounted', clients=>'192.168.5.0/24(rw,insecure,no_subtree_check,async,no_root_squash)' } if $nfs_exports_global { create_resources('::nfs::server::export', $nfs_exports_global, $defaults_nfs_exports) } }
Comments
Post a Comment