Deploy VM from template with pyvmomi - vsphere

I’m new to python and pyvmomi
I have task to deploy a VM machine from a template,
I looked at examples under github but couldn’t find a script that do that,
https://github.com/vmware/pyvmomi
https://github.com/vmware/pyvmomi-community-samples
Can someone share example or reference to a guide ?

The link you provided to the community samples has the sample you are looking for. You need to look at the clone_vm.py file. There is an argument in there to allow you to set the template you are cloning from.

Related

Where can I find DSL documentations for a Jenkins plugin?

Im working with Jenkins DSL and pipelines. Where can I find DSL documentations for these plugins I've typically used GUIs to configure?
I find it hard to imagine that when a new plugin is published that it already supports DSL. (Or are they written in DSL?). Is there a way to find this documentation? Is there an example of a walkthrough to enumerate this?
Or is DSL support limited to 'first class citizen' plugins.
Some of the plugins I am using are azure, packer, maven. It's not the DSL documentation I am asking about, but going about hunting for it.
There isn't really a centralized place (that I know of) for this, as each plugin will publish its documentation differently.
In terms of where you can search:
Some plugin steps can be found on the jenkins.io website.
http://your-jenkins/pipeline-syntax for generated syntax for your version of Jenkins and plugin versions
The source code, since most Jenkins plugins are open source

Gulp unbuild from salesforce org

I am actually developping an application in a salesforce environment using MavensMate and Sublime Text 3, built with Gulp, in AngularJS from Yeoman.
I managed to connect my built application to salesforce thanks to CodeScience gulp angular tutorial on youtube, and can now develop my application locally, test it, build it, and finally send it to our org.
Right now i'm asking myself a question:
How can another person unbuild the metadata and static resources that I have built with Gulp after retrieving them using MavensMate ?
Isn't there any way to do it just so that we can work on different stuff on the project at the same time ?
That would be truely awesome, I haven't found a way to do it yet but will keep this post updated if I do.
Thanks for any help you might be able to provide.
I am the Director of Engineering at CodeScience. I'm glad you've had success with the Yeoman generator for our local SFDC UI stack. We use it a great deal internally to rapidly build SPAs in Salesforce. If I understand your question correctly, you are asking how to share code from a single or multiple SPAs (single page apps) with another developer. A better solution than sharing code through the static resource would be to use a version control solution like Git and a repository host like GitHub. We all work of our own branches (managed by push/pull requests) and branching in general works very well with our local build stack for rapid prototyping. Let me know if I, our or team can help you any further.
the answer is not to unbuild the static resource, but to distribute the source code to the other developers so they can build a new minified resource.

uBootstrap for Umbraco

I have a legacy Umbraco site which I need to make responsive. I decided to use uBootstrap for this. I downloaded the files, but I cannot find any documentation on how to integrate this with my current site. Is there something I need to install? There's no installer file.
There is documentation here, presumably where you downloaded it from:
http://our.umbraco.org/projects/starter-kits/ubootstrap
It is a starter kit, so you will probably only really be able to use it when you are creating a brand new site.
Packages listed at http://our.umbraco.org will always have a "Package discussions" link at the bottom for reading or raising questions just like this.

Can't create DotNetNuke module in VS2010, template issue?

I've been following the tutorial videos for DotNetNuke and i am at the part where i am now creating my own modules. I've installed everything i need to and put the template in the required folder, but whenever i try to create a project it comess up saying
"The local IIS URL http://dnndev/desktopmodules/... specified for Web project ... has not been configured"
It then asks me to create a virtual directory but says i cant because the server "http://dnndev" is not on the local machine.
I've searched for answers for a while now and have tried editing the template file and the host file but no matter what i try i always get the same message back. Does anyone know how i can fix this?
Thanks
If you follow these steps for setting up your Development environment than the templates should work as is.
http://www.dotnetnuke.com/Resources/Wiki/Page/development-environment.aspx
If you are using a different path for your website I would recommend customizing the templates.
http://www.dotnetnuke.com/Resources/Wiki/Page/Customize-Project-Template.aspx
I assume you are using dotnetnuke wiki page link which seems confusing. For better steps go to: http://www.dotnetnuke.com/Resources/Blogs/BlogID/16.aspx and locate "Let's Build a Module #1 - Project Introduction" which is a first video in step by step series of videos which will help you to clearly understand the process.
Let me know if you need more help.

How to setup a project to use TweetSharp

I am trying to follow Pete Brown's introductory WPF tutorial which makes use of the TweetSharp libraries to interact with Twitter.
I have downloaded what appears to be the latest TweetSharp binaries (and a few others including the ReleaseCandidate) from Codeplex (http://tweetsharp.codeplex.com/).
No matter what references I add and no matter what using statements I try, I cannot create a reference to the TwitterService for the FluentTwitter class.
I simply get the compiler error - "The type or namespace cannot be found".
Now I've noticed that the TweetSharp.dll that Pete references is 518KB but the one contained in each of my different downloads is only 84kb. (I've tried several times - I am getting the full download here).
The link from Pete's article to the TweetSharp libraries, no longer works (http://code.google.com/p/tweetsharp/).
What basic element am I missing here or what could I be doing wrong?
TweetSharp moved to CodePlex since that article was posted, which is why the link to Google Code is dead.
You need references to TweetSharp.dll, TweetSharp.Twitter.dll, (and for good measure Hammock.dll, and Newtonsoft.json.dll).
For using directives, if you're using the FluentTwitter approach:
using TweetSharp.Twitter.Fluent;
using TweetSharp.Twitter.Extensions;
using TweetSharp.Twitter.Model;
If you're using the TwitterService approach:
using TweetSharp.Twitter.Model;
using TweetSharp.Twitter.Service;
There are some other examples kicking around on CodePlex including some starter apps if you download the source code.
I think now it's in github https://github.com/danielcrenna/tweetsharp CodePlex didn't work for me?
Is the Tweetsharp library still on Codeplex? The link above has expired?
Or is Linq to Twitter a better option? I'm new to Twitter API and only need a few simple code examples (Search Feed, Geo Location & Post Photo to Twitter).

Resources