Add derived env vars for target hostname and fqdn.
This commit is contained in:
parent
9ce8f6bbb0
commit
dbcc94ab65
23 changed files with 181 additions and 59 deletions
|
|
@ -38,7 +38,12 @@ class Shell(object):
|
|||
|
||||
self.shell = shell
|
||||
|
||||
self.target_host = "cdist-shell-no-target-host"
|
||||
self.target_host = (
|
||||
"cdist-shell-no-target-host",
|
||||
"cdist-shell-no-target-host",
|
||||
"cdist-shell-no-target-host",
|
||||
)
|
||||
|
||||
self.local = cdist.exec.local.Local(
|
||||
target_host=self.target_host)
|
||||
|
||||
|
|
@ -59,7 +64,9 @@ class Shell(object):
|
|||
'__cdist_type_base_path': self.local.type_path,
|
||||
'__cdist_manifest': "cdist shell",
|
||||
'__global': self.local.base_path,
|
||||
'__target_host': self.target_host,
|
||||
'__target_host': self.target_host[0],
|
||||
'__target_hostname': self.target_host[1],
|
||||
'__target_fqdn': self.target_host[2],
|
||||
'__manifest': self.local.manifest_path,
|
||||
'__explorer': self.local.global_explorer_path,
|
||||
'__files': self.local.files_path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue