Defined Type: ohmyzsh::upgrade

Defined in:
manifests/upgrade.pp

Overview

Class: ohmyzsh::upgrade

This is the ohmyzsh module. It installs oh-my-zsh for a user and changes their shell to zsh. It has been tested under Ubuntu.

This module is called ohmyzsh as Puppet does not support hyphens in module names.

oh-my-zsh is a community-driven framework for managing your zsh configuration.

Parameters

None.

Examples

class { ‘ohmyzsh’: } ohmyzsh::install { ‘acme’: }

Authors

Leon Brocard <acme@astray.com>

Copyright 2013 Leon Brocard



28
29
30
31
32
33
34
35
36
# File 'manifests/upgrade.pp', line 28

define ohmyzsh::upgrade() {
  if $name == 'root' { $home = '/root' } else { $home = "${ohmyzsh::params::home}/${name}" }
  exec { "ohmyzsh::git upgrade ${name}":
    command => '/usr/bin/git pull --rebase --stat origin master',
    cwd     => "${home}/.oh-my-zsh",
    user    => $name,
    require => [Package['git'], Package['zsh']]
  }
}