Sponsored Content
Full Discussion: zfs and flash archives
Operating Systems Solaris zfs and flash archives Post 302285247 by houston on Sunday 8th of February 2009 03:13:48 AM
Old 02-08-2009
If you are using sunWjet package then you might have to include zfs module in your template.
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Jumpstart and Flash Archives

Ladies and Gentlemen: I am short on time and need to get up to speed fast on the use of flash archives. I am very familiar with Jumpstart and have used it successfully for the past 5 years. The current project I am working on requires optimization of time and speed when deploying systems which is... (0 Replies)
Discussion started by: rambo15
0 Replies

2. Solaris

Solaris Jumpstart and Flash Archives

Ladies and Gentlemen: I am short on time and need to get up to speed fast on the use of flash archives. I am very familiar with Jumpstart and have used it successfully for the past 5 years. The current project I am working on requires optimization of time and speed when deploying systems which is... (4 Replies)
Discussion started by: rambo15
4 Replies

3. UNIX for Dummies Questions & Answers

flash archives

HI, are you supposed to run flarcreate in multi user mode? or should you do it in single user? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

4. Solaris

bootable X86 dvd and flash archives

I have created a bootable DVD for X86 using a flash archive, the problem is that I have to specify the location at the beginning of the install. I have edited the any_machine profile under ./jumpstart_sample to contain the following install_type flash_install archive_location ... (4 Replies)
Discussion started by: eeisken
4 Replies

5. Solaris

ZFS root + Flash archive in update7

Has ZFS root is being supported in flash archive in the recently released update 7 .. i read a specific patch has been released for this , can anyone let me know that , and have anybody tested it if its working fine or not ? (1 Reply)
Discussion started by: fugitive
1 Replies

6. Solaris

Flash Archives - A little bit of help :-)

Hi all Okay, I know how to make flash archives, and I even know how to split them and extract files. But, Ive never used one to restore an OS drive and I might have to. Ive search around google, and seen different ideas / ways, but havent really come to a definate answer. So, lets... (3 Replies)
Discussion started by: sbk1972
3 Replies

7. Solaris

zfs root flash archive issue

I have created a flash archive from a Ldom on T5220 with zfs root solaris 10_u8. But after creation of flar the info shows the content_architectures=sun4c,sun4d,sun4m,sun4u,sun4us,sun4s but not sun4v due to which i 'm unable to install this flash archive on another Ldom on the same host. Is... (0 Replies)
Discussion started by: fugitive
0 Replies

8. Solaris

Flash Archive Jumpstart with multiple ZFS Pools

Hi, I'm trying to get a Flash Archive Jumpstart Running with ZFS Filesystem. For Testing I set up a VirtualBox VM with 2 Disks attached. On the first disk I have the ZFS root pool, on the second Disk I have some more ZFS Pools which I use for 2 additional Zones I've set up. Restoring works fine if... (1 Reply)
Discussion started by: NoelzeN
1 Replies
CGI::FormBuilder::Template(3pm) 			User Contributed Perl Documentation			   CGI::FormBuilder::Template(3pm)

NAME
CGI::FormBuilder::Template - Template adapters for FormBuilder SYNOPSIS
# Define a template engine package CGI::FormBuilder::Template::Whatever; use base 'Whatever::Template::Module'; sub new { my $self = shift; my $class = ref($self) || $self; my %opt = @_; # override some options $opt{some_setting} = 0; $opt{another_var} = 'Some Value'; # instantiate the template engine $opt{engine} = Whatever::Template::Module->new(%opt); return bless \%opt, $class; } sub render { my $self = shift; my $form = shift; # only arg is form object # grab any manually-set template params my %tmplvar = $form->tmpl_param; # example template manipulation my $html = $self->{engine}->do_template(%tmplvar); return $html; # scalar HTML is returned } DESCRIPTION
This documentation describes the usage of FormBuilder templates, as well as how to write your own template adapter. The template engines serve as adapters between CPAN template modules and FormBuilder. A template engine is invoked by using the "template" option to the top-level "new()" method: my $form = CGI::FormBuilder->new( template => 'filename.tmpl' ); This example points to a filename that contains an "HTML::Template" compatible template to use to layout the HTML. You can also specify the "template" option as a reference to a hash, allowing you to further customize the template processing options, or use other template engines. For example, you could turn on caching in "HTML::Template" with something like the following: my $form = CGI::FormBuilder->new( fields => @fields, template => { filename => 'form.tmpl', shared_cache => 1 } ); As mentioned, specifying a hashref allows you to use an alternate template processing system like the "Template Toolkit". A minimal configuration would look like this: my $form = CGI::FormBuilder->new( fields => @fields, template => { type => 'TT2', # use Template Toolkit template => 'form.tmpl', }, ); The "type" option specifies the name of the engine. Currently accepted types are: Builtin - Included, default rendering if no template specified Div - Render form using <div> (no tables) HTML - HTML::Template Text - Text::Template TT2 - Template Toolkit Fast - CGI::FastTemplate CGI_SSI - CGI::SSI In addition to one of these types, you can also specify a complete package name, in which case that module will be autoloaded and its "new()" and "render()" routines used. For example: my $form = CGI::FormBuilder->new( fields => @fields, template => { type => 'My::Template::Module', template => 'form.tmpl', }, ); All other options besides "type" are passed to the constructor for that templating system verbatim, so you'll need to consult those docs to see what all the different options do. Skip down to "SEE ALSO". SUBCLASSING TEMPLATE ADAPTERS
In addition to the above included template engines, it is also possible to write your own rendering module. If you come up with something cool, please let the mailing list know! To do so, you need to write a module which has a sub called "render()". This sub will be called by FormBuilder when "$form->render" is called. This sub can do basically whatever it wants, the only thing it has to do is return a scalar string which is the HTML to print out. This is actually not hard. Here's a simple adapter which would manipulate an "HTML::Template" style template: # This file is My/HTML/Template.pm package My::HTML::Template; use CGI::FormBuilder::Template::HTML; use base 'CGI::FormBuilder::Template::HTML'; sub render { my $self = shift; # class object my $form = shift; # $form as only argument # the template object (engine) lives here my $tmpl = $self->engine; # setup vars for our fields (objects) for ($form->field) { $tmpl->param($_ => $_->value); } # render output my $html = $tmpl->output; # return scalar; return $html; } 1; # close module Then in FormBuilder: use CGI::FormBuilder; use My::HTML::Template; # your module my $tmpl = My::HTML::Template->new; my $form = CGI::FormBuilder->new( fields => [qw(name email)], header => 1, template => $tmpl # pass template object ); # set our company from an extra CGI param my $co = $form->cgi_param('company'); $tmpl->engine->param(company => $co); # and render like normal print $form->render; That's it! For more details, the best thing to do is look through the guts of one of the existing template engines and go from there. SEE ALSO
CGI::FormBuilder, CGI::FormBuilder::Template::HTML, CGI::FormBuilder::Template::Text, CGI::FormBuilder::Template::TT2, CGI::FormBuilder::Template::Fast, CGI::FormBuilder::Template::CGI_SSI REVISION
$Id: Template.pm 97 2007-02-06 17:10:39Z nwiger $ AUTHOR
Copyright (c) Nate Wiger <http://nateware.com>. All Rights Reserved. This module is free software; you may copy this under the terms of the GNU General Public License, or the Artistic License, copies of which should have accompanied your Perl kit. perl v5.14.2 2011-09-16 CGI::FormBuilder::Template(3pm)
All times are GMT -4. The time now is 02:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy