Comments (3)
Hi @titansmc
Indeed. that's by design. It override the context part of a template.
I think you want to merge both.
There are some new helpers to manage easily structure into the goca since the last version. But there not used yet.
Until now it was not possible to marge CONTEXT easily so the idea was to override the CONTEXT if it is provided in the VM.
In your case, I invite you to put all variables into the VM directly until a fix is available.
It is not clear yet when it will be the case
Regards
from terraform-provider-opennebula.
@titansmc if you want to give it a try I made some changes to enable this behavior:
- take the keys from the template context part
- override context keys with them from the VM
These changes are on top of some other changes we need to do to update the provider (See PR #13 it's under review).
It seems ok to me, but feel free to leave a comment :)
NOTE: It miss a test case to create a VM using a template (via template_id
attribute), with some more checks on the context overriding. It depends on #12 to add template creation for test purposes.
from terraform-provider-opennebula.
Added by #13
Feel free to reopen the issue if something wrong :)
from terraform-provider-opennebula.
Related Issues (20)
- Wrong `random_passwd` type
- Introduce `opennebula_virtual_machine_disk_attachment` to prevent issues when replacing image HOT 1
- `v1.4.0` documentation fixes
- Issue with Services: Unable to Create Reserve from Network HOT 6
- Security group management leads to detach and attach of the NIC HOT 3
- How to set the owner of a virtual network? HOT 3
- ```cpumodel``` Crash report HOT 1
- virtual machine (ID: 14): unexpected state 'POWEROFF', wanted target 'RUNNING'. last error: %!s(<nil>) HOT 2
- Impossible to update context of Virtual Router instances
- Add memory, CPU and disk costs in the template resource HOT 2
- It is not possible to add more than a PCI device (passthrough) to a VM HOT 1
- Error creating Ceph Datastore: "SYSTEM datastores cannot have DS_MAD defined"
- Trailing space in `CEPH_HOST` when creating a Ceph datastore
- Missing Data Source for opennebula_virtual_network_address_range
- `opennebula_service` does not honor idempotence (OneKE) HOT 1
- `opennebula_virtual_router_nic`: Add floating_only argument
- Extend `nic` section, add missing arguments like METHOD, GATEWAY or DNS..
- When attempting to create a Ceph datastore of type "IMAGE", the following error occurs: HOT 2
- `opennebula_service` should support role scale operation HOT 1
- VNet address reservation on VNet (inside cluster) looses cluster_ids information on subsequent terraform apply runs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-opennebula.