| aticig | 30d8e41 | 2022-06-28 01:56:51 +0300 | [diff] [blame] | 1 | # Copyright 2022 Canonical Ltd. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | # |
| 15 | # For those usages not covered by the Apache License, Version 2.0 please |
| 16 | # contact: legal@canonical.com |
| 17 | # |
| 18 | # To get in touch with the maintainers, please contact: |
| 19 | # osm-charmers@lists.launchpad.net |
| 20 | # |
| 21 | # |
| 22 | # This file populates the Configure tab on Charmhub. |
| 23 | # See https://juju.is/docs/some-url-to-be-determined/ for a checklist and guidance. |
| 24 | |
| 25 | options: |
| 26 | log-level: |
| 27 | default: "INFO" |
| 28 | description: | |
| 29 | Set the Logging Level. |
| 30 | |
| 31 | Options: |
| 32 | - TRACE |
| 33 | - DEBUG |
| 34 | - INFO |
| 35 | - WARN |
| 36 | - ERROR |
| 37 | - FATAL |
| 38 | type: string |
| 39 | database-commonkey: |
| 40 | description: Database COMMON KEY |
| 41 | type: string |
| 42 | default: osm |
| 43 | # Helm options |
| 44 | helm-stable-repo-url: |
| 45 | description: Stable repository URL for Helm charts |
| 46 | type: string |
| 47 | default: https://charts.helm.sh/stable |
| 48 | helm-ca-certs: |
| 49 | description: CA certificates to validate access to Helm repository |
| 50 | type: string |
| 51 | default: "" |
| 52 | # Debug-mode options |
| 53 | debug-mode: |
| 54 | type: boolean |
| 55 | description: | |
| 56 | Great for OSM Developers! (Not recommended for production deployments) |
| Daniel Arndt | 68bc894 | 2023-02-21 11:48:27 -0400 | [diff] [blame] | 57 | |
| aticig | 30d8e41 | 2022-06-28 01:56:51 +0300 | [diff] [blame] | 58 | This action activates the Debug Mode, which sets up the container to be ready for debugging. |
| 59 | As part of the setup, SSH is enabled and a VSCode workspace file is automatically populated. |
| 60 | |
| 61 | After enabling the debug-mode, execute the following command to get the information you need |
| 62 | to start debugging: |
| Daniel Arndt | 68bc894 | 2023-02-21 11:48:27 -0400 | [diff] [blame] | 63 | `juju run-action <unit name> get-debug-mode-information --wait` |
| 64 | |
| aticig | 30d8e41 | 2022-06-28 01:56:51 +0300 | [diff] [blame] | 65 | The previous command returns the command you need to execute, and the SSH password that was set. |
| 66 | |
| 67 | See also: |
| 68 | - https://charmhub.io/osm-lcm/configure#lcm-hostpath |
| 69 | - https://charmhub.io/osm-lcm/configure#n2vc-hostpath |
| 70 | - https://charmhub.io/osm-lcm/configure#common-hostpath |
| 71 | default: false |
| 72 | lcm-hostpath: |
| 73 | type: string |
| 74 | description: | |
| 75 | Set this config to the local path of the LCM module to persist the changes done during the |
| 76 | debug-mode session. |
| 77 | |
| 78 | Example: |
| 79 | $ git clone "https://osm.etsi.org/gerrit/osm/LCM" /home/ubuntu/LCM |
| 80 | $ juju config lcm lcm-hostpath=/home/ubuntu/LCM |
| 81 | |
| Daniel Arndt | 68bc894 | 2023-02-21 11:48:27 -0400 | [diff] [blame] | 82 | This configuration only applies if option `debug-mode` is set to true. |
| aticig | 30d8e41 | 2022-06-28 01:56:51 +0300 | [diff] [blame] | 83 | n2vc-hostpath: |
| 84 | type: string |
| 85 | description: | |
| 86 | Set this config to the local path of the N2VC module to persist the changes done during the |
| 87 | debug-mode session. |
| 88 | |
| 89 | Example: |
| 90 | $ git clone "https://osm.etsi.org/gerrit/osm/N2VC" /home/ubuntu/N2VC |
| 91 | $ juju config lcm n2vc-hostpath=/home/ubuntu/N2VC |
| 92 | |
| 93 | This configuration only applies if option `debug-mode` is set to true. |
| 94 | common-hostpath: |
| 95 | type: string |
| 96 | description: | |
| 97 | Set this config to the local path of the common module to persist the changes done during the |
| 98 | debug-mode session. |
| 99 | |
| 100 | Example: |
| 101 | $ git clone "https://osm.etsi.org/gerrit/osm/common" /home/ubuntu/common |
| 102 | $ juju config lcm common-hostpath=/home/ubuntu/common |
| 103 | |
| Daniel Arndt | 68bc894 | 2023-02-21 11:48:27 -0400 | [diff] [blame] | 104 | This configuration only applies if option `debug-mode` is set to true. |