A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 4646
Function: _optimize_regexp_list_tokens_to_string

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /srv/http/cxcore/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /srv/http/cxcore/stikked/htdocs/application/libraries/Process.php
Line: 45
Function: parse_code

File: /srv/http/cxcore/stikked/htdocs/application/models/Pastes.php
Line: 517
Function: syntax

File: /srv/http/cxcore/stikked/htdocs/application/controllers/Main.php
Line: 693
Function: getPaste

File: /srv/http/cxcore/stikked/htdocs/index.php
Line: 315
Function: require_once

Keepalived Ansible Deploy - CorePaste
From Corrupt Dormouse, 6 Months ago, written in Diff-output.
This paste will buy the farm in 1 Second.
Embed
  1. [tony@MacBook-Air ~/Projects/git/kodenet/ansible/deploy_keepalived]
  2. $ ansible-playbook -i inventory/kode.inv main.yml --check --diff
  3.  
  4. PLAY [Deploy Keepalived HTTP on Master] ********************************************************************************************************************
  5.  
  6. TASK [Gathering Facts] *************************************************************************************************************************************
  7. ok: [venus]
  8.  
  9. TASK [master : Load master vars] ***************************************************************************************************************************
  10. ok: [venus]
  11.  
  12. TASK [master : Perform pacman sync] ************************************************************************************************************************
  13. changed: [venus]
  14.  
  15. TASK [master : Install Keepalived] *************************************************************************************************************************
  16. ok: [venus]
  17.  
  18. TASK [master : Configure Keepalived on MASTER] *************************************************************************************************************
  19. --- before: /etc/keepalived/keepalived.conf
  20. +++ after: /var/folders/sc/s3bb_4yj0tg6x4m5twn57xdc0000gn/T/tmppmzkj9/keepalived.conf.j2
  21. @@ -1,8 +1,8 @@
  22. -! Configuration File for keepalived
  23. +! Configuration File for keepalived master
  24.  
  25.  global_defs {
  26.     notification_email {
  27. -     alerts@kode.email
  28. +      alerts@kode.email
  29.     }
  30.     notification_email_from alerts@kode.email
  31.     smtp_server localhost
  32. @@ -16,19 +16,19 @@
  33.  
  34.  vrrp_instance VI_1 {
  35.      state MASTER   # Server A is master
  36. -    interface eth0  # VRRP is running on eth0 interface
  37. +    interface eth0  # VRRP is running on eth0
  38.      virtual_router_id 151
  39.      priority 101
  40.      advert_int 1
  41.  
  42. -    unicast_src_ip 192.168.xxx.xxx # Server venus IP
  43. +    unicast_src_ip 192.168.xxx.xxx # master IP
  44.      unicast_peer {
  45. -        192.168.xxx.xxx  # Server io IP
  46. +        192.168.xxx.xxx   # slave IP
  47.      }
  48.  
  49.      authentication {
  50.          auth_type PASS
  51. -        auth_pass sup3rs3kr1t
  52. +        auth_pass s3rkit
  53.      }
  54.  
  55.      track_script {
  56. @@ -36,7 +36,7 @@
  57.      }
  58.  
  59.      virtual_ipaddress {
  60. -           173.xxx.xxx.xxx/24
  61. +        173.xxx.xxx.xxx/24
  62.      }
  63.      notify_master "/bin/echo 'now master' > /tmp/keepalived.state"
  64.      notify_backup "/bin/echo 'now backup' > /tmp/keepalived.state"
  65.  
  66. changed: [venus]
  67.  
  68. PLAY [Deploy Keepalived HTTP on Slave] *********************************************************************************************************************
  69.  
  70. TASK [Gathering Facts] *************************************************************************************************************************************
  71. ok: [io]
  72.  
  73. TASK [slave : Load slave vars] *****************************************************************************************************************************
  74. ok: [io]
  75.  
  76. TASK [slave : Perform pacman sync] *************************************************************************************************************************
  77. changed: [io]
  78.  
  79. TASK [slave : Install Keepalived] **************************************************************************************************************************
  80. ok: [io]
  81.  
  82. TASK [slave : Configure Keepalived on SLAVE] ***************************************************************************************************************
  83. --- before: /etc/keepalived/keepalived.conf
  84. +++ after: /var/folders/sc/s3bb_4yj0tg6x4m5twn57xdc0000gn/T/tmpswt8Md/keepalived.conf.j2
  85. @@ -1,8 +1,8 @@
  86. -! Configuration File for keepalived
  87. +! Configuration File for keepalived master
  88.  
  89.  global_defs {
  90.     notification_email {
  91. -     alerts@domain.email
  92. +      alerts@domain.email
  93.     }
  94.     notification_email_from alerts@kode.email
  95.     smtp_server localhost
  96. @@ -16,19 +16,19 @@
  97.  
  98.  vrrp_instance VI_1 {
  99.      state BACKUP   # Server B is backup
  100. -    interface eth0  # VRRP is running on eth0 interface
  101. +    interface eth0  # VRRP is running on eth0
  102.      virtual_router_id 151
  103.      priority 100
  104.      advert_int 1
  105.  
  106. -    unicast_src_ip 192.168.xxx.xxx # Server io IP
  107. +    unicast_src_ip 192.168.xxx.xxx # slave IP
  108.      unicast_peer {
  109. -        192.168.xxx.xxx                # Server venus IP
  110. +        192.168.xxx.xxx   # master IP
  111.      }
  112.  
  113.      authentication {
  114.          auth_type PASS
  115. -        auth_pass sup3rs3kr1t
  116. +        auth_pass s3rkit
  117.      }
  118.  
  119.      track_script {
  120. @@ -36,7 +36,7 @@
  121.      }
  122.  
  123.      virtual_ipaddress {
  124. -      173.xxx.xxx.xxx/24
  125. +        173.xxx.xxx.xxx/24
  126.      }
  127.      notify_master "/bin/echo 'now master' > /tmp/keepalived.state"
  128.      notify_backup "/bin/echo 'now backup' > /tmp/keepalived.state"
  129.  
  130. changed: [io]
  131.  
  132. PLAY RECAP *************************************************************************************************************************************************
  133. io                             : ok=5    changed=2    unreachable=0    failed=0
  134. venus                      : ok=5    changed=2    unreachable=0    failed=0