-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
572 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
roles/internal/Islandora-Devops.crayfish/templates/Homarus.config.yaml.j2
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
roles/internal/Islandora-Devops.crayfish/templates/Homarus/packages/crayfish_commons.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
crayfish_commons: | ||
fedora_base_uri: {{ crayfish_homarus_fedora_base_url }} | ||
syn_config: {{ crayfish_homarus_jwt_config }} |
12 changes: 12 additions & 0 deletions
12
roles/internal/Islandora-Devops.crayfish/templates/Homarus/packages/dev/monolog.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# This file managed by Ansible | ||
|
||
monolog: | ||
|
||
handlers: | ||
|
||
homarus: | ||
type: rotating_file | ||
path: {{ crayfish_homarus_log_file }} | ||
level: {{ crayfish_homarus_log_level }} | ||
max_files: 1 |
12 changes: 12 additions & 0 deletions
12
roles/internal/Islandora-Devops.crayfish/templates/Homarus/packages/prod/monolog.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# This file managed by Ansible | ||
|
||
monolog: | ||
|
||
handlers: | ||
|
||
homarus: | ||
type: rotating_file | ||
path: {{ crayfish_homarus_log_file }} | ||
level: {{ crayfish_homarus_log_level }} | ||
max_files: 1 |
40 changes: 40 additions & 0 deletions
40
roles/internal/Islandora-Devops.crayfish/templates/Homarus/packages/security.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This file managed by Ansible | ||
|
||
# To disable Syn checking, set syn_enabled=false in crayfish_commons.yaml and remove this configuration file. | ||
security: | ||
|
||
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers | ||
providers: | ||
jwt_user_provider: | ||
id: Islandora\Crayfish\Commons\Syn\JwtUserProvider | ||
|
||
firewalls: | ||
dev: | ||
pattern: ^/(_(profiler|wdt)|css|images|js)/ | ||
security: false | ||
main: | ||
# Need stateless or it reloads the User based on a token. | ||
stateless: true | ||
{%if crayfish_homarus_jwt_enabled == true %} | ||
anonymous: false | ||
|
||
provider: jwt_user_provider | ||
guard: | ||
authenticators: | ||
- Islandora\Crayfish\Commons\Syn\JwtAuthenticator | ||
|
||
# activate different ways to authenticate | ||
# https://symfony.com/doc/current/security.html#firewalls-authentication | ||
|
||
# https://symfony.com/doc/current/security/impersonating_user.html | ||
# switch_user: true | ||
|
||
|
||
# Easy way to control access for large sections of your site | ||
# Note: Only the *first* access control that matches will be used | ||
access_control: | ||
# - { path: ^/admin, roles: ROLE_ADMIN } | ||
# - { path: ^/profile, roles: ROLE_USER } | ||
{% else %} | ||
anonymous: true | ||
{% endif %} |
12 changes: 12 additions & 0 deletions
12
roles/internal/Islandora-Devops.crayfish/templates/Homarus/packages/test/monolog.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# This file managed by Ansible | ||
|
||
monolog: | ||
|
||
handlers: | ||
|
||
homarus: | ||
type: rotating_file | ||
path: {{ crayfish_homarus_log_file }} | ||
level: {{ crayfish_homarus_log_level }} | ||
max_files: 1 |
45 changes: 45 additions & 0 deletions
45
roles/internal/Islandora-Devops.crayfish/templates/Homarus/services.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
# Managed by Ansible | ||
|
||
# This file is the entry point to configure your own services. | ||
# Files in the packages/ subdirectory configure your dependencies. | ||
|
||
# Put parameters here that don't need to change on each machine where the app is deployed | ||
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration | ||
|
||
parameters: | ||
app.executable: {{ crayfish_homarus_executable_config.executable }} | ||
app.formats.valid: | ||
{% for valid_format in crayfish_homarus_executable_config.formats.valid %} | ||
- mimetype: {{ valid_format['mimetype'] }} | ||
format: {{ valid_format['format'] }} | ||
{% endfor %} | ||
app.formats.defaults: | ||
mimetype: {{ crayfish_homarus_executable_config.formats.default.mimetype }} | ||
format: {{ crayfish_homarus_executable_config.formats.default.format }} | ||
|
||
services: | ||
# default configuration for services in *this* file | ||
_defaults: | ||
autowire: true # Automatically injects dependencies in your services. | ||
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. | ||
|
||
# makes classes in src/ available to be used as services | ||
# this creates a service per class whose id is the fully-qualified class name | ||
App\Islandora\Homarus\: | ||
resource: '../src/*' | ||
exclude: | ||
- '../src/DependencyInjection/' | ||
- '../src/Entity/' | ||
- '../src/Kernel.php' | ||
- '../src/Tests/' | ||
|
||
# controllers are imported separately to make sure services can be injected | ||
# as action arguments even if you don't extend any base controller class | ||
App\Islandora\Homarus\Controller\HomarusController: | ||
public: false | ||
arguments: | ||
$formats: '%app.formats.valid%' | ||
$defaults: '%app.formats.defaults%' | ||
$executable: '%app.executable%' | ||
tags: ['controller.service_arguments'] |
1 change: 0 additions & 1 deletion
1
roles/internal/Islandora-Devops.crayfish/templates/Houdini/packages/crayfish_commons.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
crayfish_commons: | ||
fedora_base_uri: {{ crayfish_houdini_fedora_base_url }} | ||
syn_config: {{ crayfish_houdini_jwt_config }} | ||
syn_enabled: {{ crayfish_houdini_jwt_enabled }} |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
roles/internal/Islandora-Devops.crayfish/templates/Houdini/packages/prod/monolog.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# This file managed by Ansible | ||
|
||
monolog: | ||
|
||
handlers: | ||
|
||
houdini: | ||
type: rotating_file | ||
path: {{ crayfish_houdini_log_file }} | ||
level: {{ crayfish_houdini_log_level }} | ||
max_files: 1 |
12 changes: 12 additions & 0 deletions
12
roles/internal/Islandora-Devops.crayfish/templates/Houdini/packages/test/monolog.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# This file managed by Ansible | ||
|
||
monolog: | ||
|
||
handlers: | ||
|
||
houdini: | ||
type: rotating_file | ||
path: {{ crayfish_houdini_log_file }} | ||
level: {{ crayfish_houdini_log_level }} | ||
max_files: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
roles/internal/Islandora-Devops.crayfish/templates/Hypercube.config.yaml.j2
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
.../internal/Islandora-Devops.crayfish/templates/Hypercube/packages/crayfish_commons.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
crayfish_commons: | ||
fedora_base_uri: {{ crayfish_hypercube_fedora_base_url }} | ||
syn_config: {{ crayfish_hypercube_jwt_config }} |
Oops, something went wrong.