Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from NodeJS/Gitbook back to Ruby/Jekyll, using latest Ruby #315

Merged
merged 42 commits into from
May 21, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
173148c
Revert "This closes #222"
ahgittin Sep 4, 2018
73f2627
ignore stuff from gitbook
ahgittin Sep 4, 2018
c26c8b9
Merge commit '5d11e405' into release-5.0-reverted-222
ahgittin Sep 4, 2018
22ef529
Merge commit 'ba27cf1b' into release-5.0-reverted-222
ahgittin Sep 4, 2018
90ef120
Revert "Merge commit 'ba27cf1b' into release-5.0-reverted-222"
ahgittin Sep 4, 2018
d1efaf7
Merge commit 'ba01df1a' into release-5.0-reverted-222
ahgittin Sep 4, 2018
b40c7ed
Merge commit '68ec56c3' into release-5.0-reverted-222
ahgittin Sep 4, 2018
f970695
Merge commit '3772c215' into release-5.0-reverted-222
ahgittin Sep 4, 2018
2698dbc
Merge commit '9d9028de' into release-5.0-reverted-222
ahgittin Sep 4, 2018
7d808f6
Merge commit '40c59c6c' into release-5.0-reverted-222
ahgittin Sep 4, 2018
15afba3
Merge commit '892400e4' into release-5.0-reverted-222
ahgittin Sep 4, 2018
b726b16
Merge commit '7402753b' into release-5.0-reverted-222
ahgittin Sep 4, 2018
42f4eba
Merge commit 'cd6242aa' into release-5.0-reverted-222
ahgittin Sep 4, 2018
499186d
Merge commit '62cf36a7' into release-5.0-reverted-222
ahgittin Sep 4, 2018
1f518ac
Merge commit '6c4d98ed' into release-5.0-reverted-222
ahgittin Sep 4, 2018
c28417f
Merge commit 'd00c98a7' into release-5.0-reverted-222
ahgittin Sep 4, 2018
a75819e
Merge commit '2c20b30f' into release-5.0-reverted-222
ahgittin Sep 4, 2018
d4f7185
Merge commit '5b78602c' into release-5.0-reverted-222
ahgittin Sep 4, 2018
cf28bf4
Merge commit '2f2ed97c' into release-5.0-reverted-222
ahgittin Sep 4, 2018
a0314df
Merge commit '1a922025' into release-5.0-reverted-222
ahgittin Sep 4, 2018
d616fbf
Merge remote-tracking branch 'origin/latest-upstream' into release-5.…
ahgittin Sep 4, 2018
a7dbdc2
Merge branch 'master' of github.com:apache/brooklyn-docs
nakomis Feb 5, 2019
c08d9b8
Merge apache-brooklyn/master as at commit c0b4ab45
richardcloudsoft Feb 25, 2021
dae7d77
Merge apache-brooklyn/master as at commit 42aa8274
richardcloudsoft Feb 25, 2021
1e0f1be
Merge apache-brooklyn/master as at commit f38fb8bb
richardcloudsoft Feb 25, 2021
93fa774
Merge apache-brooklyn/master as at commit edc13bd6
richardcloudsoft Feb 25, 2021
a6c7aaf
Merge apache-brooklyn/master as at commit 5237ea65
richardcloudsoft Feb 25, 2021
06230ce
Merge apache-brooklyn/master as at commit 6b410121
richardcloudsoft Feb 25, 2021
28a107a
Merge apache-brooklyn/master as at commit 84156e39
richardcloudsoft Feb 26, 2021
a116321
Resolve issues from merge
richardcloudsoft Mar 12, 2021
f8243c7
Merge branch 'master' into ruby-3
ahgittin May 20, 2021
f2f2f61
updating to latest ruby - 3.0.1 - ruby installs but doesn't yet run
ahgittin May 20, 2021
18c08d2
making new jekyll run - it needs a theme installed
ahgittin May 20, 2021
199567d
add webrick gem - needed to serve
ahgittin May 20, 2021
9772a69
remove package.json stuff - leftover from gitbook
ahgittin May 20, 2021
0eda085
fix some paths from gitbook
ahgittin May 20, 2021
484143d
restore title of available / off-the-shelf policies
ahgittin May 20, 2021
ce81908
fix various jekyll run problems
ahgittin May 20, 2021
8cbdb82
apply similar liquid cache workaround for page
ahgittin May 20, 2021
8c3b55e
avoid use of assign tag in liquid
ahgittin May 20, 2021
0b6a90c
fix instructions
ahgittin May 20, 2021
9b13e52
add a few dangling pages to the tree
ahgittin May 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/latest-upstream' into release-5.…
…0-reverted-222

