summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 9af4b97fd0dd62d9b5e83788edba89254d0a33c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class wordpress {
  file { "/usr/local/sbin/wordpress":
    ensure  => present,
    source  => "puppet:///modules/wordpress/wordpress.sh",
    owner   => root,
    group   => root,
    mode    => 755,
  }

  # Composer
  exec { 'getwp':
    command     => '/usr/bin/wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/local/bin/wp-cli',
    user        => 'root',
    cwd         => '/tmp',
    creates     => '/usr/local/bin/wp-cli',
  }

  # TODO: remove in the future
  file { "/usr/local/sbin/wp":
    ensure  => absent,
    owner   => root,
    group   => root,
  }

  # TODO: remove in the future
  vcsrepo { "/usr/local/share/wp-cli":
    ensure   => absent,
    provider => git,
    source   => 'git://github.com/wp-cli/wp-cli.git',
    revision => 'b30a0745ef5ffe1c9f2a4d9a021aef213a78c867',
    owner    => 'root',
    group    => 'root',
  }
}