Defined Type: oxidized::model

Defined in:
manifests/model.pp

Summary

Manage oxidized models

Overview

Parameters:

  • source (String)

    Source of model



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/model.pp', line 8

define oxidized::model (
  String $source,
) {

  include ::oxidized

  $path = "${::oxidized::user_home}/.config/oxidized/model/${name}.rb"

  file { "model-${name}":
    ensure    => 'file',
    path      => $path,
    owner     => $::oxidized::user,
    group     => $::oxidized::user_group,
    mode      => '0644',
    source    => $source,
    show_diff => $::oxidized::show_diff,
  }

}