fix various places where this conflicted with reversion of 222 or caused errors
  • Loading branch information
ahgittin committed Sep 4, 2018
commit d616fbf0334c5cafae3b6e40b9253742cec63b5e
4 changes: 3 additions & 1 deletion guide/blueprints/ansible/creating-ansible-blueprints.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,6 @@ services:
https_port: 8443
admin_username: admin
admin_password: secret
```
```


7 changes: 4 additions & 3 deletions guide/blueprints/creating-yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ Here's a very simple YAML blueprint plan, to explain the structure:
This is the meat of the blueprint plan, as you'll see below.

Finally, the clipboard in the top-right corner of the example plan box above (hover your cursor over the box) lets you easily copy-and-paste into the web-console:
simply [download and launch]({{ site.path.guide }}/start/running.html) Brooklyn,
then in the "Create Application" dialog at the web console
(usually [http://127.0.0.1:8081/](http://127.0.0.1:8081/), paste the copied YAML into the "Yaml" tab of the dialog and press "Finish".
simply [download and launch]({{book.path.docs}}/start/running.md) Brooklyn,
open a new browser window (usually) at [http://127.0.0.1:8081/](http://127.0.0.1:8081/).
Click on the tile "Blueprint Composer", then on the double-arrow located on the top right of the screen (to switch to the YAML mode),
paste the copied YAML into the editor and press "Deploy".
There are several other ways to deploy, including `curl` and via the command-line,
and you can configure users, https, persistence, and more,
as described [in the ops guide]({{ site.path.guide }}/ops/).
Expand Down
83 changes: 7 additions & 76 deletions guide/blueprints/entity-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,16 @@ blueprint (i.e. inside the `brooklyn.config` block).
It can also explicitly declare config keys, using the `brooklyn.parameters` block. The example
below illustrates the principle:

{% highlight yaml %}
brooklyn.catalog:
items:
- id: entity-config-example
itemType: entity
name: Entity Config Example
item:
type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess
brooklyn.parameters:
- name: custom.message
type: string
description: Message to be displayed
default: Hello
brooklyn.config:
shell.env:
MESSAGE: $brooklyn:config("custom.message")
launch.command: |
echo "My example launch command: $MESSAGE"
checkRunning.command: |
echo "My example checkRunning command: $MESSAGE"
{% endhighlight %}
!CODEFILE "example_yaml/entity-config-catalog.yaml"

Once added to the catalog, it can be used with the simple blueprint below (substituting the location
of your choice). Because no configuration has been overridden, this will use the default value
for `custom.message`, and will use the given values for `launch.command` and `checkRunning.command`:

{% highlight yaml %}
location: aws-ec2:us-east-1
services:
- type: entity-config-example
{% endhighlight %}
!CODEFILE "example_yaml/entity-config-app.yaml"

For details of how to write and add catalog items, see [Catalog]({{ site.path.guide }}/blueprints/catalog/).
For details of how to write and add catalog items, see [Catalog]({{book.path.docs}}/blueprints/catalog/index.md),
and for a complete reference on the syntax of `brooklyn.parameters` see that section of the [YAML Reference]({{book.path.docs}}/blueprints/yaml-reference.md).


#### Config Key Constraints
Expand All @@ -91,48 +68,11 @@ can be any of:

This is illustrated in the example below:

{% highlight yaml %}
brooklyn.catalog:
items:
- id: entity-constraint-example
itemType: entity
name: Entity Config Example
item:
type: org.apache.brooklyn.entity.stock.BasicEntity
brooklyn.parameters:
- name: compulsoryExample
type: string
constraints:
- required
- name: addressExample
type: string
constraints:
- regex: ^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$
- name: numberExample
type: double
constraints:
- $brooklyn:object:
type: org.apache.brooklyn.util.math.MathPredicates
factoryMethod.name: greaterThan
factoryMethod.args:
- 0.0
- $brooklyn:object:
type: org.apache.brooklyn.util.math.MathPredicates
factoryMethod.name: lessThan
factoryMethod.args:
- 256.0
{% endhighlight %}
!CODEFILE "example_yaml/entity-constraint-catalog.yaml"

An example usage of this toy example, once added to the catalog, is shown below:

{% highlight yaml %}
services:
- type: entity-constraint-example
brooklyn.config:
compulsoryExample: foo
addressExample: 1.1.1.1
numberExample: 2.0
{% endhighlight %}
!CODEFILE "example_yaml/entity-constraint-app.yaml"


### Inheriting Configuration
Expand Down Expand Up @@ -167,16 +107,7 @@ consider the `entity-config-example` added to the catalog in the section
[Configuration in a Catalog Item](#configuration-in-a-catalog-item).
We can override these values. If not overridden, then the existing values from the super-type will be used:

{% highlight yaml %}
location: aws-ec2:us-east-1
services:
- type: entity-config-example
brooklyn.config:
custom.message: Goodbye
launch.command: |
echo "Sub-type launch command: $MESSAGE"
{% endhighlight %}

!CODEFILE "example_yaml/entity-config-override-app.yaml"


In this example, the `custom.message` overrides the default defined on the config key.
Expand Down
8 changes: 6 additions & 2 deletions guide/locations/_azure-ARM.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ We can now verify this information that this information can be used to log in t

az login --service-principal -u <Application-ID> --password abcd --tenant <Tenant-ID>

##### Azure CLI 1.0
Should you need to change the password, you can use the following command:

az ad app update --id <Application-ID> --password MyNewPassword

#### Azure CLI 1.0

Firstly, install and configure Azure CLI following [these steps](https://docs.microsoft.com/en-us/azure/cli-install-nodejs).

Expand All @@ -102,7 +106,7 @@ Using the Azure CLI, run the following commands to create a service principal
# For example: azure ad app create --name "myappname" --password abcd --home-page "https://myappwebsite" --identifier-uris "https://myappwebsite"

# Output will include a value for `Application Id`, which will be used for the live tests

# Create a Service Principal
azure ad sp create --applicationId <Application-id>

Expand Down
4 changes: 2 additions & 2 deletions guide/ops/cli/cli-usage-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ The value of a single configuration item can be displayed by using the configura
as a parameter for the `config` command:

{% highlight text %}
$ br app WebCluster entity thHnLFkP config datastore.creation.script.url
$ br app WebCluster entity thHnLFkP config datastore.creation.script.template.url
https://bit.ly/brooklyn-visitors-creation-script
{% endhighlight %}

The value of a configuration item can be changed by using the `set` command:

{% highlight text %}
$ br app WebCluster entity thHnLFkP config datastore.creation.script.url set \"https://bit.ly/new-script\"
$ br app WebCluster entity thHnLFkP config datastore.creation.script.template.url set \"https://bit.ly/new-script\"
{% endhighlight %}

## Sensors
Expand Down
2 changes: 1 addition & 1 deletion guide/ops/configuration/brooklyn_cfg.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The `users` line should contain a comma-separated list. The special value `*` is
To generate this, there is a script shipped with Brooklyn:

{% highlight bash %}
brooklyn generate-password --user admin
./bin/generate-password.sh --user admin

Enter password:
Re-enter password:
Expand Down
1 change: 1 addition & 0 deletions guide/ops/troubleshooting/connectivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ toc: /guide/toc.json
---

{% readj _connectivity.md %}

You are viewing a condensed version of this merge commit. You can view the full changes here.