Skip to content

Matrix Federation #953

Merged
cg505 merged 4 commits into
masterfrom
matrix-wellknown
Apr 30, 2020
Merged

Matrix Federation #953
cg505 merged 4 commits into
masterfrom
matrix-wellknown

Conversation

@expedited
Copy link
Copy Markdown
Contributor

Changes

  • Added JSON response to be served in puppet file
  • Updated Apache configuration to specify path for puppet file and created an alias for this path.

Addresses ocf/matrix#1

@expedited expedited requested review from cg505 and nikhiljha April 29, 2020 23:53
@ocfbot
Copy link
Copy Markdown
Contributor

ocfbot commented Apr 29, 2020

Errored hosts (0)

Changed hosts (2)

Unaffected hosts (128)


Changed hosts
diff for death.ocf.berkeley.edu, dev-death.ocf.berkeley.edu
*******************************************
  Apache::Vhost[www] =>
   parameters =>
     aliases =>
      + [{"alias"=>"/.well-known/matrix/server", "path"=>"/var/www/html/.well-known/matrix/server"}]
*******************************************
+ Concat::Fragment[www-aliases] =>
   parameters =>
     "content": "  ## Alias declarations for resources outside the DocumentRoot\n...
     "order": 20,
     "target": "25-www.conf"
*******************************************
  Concat::Fragment[www-rewrite] =>
   parameters =>
     content =>
      @@ -9,4 +9,5 @@
         RewriteCond %{REQUEST_URI} !^/icons/
         RewriteCond %{REQUEST_URI} !^/metrics
      +  RewriteCond %{REQUEST_URI} !^/\.well-known/matrix
         RewriteRule ^/(.*)$ http://lb.ocf.berkeley.edu:4080/$1 [P]
      _
*******************************************
+ Concat_fragment[www-aliases] =>
   parameters =>
     "content": "  ## Alias declarations for resources outside the DocumentRoot\n...
     "order": 20,
     "tag": "25-www.conf",
     "target": "25-www.conf"
*******************************************
  Concat_fragment[www-rewrite] =>
   parameters =>
     content =>
      @@ -9,4 +9,5 @@
         RewriteCond %{REQUEST_URI} !^/icons/
         RewriteCond %{REQUEST_URI} !^/metrics
      +  RewriteCond %{REQUEST_URI} !^/\.well-known/matrix
         RewriteRule ^/(.*)$ http://lb.ocf.berkeley.edu:4080/$1 [P]
      _
*******************************************
+ File[/var/www/html/.well-known/matrix/server] =>
   parameters =>
     "backup": "main",
     "content": "{\n    \"m.server\": \"matrix.ocf.berkeley.edu:443\"\n}\n",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
+ File[/var/www/html/.well-known/matrix] =>
   parameters =>
     "backup": "main",
     "ensure": "directory",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
+ File[/var/www/html/.well-known] =>
   parameters =>
     "backup": "main",
     "ensure": "directory",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
