Add customizable forwardfor option
Change-Id: I484abdd19eaa4b4530a9d937b8391713e828af39
diff --git a/tests/pillar/admin.sls b/tests/pillar/admin.sls
index aa2c086..210d3cc 100644
--- a/tests/pillar/admin.sls
+++ b/tests/pillar/admin.sls
@@ -9,4 +9,4 @@
- address: '0.0.0.0'
port: 9600
user: admin
- password: password
\ No newline at end of file
+ password: password
diff --git a/tests/pillar/single.sls b/tests/pillar/single.sls
index 3d1e9e4..0129244 100644
--- a/tests/pillar/single.sls
+++ b/tests/pillar/single.sls
@@ -1,6 +1,8 @@
haproxy:
proxy:
enabled: true
+ forwardfor:
+ enabled: true
mode: tcp
logging: syslog
- max_connections: 1024
\ No newline at end of file
+ max_connections: 1024
diff --git a/tests/pillar/single_forwardfor.sls b/tests/pillar/single_forwardfor.sls
new file mode 100644
index 0000000..2c78c52
--- /dev/null
+++ b/tests/pillar/single_forwardfor.sls
@@ -0,0 +1,11 @@
+haproxy:
+ proxy:
+ enabled: true
+ forwardfor:
+ enabled: true
+ except: 127.0.0.1
+ header: X-Custom-Header
+ if-none: true
+ mode: tcp
+ logging: syslog
+ max_connections: 1024
diff --git a/tests/pillar/stats.sls b/tests/pillar/stats.sls
index e84e01f..35935d4 100644
--- a/tests/pillar/stats.sls
+++ b/tests/pillar/stats.sls
@@ -1,6 +1,8 @@
haproxy:
proxy:
enabled: true
+ forwardfor:
+ enabled: false
listen:
admin_page:
type: stats