Module undine_git
In: /vagrant/modules/undine_git/manifests/identity.pp
/vagrant/modules/undine_git/manifests/init.pp
/vagrant/modules/undine_git/manifests/remote.pp
/vagrant/modules/undine_git/manifests/repository.pp
/vagrant/modules/undine_git/manifests/identity.pp
/vagrant/modules/undine_git/manifests/init.pp
/vagrant/modules/undine_git/manifests/remote.pp
/vagrant/modules/undine_git/manifests/repository.pp

Defines

Classes and Modules

Class undine_git::undine_git

Defines

identity( $git_name => 'title', $email )

Define: identity

The identity defined type is responsible for the management of the primary Git identity in Undine. Specifically, it manages the Git globals user.name and user.email as through using the git config command.

Parameters

git_name
The name to use to identify yourself to git. Defaults to the resouce title.
email
The email address to use to identify yourself to git.

Examples

  undine_git::identity { "Jane Smith":
    email => 'jsmith@example.com',
  }
identity( $git_name => 'title', $email )

Define: identity

The identity defined type is responsible for the management of the primary Git identity in Undine. Specifically, it manages the Git globals user.name and user.email as through using the git config command.

Parameters

git_name
The name to use to identify yourself to git. Defaults to the resouce title.
email
The email address to use to identify yourself to git.

Examples

  undine_git::identity { "Jane Smith":
    email => 'jsmith@example.com',
  }
remote( $remote_name => 'title', $remote_uri, $known_host_key => 'undef', $repo_path, $hostname => 'undef' )

Define: remote

The remote defined type is responsible for the management of multiple remotes for Git repositories managed by in Undine.

The remote defined type also provides a means of authenticating via SSH using a combination of agent forwarding to use your host environment‘s SSH keys (enabled in Undine by default) and manipulating the known_hosts file on the guest VM. To find a known_hosts entry on your host system, simply use `ssh-keygen -H -F git.example.com` to display the correct key to provide.

Parameters

remote_name
The local name of the remote. Defaults to the resource title.
remote_uri
The URI of the remote.
repo_path
The destination path of the repository to add the remote to. This repository must already exist in the filesystem.
hostname
Optional. The hostname of the remote to whitelist when using SSH. Must be defined along with known_host_key.
known_host_key
Optional. The key of the remote to add to known_hosts for use with SSH. Must be defined along with hostname.

Examples

Usage via SSH with an associated known_host entry.

  undine_git::remote { "example_remote":
    remote_uri => 'user@git.example.com:example.git',
    repo_path => '/var/www/example',
    hostname => 'git.example.com',
    known_host_key => '|1|nddsvUkIUHNdM31TTSc+sPT57yg=|nQqEyJJthk/DTVaRmJW ...',
  }
remote( $remote_name => 'title', $remote_uri, $known_host_key => 'undef', $repo_path, $hostname => 'undef' )

Define: remote

The remote defined type is responsible for the management of multiple remotes for Git repositories managed by in Undine.

The remote defined type also provides a means of authenticating via SSH using a combination of agent forwarding to use your host environment‘s SSH keys (enabled in Undine by default) and manipulating the known_hosts file on the guest VM. To find a known_hosts entry on your host system, simply use `ssh-keygen -H -F git.example.com` to display the correct key to provide.

Parameters

remote_name
The local name of the remote. Defaults to the resource title.
remote_uri
The URI of the remote.
repo_path
The destination path of the repository to add the remote to. This repository must already exist in the filesystem.
hostname
Optional. The hostname of the remote to whitelist when using SSH. Must be defined along with known_host_key.
known_host_key
Optional. The key of the remote to add to known_hosts for use with SSH. Must be defined along with hostname.

Examples

Usage via SSH with an associated known_host entry.

  undine_git::remote { "example_remote":
    remote_uri => 'user@git.example.com:example.git',
    repo_path => '/var/www/example',
    hostname => 'git.example.com',
    known_host_key => '|1|nddsvUkIUHNdM31TTSc+sPT57yg=|nQqEyJJthk/DTVaRmJW ...',
  }
repository( $known_host_key => 'undef', $path, $remotes => 'undef', $hostname => 'undef', $branch => 'undef', $repo_uri => 'title' )

Set default path and dependency information for remotes.

repository( $known_host_key => 'undef', $path, $remotes => 'undef', $hostname => 'undef', $branch => 'undef', $repo_uri => 'title' )

Set default path and dependency information for remotes.

[Validate]