Unaffected hosts
acid.ocf.berkeley.edu
alamo.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
apocalypse.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
bigrip.ocf.berkeley.edu
biohazard.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blackrain.ocf.berkeley.edu
blight.ocf.berkeley.edu
blizzard.ocf.berkeley.edu
bolide.ocf.berkeley.edu
calamity.ocf.berkeley.edu
chaos.ocf.berkeley.edu
coma.ocf.berkeley.edu
corruption.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
dev-anthrax.ocf.berkeley.edu
dev-dementors.ocf.berkeley.edu
dev-fallingrocks.ocf.berkeley.edu
dev-firestorm.ocf.berkeley.edu
dev-flood.ocf.berkeley.edu
dev-whiteout.ocf.berkeley.edu
drought.ocf.berkeley.edu
eruption.ocf.berkeley.edu
failure.ocf.berkeley.edu
fallingrocks.ocf.berkeley.edu
fallout.ocf.berkeley.edu
falsevacuum.ocf.berkeley.edu
famine.ocf.berkeley.edu
fire.ocf.berkeley.edu
fireball.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
flood.ocf.berkeley.edu
fraud.ocf.berkeley.edu
fukushima.ocf.berkeley.edu
gnats.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
hal.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hellfire.ocf.berkeley.edu
hozer-67.ocf.berkeley.edu
hozer-70.ocf.berkeley.edu
hozer-72.ocf.berkeley.edu
hozer-73.ocf.berkeley.edu
hozer-74.ocf.berkeley.edu
hozer-80.ocf.berkeley.edu
hozer-81.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
invasion.ocf.berkeley.edu
jaws.ocf.berkeley.edu
koolaid.ocf.berkeley.edu
leprosy.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
limniceruption.ocf.berkeley.edu
locusts.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
malaria.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
mudslide.ocf.berkeley.edu
nuke.ocf.berkeley.edu
oilspill.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pandemic.ocf.berkeley.edu
panic.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
pgp.ocf.berkeley.edu
pileup.ocf.berkeley.edu
plague.ocf.berkeley.edu
pompeii.ocf.berkeley.edu
pox.ocf.berkeley.edu
quarantine.ocf.berkeley.edu
quicksand.ocf.berkeley.edu
ragnarok.ocf.berkeley.edu
rapture.ocf.berkeley.edu
reaper.ocf.berkeley.edu
rejection.ocf.berkeley.edu
riot.ocf.berkeley.edu
riptide.ocf.berkeley.edu
sarin.ocf.berkeley.edu
sauron.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
segfault.ocf.berkeley.edu
shipwreck.ocf.berkeley.edu
singularity.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
smallpox.ocf.berkeley.edu
solarflare.ocf.berkeley.edu
spectre.ocf.berkeley.edu
stackclash.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
tempest.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tornado.ocf.berkeley.edu
trojan.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
typhoon.ocf.berkeley.edu
vampires.ocf.berkeley.edu
venom.ocf.berkeley.edu
virus.ocf.berkeley.edu
volcano.ocf.berkeley.edu
vortex.ocf.berkeley.edu
walpurgisnacht.ocf.berkeley.edu
war.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
worm.ocf.berkeley.edu
y2k.ocf.berkeley.edu
zerg.ocf.berkeley.edu
zombies.ocf.berkeley.edu

Jenkins

Copy link
Copy Markdown
Member

@nikhiljha nikhiljha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👌

Comment thread modules/ocf_www/manifests/site/www.pp Outdated
# ...hide ocfweb metrics
'%{REQUEST_URI} !^/metrics',
# ...and not if it's the matrix well-known file
'%{REQUEST_URI} !^/\.well-known/matrix',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation looked right when you were in vim but now it doesn't? Estoy confundido.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the linter did that? I wonder if I try to fix it if it will do it again

Copy link
Copy Markdown
Member

@cg505 cg505 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good work! just formatting nits

Comment thread modules/ocf_www/manifests/site/www.pp Outdated
proxy_preserve_host => true,

aliases => [
{ alias => '/.well-known/matrix/server',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably put alias on its own line to be consistent with the other sections

Comment thread modules/ocf_www/manifests/site/www.pp Outdated
# ...hide ocfweb metrics
'%{REQUEST_URI} !^/metrics',
# ...and not if it's the matrix well-known file
'%{REQUEST_URI} !^/\.well-known/matrix',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^

@expedited
Copy link
Copy Markdown
Contributor Author

Thanks for handling @cg505 :)

@cg505
Copy link
Copy Markdown
Member

cg505 commented Apr 30, 2020

it didn't work tho :(

@ocfbot
Copy link
Copy Markdown
Contributor

ocfbot commented Apr 30, 2020

Errored hosts (0)

Changed hosts (3)

Unaffected hosts (127)


Changed hosts
diff for dev-fallingrocks.ocf.berkeley.edu
*******************************************
  Exec[systemctl-daemon-reload] =>
   parameters =>
     path =>
      - /opt/share/utils/bin:/opt/share/utils/sbin:/usr/local/sbin:/usr/local/bin:/opt/puppetlabs/bin:/usr/sbin:/usr/bin:/sbin:/bin
      + /opt/puppetlabs/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*******************************************
diff for dev-death.ocf.berkeley.edu
*******************************************
  Apache::Vhost[www] =>
   parameters =>
     aliases =>
      + [{"alias"=>"/.well-known/matrix/server", "path"=>"/var/www/html/.well-known/matrix/server"}]
*******************************************
+ Concat::Fragment[www-aliases] =>
   parameters =>
     "content": "  ## Alias declarations for resources outside the DocumentRoot\n...
     "order": 20,
     "target": "25-www.conf"
*******************************************
  Concat::Fragment[www-rewrite] =>
   parameters =>
     content =>
      @@ -9,4 +9,5 @@
         RewriteCond %{REQUEST_URI} !^/icons/
         RewriteCond %{REQUEST_URI} !^/metrics
      +  RewriteCond %{REQUEST_URI} !^/\.well-known/matrix
         RewriteRule ^/(.*)$ http://lb.ocf.berkeley.edu:4080/$1 [P]
      _
*******************************************
+ Concat_fragment[www-aliases] =>
   parameters =>
     "content": "  ## Alias declarations for resources outside the DocumentRoot\n...
     "order": 20,
     "tag": "25-www.conf",
     "target": "25-www.conf"
*******************************************
  Concat_fragment[www-rewrite] =>
   parameters =>
     content =>
      @@ -9,4 +9,5 @@
         RewriteCond %{REQUEST_URI} !^/icons/
         RewriteCond %{REQUEST_URI} !^/metrics
      +  RewriteCond %{REQUEST_URI} !^/\.well-known/matrix
         RewriteRule ^/(.*)$ http://lb.ocf.berkeley.edu:4080/$1 [P]
      _
*******************************************
  Exec[systemctl-daemon-reload] =>
   parameters =>
     path =>
      - /opt/share/utils/bin:/opt/share/utils/sbin:/usr/local/sbin:/usr/local/bin:/opt/puppetlabs/bin:/usr/sbin:/usr/bin:/sbin:/bin
      + /opt/puppetlabs/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*******************************************
+ File[/var/www/html/.well-known/matrix/server] =>
   parameters =>
     "backup": "main",
     "content": "{\n    \"m.server\": \"matrix.ocf.berkeley.edu:443\"\n}\n",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
+ File[/var/www/html/.well-known/matrix] =>
   parameters =>
     "backup": "main",
     "ensure": "directory",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
+ File[/var/www/html/.well-known] =>
   parameters =>
     "backup": "main",
     "ensure": "directory",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
diff for death.ocf.berkeley.edu
*******************************************
  Apache::Vhost[www] =>
   parameters =>
     aliases =>
      + [{"alias"=>"/.well-known/matrix/server", "path"=>"/var/www/html/.well-known/matrix/server"}]
*******************************************
+ Concat::Fragment[www-aliases] =>
   parameters =>
     "content": "  ## Alias declarations for resources outside the DocumentRoot\n...
     "order": 20,
     "target": "25-www.conf"
*******************************************
  Concat::Fragment[www-rewrite] =>
   parameters =>
     content =>
      @@ -9,4 +9,5 @@
         RewriteCond %{REQUEST_URI} !^/icons/
         RewriteCond %{REQUEST_URI} !^/metrics
      +  RewriteCond %{REQUEST_URI} !^/\.well-known/matrix
         RewriteRule ^/(.*)$ http://lb.ocf.berkeley.edu:4080/$1 [P]
      _
*******************************************
+ Concat_fragment[www-aliases] =>
   parameters =>
     "content": "  ## Alias declarations for resources outside the DocumentRoot\n...
     "order": 20,
     "tag": "25-www.conf",
     "target": "25-www.conf"
*******************************************
  Concat_fragment[www-rewrite] =>
   parameters =>
     content =>
      @@ -9,4 +9,5 @@
         RewriteCond %{REQUEST_URI} !^/icons/
         RewriteCond %{REQUEST_URI} !^/metrics
      +  RewriteCond %{REQUEST_URI} !^/\.well-known/matrix
         RewriteRule ^/(.*)$ http://lb.ocf.berkeley.edu:4080/$1 [P]
      _
*******************************************
+ File[/var/www/html/.well-known/matrix/server] =>
   parameters =>
     "backup": "main",
     "content": "{\n    \"m.server\": \"matrix.ocf.berkeley.edu:443\"\n}\n",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
+ File[/var/www/html/.well-known/matrix] =>
   parameters =>
     "backup": "main",
     "ensure": "directory",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
+ File[/var/www/html/.well-known] =>
   parameters =>
     "backup": "main",
     "ensure": "directory",
     "group": "root",
     "mode": "0644",
     "owner": "root"
*******************************************
Unaffected hosts
acid.ocf.berkeley.edu
alamo.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
apocalypse.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
bigrip.ocf.berkeley.edu
biohazard.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blackrain.ocf.berkeley.edu
blight.ocf.berkeley.edu
blizzard.ocf.berkeley.edu
bolide.ocf.berkeley.edu
calamity.ocf.berkeley.edu
chaos.ocf.berkeley.edu
coma.ocf.berkeley.edu
corruption.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
dev-anthrax.ocf.berkeley.edu
dev-dementors.ocf.berkeley.edu
dev-firestorm.ocf.berkeley.edu
dev-flood.ocf.berkeley.edu
dev-whiteout.ocf.berkeley.edu
drought.ocf.berkeley.edu
eruption.ocf.berkeley.edu
failure.ocf.berkeley.edu
fallingrocks.ocf.berkeley.edu
fallout.ocf.berkeley.edu
falsevacuum.ocf.berkeley.edu
famine.ocf.berkeley.edu
fire.ocf.berkeley.edu
fireball.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
flood.ocf.berkeley.edu
fraud.ocf.berkeley.edu
fukushima.ocf.berkeley.edu
gnats.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
hal.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hellfire.ocf.berkeley.edu
hozer-67.ocf.berkeley.edu
hozer-70.ocf.berkeley.edu
hozer-72.ocf.berkeley.edu
hozer-73.ocf.berkeley.edu
hozer-74.ocf.berkeley.edu
hozer-80.ocf.berkeley.edu
hozer-81.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
invasion.ocf.berkeley.edu
jaws.ocf.berkeley.edu
koolaid.ocf.berkeley.edu
leprosy.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
limniceruption.ocf.berkeley.edu
locusts.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
malaria.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
mudslide.ocf.berkeley.edu
nuke.ocf.berkeley.edu
oilspill.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pandemic.ocf.berkeley.edu
panic.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
pgp.ocf.berkeley.edu
pileup.ocf.berkeley.edu
plague.ocf.berkeley.edu
pompeii.ocf.berkeley.edu
pox.ocf.berkeley.edu
quarantine.ocf.berkeley.edu
quicksand.ocf.berkeley.edu
ragnarok.ocf.berkeley.edu
rapture.ocf.berkeley.edu
reaper.ocf.berkeley.edu
rejection.ocf.berkeley.edu
riot.ocf.berkeley.edu
riptide.ocf.berkeley.edu
sarin.ocf.berkeley.edu
sauron.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
segfault.ocf.berkeley.edu
shipwreck.ocf.berkeley.edu
singularity.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
smallpox.ocf.berkeley.edu
solarflare.ocf.berkeley.edu
spectre.ocf.berkeley.edu
stackclash.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
tempest.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tornado.ocf.berkeley.edu
trojan.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
typhoon.ocf.berkeley.edu
vampires.ocf.berkeley.edu
venom.ocf.berkeley.edu
virus.ocf.berkeley.edu
volcano.ocf.berkeley.edu
vortex.ocf.berkeley.edu
walpurgisnacht.ocf.berkeley.edu
war.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
worm.ocf.berkeley.edu
y2k.ocf.berkeley.edu
zerg.ocf.berkeley.edu
zombies.ocf.berkeley.edu

Jenkins

@cg505 cg505 merged commit cd42a42 into master Apr 30, 2020
@cg505 cg505 deleted the matrix-wellknown branch April 30, 2020 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants