Hello,

You can run rake db:seed multiple times and it should always only seed missing 
data (non-destructive). If you want to be extra sure, just do the db backup 
beforehand. And yes, the file that you linked should create template kinds and 
templates.

Hope this helps

--
Marek

On čtvrtek 9. března 2017 14:12:42 CET Tyler Gregory wrote:
> Yes, I did that when setting up the environment initially. I assume this
> <https://github.com/theforeman/foreman/blob/develop/db/seeds.d/07-provisioni
> ng_templates.rb> is the seed file which populates the DB with the templates
> and their types? Is it possible to run that independently of the other seed
> tasks? If I were to run db:seed again would it be non-destructive to data
> I've entered already, such as compute resources?
> 
> On Thursday, March 9, 2017 at 3:37:52 PM UTC-6, ohadlevy wrote:
> > On Thu, Mar 9, 2017 at 10:46 PM, Tyler Gregory <[email protected]
> > 
> > <javascript:>> wrote:
> >> Hello all,
> >> 
> >> I'm developing a plugin so that foreman can use Azure Resource Manager,
> >> and I'm at the point where I would like to start deploying some VMs. I've
> >> set up a development environment as described here
> >> <https://www.theforeman.org/contribute.html#Setuptestenvironment>,
> >> however there are no provisioning templates available. When I try to
> >> create
> >> them, the "Type" field is empty, and when I try to use the templates
> >> plugin <https://github.com/theforeman/foreman_templates> to sync
> >> templates I get errors about the templates being of an unrecognized type,
> >> eg:
> >> 
> >> Skipping: 'Community Alterator default finish' - Unknown template kind
> >> 'finish'
> >> Skipping: 'Community Alterator default' - Unknown template kind
> >> 'provision'
> >> Skipping: 'Community Alterator default PXELinux' - Unknown template kind
> >> 'PXELinux'
> >> Skipping: 'Community AutoYaST default iPXE' - Unknown template kind
> >> 'iPXE'
> >> 
> >> I assume there's a rake task I need to run or some such, but being
> >> unfamiliar with Foreman itself and only slightly more familiar with RoR
> >> development I thought I'd ask instead of risking trashing my environment.
> >> 
> >> Platform Configuration:
> >>    - MacOS 10.12.3
> >>    - Ruby 2.1.9
> >>    - Using SQLite db
> >>    - Developing against 1.14-stable
> >>    - Only change to Foreman itself has been to update fog-core to 1.43
> >>    to satisfy a dependency of fog-azure-rm
> > 
> > Just double checking, did you rake db:seed ?
> > 
> > Ohad
> > 
> >> Any help is much appreciated


-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to