Skip to content

Instantly share code, notes, and snippets.

@jprovaznik
Created February 12, 2015 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jprovaznik/f24f64e08ebbf20a4843 to your computer and use it in GitHub Desktop.
Save jprovaznik/f24f64e08ebbf20a4843 to your computer and use it in GitHub Desktop.
yum-update
# for updating all packages (not tested, just an idea, or use some bash script instead of puppet for invoking the command)
+ ControllerUpdateConfig:
+ type: OS::Heat::SoftwareConfig
+ properties:
+ group: puppet
+ options:
+ enable_hiera: True
+ enable_facter: False
+ inputs:
+ outputs:
+ - name: result
+ config: 'exec { "update": command => "yum -y update"}'
+
+ ControllerUpdateDeployment:
+ type: OS::Heat::StructuredDeployment
+ properties:
+ name: puppet_update
+ server: {get_resource: Controller}
+ config: {get_resource: ControllerUpdateConfig}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment