Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F24678378
D3986.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D3986.diff
View Options
diff --git a/pillar/credentials/vault.sls b/pillar/credentials/vault.sls
--- a/pillar/credentials/vault.sls
+++ b/pillar/credentials/vault.sls
@@ -250,6 +250,10 @@
reports:
- ops/secrets/nasqueron/rhyne-wyse/vault
+ router:
+ - ops/secrets/network/carp/1
+ - ops/secrets/network/carp/2
+
saas-mediawiki:
- ops/secrets/dbserver/cluster-B/users/saas-mediawiki
- ops/secrets/dbserver/cluster-B/users/saas-mw-deploy
diff --git a/roles/router/carp/carp.sls b/roles/router/carp/carp.sls
new file mode 100644
--- /dev/null
+++ b/roles/router/carp/carp.sls
@@ -0,0 +1,12 @@
+# -------------------------------------------------------------
+# Salt — Router — CARP
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+/etc/rc.conf.d/netif/carp:
+ file.managed:
+ - source: salt://roles/router/carp/files/carp.rc
+ - template: jinja
+ - mode: '0644'
diff --git a/roles/router/carp/files/carp.rc b/roles/router/carp/files/carp.rc
new file mode 100644
--- /dev/null
+++ b/roles/router/carp/files/carp.rc
@@ -0,0 +1,25 @@
+# -------------------------------------------------------------
+# Network — rc configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/router/carp/files/carp.rc
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+{% set carp_entries = salt['node.get_carp_entries']() %}
+
+{% for entry in carp_entries %}
+
+{% set carp_pass = salt['credentials.get_password']('network/carp/' ~ entry.vhid) %}
+{% set prefix = 27 if entry.device == 'vmx0' else 32 %}
+
+ifconfig_{{ entry.device }}_alias0="inet vhid {{ entry.vhid }} advskew {{ entry.advskew }} pass {{ carp_pass }} alias {{ entry.vip }}/{{ prefix }}"
+
+{% endfor %}
diff --git a/roles/router/init.sls b/roles/router/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/router/init.sls
@@ -0,0 +1,9 @@
+# -------------------------------------------------------------
+# Salt — Router
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .carp
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 5, 18:52 (19 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3499471
Default Alt Text
D3986.diff (2 KB)
Attached To
Mode
D3986: Configure CARP on routers
Attached
Detach File
Event Timeline
Log In to Comment