--
You received this message because you are subscribed to the Google Groups "SIMP Q&A Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simp+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simp/79c90b05-ffbe-4f05-8055-3acd3548026e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This is the output from running the command; does this mean there is a potential error with the simp_def.yaml file? Line 24 is the use_fips line, which i have set to false.
./RedHat/6.yaml
./compliance_profiles/disa_stig_el7.yaml
./compliance_profiles/nist_800_53_rev4.yaml
./hostgroups/default.yaml
./hosts/puppet.(domain).yaml
./default.yaml
./simp_classes.yaml
./simp_def.yaml
(./simp_def.yaml): did not find expected key while parsing a block mapping at line 24 column 1
-Brian
This is the output from running the command; does this mean there is a potential error with the simp_def.yaml file? Line 24 is the use_fips line, which i have set to false.
./RedHat/6.yaml./compliance_profiles/disa_stig_el7.yaml./compliance_profiles/nist_800_53_rev4.yaml./hostgroups/default.yaml./hosts/puppet.hq.dragos.services.yaml
./default.yaml./simp_classes.yaml./simp_def.yaml(./simp_def.yaml): did not find expected key while parsing a block mapping at line 24 column 1
-Brian
On Friday, November 25, 2016 at 11:14:35 AM UTC-5, Trevor Vaughan wrote:
Hi Brian,That is almost certainly malformed YAML somewhere in your hiera stack.It may have been broken prior to your snapshot since the Puppet Server won't reload your *new* Hiera YAML files unless it is restarted.Hop into your hieradata directory and try this:for x in `find . -name "*.yaml"`; do echo $x; ruby -r yaml -e "begin; YAML.parse_file('$x'); rescue StandardError => e; puts e.to_s; end"; doneThanks,Trevor
On Fri, Nov 25, 2016 at 10:20 AM, Brian S <brians...@gmail.com> wrote:
Hello-I am getting the following error and I assume it is due to a hiera configuration? I am just now learning hiera, so any help would be appreciated.Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, undefined method `empty?' for nil:NilClass at /etc/puppetlabs/code/environments/production/manifests/site.pp:28:1 on nodeFrom some initial research it looks like it could be either with permissions or with the .yaml files having tabs instead of spaces. The code was working fine a few days ago but now it no longer is. I reverted back to an earlier snapshot on the VM and it still has the error. I know it was working at the time of the snapshot. I have also removed the one custom file i added in the hieradata/hostgroups section and still receive the error. Looking at the file site.pp, line 28 contains "hiera_include('classes')".Where should I be looking to help resolve this error?Thanks-Brian
--
You received this message because you are subscribed to the Google Groups "SIMP Q&A Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simp+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simp/79c90b05-ffbe-4f05-8055-3acd3548026e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Trevor Vaughan
Vice President, Onyx Point, Inc
-- This account not approved for unencrypted proprietary information --
--
You received this message because you are subscribed to the Google Groups "SIMP Q&A Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simp+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simp/d2c54ea7-15b9-4239-8868-0ca3c273d51e%40googlegroups.com.
If I reran simp config would that regenerate this primary file? Or is there another recommended way, besides going through each line manually?
-Brian
--
You received this message because you are subscribed to the Google Groups "SIMP Q&A Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simp+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simp/70518fe6-0560-4df5-8c0e-24a039583dea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Brian,You could rerun 'simp config', but I would just take a look at the file and that line should have something wrong with it.Try opening it in vi and running :set list to see the whitespace characters and or running :retab.If you want to fire it my way, I can take a look real quick as well.Trevor
On Fri, Nov 25, 2016 at 4:50 PM, Brian S <brians...@gmail.com> wrote:
Great, thanks for the confirmation. I assume I accidentally hit a key at some point while I had it open with VI.
If I reran simp config would that regenerate this primary file? Or is there another recommended way, besides going through each line manually?
-Brian
--
You received this message because you are subscribed to the Google Groups "SIMP Q&A Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simp+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simp/70518fe6-0560-4df5-8c0e-24a039583dea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.