Skip to content
Snippets Groups Projects
Unverified Commit c9514dd1 authored by chodorenko's avatar chodorenko Committed by GitHub
Browse files

Fix Centos 7 template symbol "" + Add Global Vlan Support and Hostname (#308)


* Add files via upload

* Add files via upload

* Add files via upload

* Revert "Add files via upload"

This reverts commit 631fd0a9afa1b1be89a951214e3367f19ec09ed1.

* Revert "Add files via upload"

This reverts commit 3e0090262ed46d2fe9301e538d5c6b32e4fed052.

* Revert "Add files via upload"

This reverts commit 785a34d189ad8d0526d06ff547dea2fa5b708409.

* Vlan to global Config if defined
Redefine hostname in manifest

* Syntax Fix

Co-authored-by: default avatarMichail.Chodorenko via puppet-sandbox <michail.chodorenko@hoster.by>
parent a7bb0cbc
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,8 @@ class network (
$hiera_merge = false,
$vlan = undef,
) inherits ::network::params {
# Hiera import
......
......@@ -10,4 +10,8 @@ NOZEROCONF="<%= @nozeroconf %>"
NETWORKING_IPV6="<%= @ipv6enable %>"
IPV6INIT="<%= @ipv6enable %>"
<% end -%>
HOSTNAME="<%= @manage_hostname.split('.').first %>"
<% if @hostname -%>HOSTNAME="<%= @hostname %>"
<%- else %>HOSTNAME="<%= @manage_hostname.split('.').first %>"
<% end -%>
<% if @vlan -%>VLAN="<%= @vlan %>"
<% end -%>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment