puppet augeas is appying twice everytime

45 views
Skip to first unread message

estev

unread,
Feb 18, 2015, 2:57:05 PM2/18/15
to puppet...@googlegroups.com
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  "build-pipe...@1.4.5"'
 - '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", "build-pipe...@1.4.5"]
: 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", "build-pipe...@1.4.5"]
: 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.
Reply all
Reply to author
Forward
0 new messages