LoginSignup
1
1

More than 5 years have passed since last update.

Puppetのfileでディレクトリを再帰的に作る方法

Posted at

以下、Boxen の個人マニフェストから抜粋。

  package {
    ...()...
    'rbenv-bundler':
      require => File["${homebrew::config::installdir}/var/lib/rbenv/plugins/"]
      ;
    ...()...
  }

  file { [
          "${homebrew::config::installdir}/var/",
          "${homebrew::config::installdir}/var/lib/",
          "${homebrew::config::installdir}/var/lib/rbenv/",
          "${homebrew::config::installdir}/var/lib/rbenv/plugins/",
          ]:
    ensure  => directory,
  }

よく分からないまま、配列指定したら連鎖してくれた。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1