Hi 

I have a problem , I've tried everything but I can't resolve it yet, every 
time that I run puppet agent it is applying my augeas resources twice

basically I have this array in hiera:

augeas_views:
 - 'defnode user 
hudson/views/au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView[id/#text="VIEWNAMEREPLACE"]
 
""'
 - 'set $user/#attribute/plugin  "[email protected]"'
 - 'set $user/owner/#attribute/class "hudson"'
 - 'set $user/owner/#attribute/reference "../../.."'
 - 'set $user/name/#text  "VIEWNAMEREPLACE"'
 - 'set $user/filterExecutors/#text "false"'
 - 'set $user/filterQueue/#text "false"'
.....

this is my puppet code:

augeas { "Pipeline view for $project":
  lens    => 'Xml.lns',
  incl    => '/home/ubuntu/config.xml',
  changes => $array,
}

and when I run puppet:

: Opening augeas with root /, lens path , flags 64
: Augeas[Pipeline view for testss](provider=augeas): Augeas version 1.1.0 
is installed
: Augeas[Pipeline view for testss](provider=augeas): Will attempt to save 
and only run if files changed
: Augeas[Pipeline view for testss](provider=augeas): sending command 
'defnode' with params ["user", 
"/files/home/ubuntu/config.xml/hudson/views/au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView[id/#text=\"TESTT
 
Pipeline\"]", ""]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/#attribute/plugin", "[email protected]"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/owner/#attribute/class", "hudson"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/owner/#attribute/reference", "../../.."]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/name/#text", "TESTT Pipeline"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/filterExecutors/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/filterQueue/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/gridBuilder/#attribute/class", 
"au.com.centrumsystems.hudson.plugin.buildpipeline.DownstreamProjectGridBuilder"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/gridBuilder/firstJob/#text", "testss-build"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/noOfDisplayedBuilds/#text", "100"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/buildViewTitle/#text", " "]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/consoleOutputLinkStyle/#text", "Lightbox"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/cssUrl/#text", " "]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/triggerOnlyLatestJob/#text", "true"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/alwaysAllowManualTrigger/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/showPipelineParameters/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/showPipelineParametersInHeaders/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/startsWithParameters/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/refreshFrequency/#text", "3"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/showPipelineDefinitionHeader/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): Files changed, should 
execute

..
: Opening augeas with root /, lens path , flags 64
: Augeas[Pipeline view for testss](provider=augeas): Augeas version 1.1.0 
is installed
: Augeas[Pipeline view for testss](provider=augeas): Will attempt to save 
and only run if files changed
: Augeas[Pipeline view for testss](provider=augeas): sending command 
'defnode' with params ["user", 
"/files/home/ubuntu/config.xml/hudson/views/au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView[id/#text=\"TESTT
 
Pipeline\"]", ""]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/#attribute/plugin", "[email protected]"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/owner/#attribute/class", "hudson"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/owner/#attribute/reference", "../../.."]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/name/#text", "TESTT Pipeline"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/filterExecutors/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/filterQueue/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/gridBuilder/#attribute/class", 
"au.com.centrumsystems.hudson.plugin.buildpipeline.DownstreamProjectGridBuilder"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/gridBuilder/firstJob/#text", "testss-build"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/noOfDisplayedBuilds/#text", "100"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/buildViewTitle/#text", " "]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/consoleOutputLinkStyle/#text", "Lightbox"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/cssUrl/#text", " "]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/triggerOnlyLatestJob/#text", "true"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/alwaysAllowManualTrigger/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/showPipelineParameters/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/showPipelineParametersInHeaders/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/startsWithParameters/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/refreshFrequency/#text", "3"]
: Augeas[Pipeline view for testss](provider=augeas): sending command 'set' 
with params ["$user/showPipelineDefinitionHeader/#text", "false"]
: Augeas[Pipeline view for testss](provider=augeas): Files changed, should 
execute

Could someone give me a clue? thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a05a03d3-208f-4474-8b2e-1d6b644e8306%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to