You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by grkvlt <gi...@git.apache.org> on 2016/05/31 00:26:11 UTC
[GitHub] brooklyn-server pull request: [WIP] Configure JcloudsLocationCusto...
GitHub user grkvlt opened a pull request:
https://github.com/apache/brooklyn-server/pull/168
[WIP] Configure JcloudsLocationCustomizer as an entity initializer
This modifies the `BasicJcloudsLocationCustomizer` to implement `EntityInitializer` so that customizers can be configured on a per-entity basis by adding them to the `brooklyn.initializers` section of a YAML blueprint. The customizer will be initialized with a `ConfigBag` containing the contents of `brooklyn.config` and the `apply()` method then adds the customizer to the `JCLOUDS_LOCATION_CUSTOMIZERS` configuration key, so that it is picked up during `obtain()`.
The new `InstallPackagesCustomizer` added here is based on discussion on the Brooklyn list, and creates a new `BashCommands#installPackages()` command and runs it on the newly provisioned machine.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/grkvlt/brooklyn-server add-jclouds-customizer
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/brooklyn-server/pull/168.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #168
----
commit d3b4d1b412ff5cdf52333d141c424fa254242680
Author: Andrew Donald Kennedy <an...@cloudsoftcorp.com>
Date: 2016-05-30T19:13:42Z
Configure JcloudsLocationCustomizer as an entity initializer
- Add new InstallPackagesCustomizer
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] brooklyn-server issue #168: [WIP] Configure JcloudsLocationCustomizer as an ...
Posted by neykov <gi...@git.apache.org>.
Github user neykov commented on the issue:
https://github.com/apache/brooklyn-server/pull/168
@grkvlt can you update based on the https://github.com/apache/brooklyn-server/pull/429 changes or close if no longer applicable.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] brooklyn-server pull request #168: [WIP] Configure JcloudsLocationCustomizer...
Posted by grkvlt <gi...@git.apache.org>.
Github user grkvlt closed the pull request at:
https://github.com/apache/brooklyn-server/pull/168
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] brooklyn-server pull request: [WIP] Configure JcloudsLocationCusto...
Posted by andreaturli <gi...@git.apache.org>.
Github user andreaturli commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/168#discussion_r65126357
--- Diff: locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/InstallPackagesCustomizer.java ---
@@ -0,0 +1,109 @@
+/*
+ * 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.
+ */
+package org.apache.brooklyn.location.jclouds;
--- End diff --
Isn't this applicable to every SshMachineLocation? Is it possible to use it in non jclouds location as well?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] brooklyn-server issue #168: [WIP] Configure JcloudsLocationCustomizer as an ...
Posted by grkvlt <gi...@git.apache.org>.
Github user grkvlt commented on the issue:
https://github.com/apache/brooklyn-server/pull/168
Closing as replaced by #429
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] brooklyn-server pull request: [WIP] Configure JcloudsLocationCustomizer as a...
Posted by grkvlt <gi...@git.apache.org>.
Github user grkvlt commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/168#discussion_r65180381
--- Diff: locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/InstallPackagesCustomizer.java ---
@@ -0,0 +1,109 @@
+/*
+ * 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.
+ */
+package org.apache.brooklyn.location.jclouds;
--- End diff --
@andreaturli I think so, but the problem is that the `JcloudsLocationCustomizer` underlying it uses hooks that only exist in `JcloudsLocation` so that would need fixed. Maybe just use a plain `EntityInitializer` or, change completely to do things the way `CreateUserPolicy` works instead?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] brooklyn-server pull request: [WIP] Configure JcloudsLocationCustomizer as a...
Posted by andreaturli <gi...@git.apache.org>.
Github user andreaturli commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/168#discussion_r65182376
--- Diff: locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/InstallPackagesCustomizer.java ---
@@ -0,0 +1,109 @@
+/*
+ * 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.
+ */
+package org.apache.brooklyn.location.jclouds;
--- End diff --
I'd go for a plain `EntityInitializer` so that other locations like CenturyLink` could reuse it. Wdyt @aledsage and @ahgittin?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---