Defined Type: ipa::hostdelete

Defined in:
manifests/hostdelete.pp

Overview

Parameters:

  • host (Any) (defaults to: $name)


1
2
3
4
5
6
7
8
9
10
# File 'manifests/hostdelete.pp', line 1

define ipa::hostdelete (
  $host = $name
) {

  exec { "hostdelete-${host}":
    command     => "/sbin/runuser -l admin -c \'/usr/bin/ipa host-del ${host}\'",
    refreshonly => true,
    onlyif      => "/sbin/runuser -l admin -c \'/usr/bin/ipa host-show ${host} >/dev/null 2>&1\'"
  }
}