| <?xml version="1.0" encoding="windows-1252"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
| xmlns:shell="http://karaf.apache.org/xmlns/shell/v1.0.0" |
| xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" |
| xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"> |
| |
| <!-- Allow usage of System properties, especially the karaf.base property --> |
| <ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/> |
| |
| <cm:property-placeholder persistent-id="org.apache.provisionr.core" update-strategy="reload"> |
| <cm:default-properties> |
| <cm:property name="privateKeyPath" value="$[user.home]/.ssh/id_rsa"/> |
| <cm:property name="publicKeyPath" value="$[user.home]/.ssh/id_rsa.pub"/> |
| </cm:default-properties> |
| </cm:property-placeholder> |
| |
| <reference-list id="provisionrServices" interface="org.apache.provisionr.api.Provisionr" |
| availability="optional" activation="eager"/> |
| |
| <reference-list id="templates" interface="org.apache.provisionr.core.templates.PoolTemplate" |
| availability="optional" activation="eager"/> |
| |
| <reference id="processEngine" interface="org.activiti.engine.ProcessEngine"/> |
| |
| <shell:command-bundle> |
| <shell:command name="provisionr/services"> |
| <shell:action class="org.apache.provisionr.commands.ListServicesCommand"> |
| <shell:argument ref="provisionrServices"/> |
| </shell:action> |
| </shell:command> |
| <shell:command name="provisionr/pools"> |
| <shell:action class="org.apache.provisionr.commands.ListPoolsCommand"> |
| <shell:argument ref="processEngine"/> |
| </shell:action> |
| </shell:command> |
| <shell:command name="provisionr/templates"> |
| <shell:action class="org.apache.provisionr.commands.ListTemplatesCommand"> |
| <shell:argument ref="templates"/> |
| </shell:action> |
| </shell:command> |
| <shell:command name="provisionr/create"> |
| <shell:action class="org.apache.provisionr.commands.CreatePoolCommand"> |
| <shell:argument ref="provisionrServices"/> |
| <shell:argument ref="templates"/> |
| <shell:argument value="${publicKeyPath}"/> |
| <shell:argument value="${privateKeyPath}"/> |
| </shell:action> |
| </shell:command> |
| <shell:command name="provisionr/destroy"> |
| <shell:action class="org.apache.provisionr.commands.DestroyPoolCommand"> |
| <shell:argument ref="provisionrServices"/> |
| <shell:argument ref="processEngine"/> |
| </shell:action> |
| </shell:command> |
| <shell:command name="provisionr/reset-retries"> |
| <shell:action class="org.apache.provisionr.commands.ResetRetriesCommand"> |
| <shell:argument ref="processEngine"/> |
| </shell:action> |
| </shell:command> |
| </shell:command-bundle> |
| </blueprint> |