4 Commits

Author SHA1 Message Date
Greg Karékinian
32f620e95c Update the wiki-1 node after Chef run 2022-05-11 16:23:18 +02:00
Greg Karékinian
e766a96d3b Update the discourse-2 node after Chef run 2022-05-11 16:23:18 +02:00
Greg Karékinian
a14cd9a74f New config for LDAP in Discourse 2022-05-11 16:23:18 +02:00
Greg Karékinian
0d133de1b8 New config and credentials for LDAP connection in mediawiki 2022-05-11 16:23:17 +02:00
6 changed files with 18 additions and 12 deletions

View File

@@ -1,23 +1,23 @@
{
"id": "mediawiki",
"db_pass": {
"encrypted_data": "bkvlD9N8a2EAoBDRcJ5Yhio7vQPnc5qMxH3Of/A/epieJZXBudkYrDaQZmbu\nSwYseFveqEleys4IbI+zTOaBN5LejDpH\n",
"iv": "OPbDsQjNBP7Yabsx\n",
"auth_tag": "0cl2nkL0V07cWC5SZjNXBA==\n",
"encrypted_data": "giNnksOeZDSsoBSsF/RvaVIbtgp5EpRJnbZdH4nt755Tx3ZjHj8Hl6kvXo2t\n34l6/6jjwUIiig1vxKt8+2pHm1hXAbJ9\n",
"iv": "hnDHoyGbZyuQVG5f\n",
"auth_tag": "3oNeFn22P25qwJ0KaVerxw==\n",
"version": 3,
"cipher": "aes-256-gcm"
},
"ldap_user": {
"encrypted_data": "+iKtv/pB8rU0kJYlhr/KNUM63uG5RpDUCduW9sakxwaMs7V5JetSdaUmabIk\np8EiF5FDvYLUWqq5SOblTfPELMY3C0j5XwgxDKo=\n",
"iv": "ynjajkZHawmcE81H\n",
"auth_tag": "cxcsojaQW8dFZHR50QnZjw==\n",
"encrypted_data": "bA21rCjUKGFMxSK3BSmKmIe7JS4C8IU062abpRAe8OBqypLgbgv+YpPiF+v3\nscfMaydHNg9qtK1MzP33MmRkI43q7o2TJXpI6+vZA2Y=\n",
"iv": "78mNymw45lR0spXg\n",
"auth_tag": "3RdUdoQsquNLUAV+POkcRQ==\n",
"version": 3,
"cipher": "aes-256-gcm"
},
"ldap_password": {
"encrypted_data": "Kb5/RiGyXEf0X4KAgprCrZU+lFaWYuu6gjSXanujWxXx5YUdQLzZ\n",
"iv": "U1JBexbrnmJ4HNSZ\n",
"auth_tag": "LDeG8mOM5iLxy/VslTakSg==\n",
"encrypted_data": "lEaG+bHkMftmJENQ99h+HfRaYFYw4HI/ugwfwKJU2A==\n",
"iv": "31oRFt2sXKay+sy1\n",
"auth_tag": "tfkRa3lUZkj2PTl39APTTw==\n",
"version": 3,
"cipher": "aes-256-gcm"
}

View File

@@ -33,6 +33,7 @@
"postfix::_attributes",
"postfix::sasl_auth",
"hostname::default",
"kosmos-dirsrv::hostsfile",
"firewall::default",
"chef-sugar::default"
],

View File

@@ -8,7 +8,7 @@
"automatic": {
"fqdn": "wiki-1",
"os": "linux",
"os_version": "5.4.0-54-generic",
"os_version": "5.4.0-91-generic",
"hostname": "wiki-1",
"ipaddress": "192.168.122.26",
"roles": [
@@ -40,6 +40,7 @@
"php::package",
"php::ini",
"composer::global_configs",
"kosmos-dirsrv::hostsfile",
"mediawiki::default",
"mediawiki::database",
"kosmos-nginx::default",

View File

@@ -27,6 +27,7 @@
include_recipe 'apt'
include_recipe 'ark'
include_recipe 'composer'
include_recipe 'kosmos-dirsrv::hostsfile'
server_name = 'wiki.kosmos.org'
@@ -158,7 +159,7 @@ if node["mediawiki"]["ldap_enabled"]
package "php-ldap"
ldap_domain = node['kosmos-dirsrv']['master_hostname']
ldap_encryption_type = node.chef_environment == "development" ? "clear" : "tls"
ldap_encryption_type = "clear"
ldap_base = "ou=kosmos.org,cn=users,dc=kosmos,dc=org"
end

View File

@@ -7,5 +7,6 @@ long_description 'Installs/Configures kosmos_discourse'
version '0.1.0'
chef_version '>= 14.0'
depends "kosmos-nginx"
depends 'kosmos-nginx'
depends 'firewall'
depends 'kosmos-dirsrv'

View File

@@ -3,6 +3,8 @@
# Recipe:: default
#
include_recipe "kosmos-dirsrv::hostsfile"
package "docker-compose"
deploy_path = "/opt/discourse"