Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
VMware vRealize Orchestrator Cookbook

You're reading from   VMware vRealize Orchestrator Cookbook Master the configuration, programming, and interaction of plugins with Orchestrator to efficiently automate your VMware infrastructure

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784392246
Length 382 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Daniel Langenhan Daniel Langenhan
Author Profile Icon Daniel Langenhan
Daniel Langenhan
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Installing and Configuring Orchestrator FREE CHAPTER 2. Optimizing Orchestrator Configuration 3. Visual Programming 4. Working with Plugins 5. Basic Orchestrator Operations 6. Advanced Operations 7. Working with VMware Infrastructure Index

File operations


In this recipe, we will explore how Orchestrator can interact with the filesystem of its operating system. We will also take a look at how to access a network share and execute local files.

Getting ready

Orchestrator needs to be able to access a directory on the local filesystem. To configure this access and set the access rights, take a look at the Configuring access to the local filesystem recipe in Chapter 2, Optimizing Orchestrator Configuration.

In addition to this, you should have administrative (root) access to Orchestrator's operating system.

In my example, I have granted full access (rwx) to the /orchestrator directory.

How to do it...

We have a bit of ground to cover, so let's start!

Writing a file

This part showcases how to write into a file with and without a line feed as well as how to append to an existing file:

  1. Create a new workflow and create the following variables:

    Name

    Type

    Section

    Use

    fileName

    String

    IN

    The name of the file, including its path

    fileContent...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image