rahulkj / cloudfoundry-custom-tools Goto Github PK
View Code? Open in Web Editor NEWSome basic tools to deal with CloudFoundry environments
License: MIT License
Some basic tools to deal with CloudFoundry environments
License: MIT License
The secret types are swapped for the value
key and secret
key.
example/properties.json
{
".mysql.password": {
"value": {
"secret": "***"
}
},
}
./scripts/generate-tasks example/properties.json example/resources.json example-product ./manifests
Entry within example-product.sh
:
properties_config=$(jq -n \
--arg password $PASSWORD
'{
".mysql.password": {
"secret": {
"value": $password
}
}
}'
)
Entry within example-product.sh
:
properties_config=$(jq -n \
--arg password $PASSWORD
'{
".mysql.password": {
"value": {
"secret": $password
}
}
}'
)
The input name is hard-coded assuming the name of the custom pipelines-repo is call pipelines-repo
: https://github.com/rahul-kj/cloudfoundry-custom-tools/blob/master/scripts/generate-tasks#L111. Add a configuration to set the input name.
Using the last portion of the key via splitting on .
is causing duplicate entries.
example/properties.json
{
".mysql.skip_name_resolve": {
"value": true
},
".properties.skip_name_resolve": {
"value": false
}
}
./scripts/generate-tasks example/properties.json example/resources.json example-product ./manifests
Entry within example-product.sh
:
properties_config=$(jq -n \
--arg skip_name_resolve $SKIP_NAME_RESOLVE
--arg skip_name_resolve $SKIP_NAME_RESOLVE
'{
".mysql.skip_name_resolve": {
"value": $skip_name_resolve
},
".properties.skip_name_resolve": {
"value": $skip_name_resolve
}
}'
)
Entry within example-product.sh
:
properties_config=$(jq -n \
--arg mysql_skip_name_resolve $MYSQL_SKIP_NAME_RESOLVE
--arg properties_skip_name_resolve $PROPERTIES_SKIP_NAME_RESOLVE
'{
".mysql.skip_name_resolve": {
"value": $mysql_skip_name_resolve
},
".properties.skip_name_resolve": {
"value": $properties_skip_name_resolve
}
}'
)
The Opsman variables are being defined in the format OPS_MGR_%s
: https://github.com/rahul-kj/cloudfoundry-custom-tools/blob/master/scripts/generate-tasks#L24. But the om
command uses OPSMAN_DOMAIN_OR_IP_ADDRESS
: https://github.com/rahul-kj/cloudfoundry-custom-tools/blob/master/scripts/generate-tasks#L170.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.