BSA Best Practices Webinar - Packaging 1.2
description
Transcript of BSA Best Practices Webinar - Packaging 1.2
© Copyright 9/10/13 BMC So4ware, Inc 1
Argen=na: 0800 444 6440 Australia: 1 800 612 415 Austria: 0800 295 780 Bahamas: 1 800 389 0491 Belgium: 0 800 75 636 Brazil: 0800 891 0266 Bulgaria: 00 800 115 1141 Chile: 123 0020 6707 China, Northern Region: 10 800 714
1509 China, Southern Region: 10 800 140
1376 Colombia: 01 800 518 1171 Czech Republic: 800 700 715 Denmark: 80 883 277 Dominican Republic: 1 888 752 0002 France: 0 800 914 176 Germany: 0 800 183 0299 Greece: 00 800 161 2205 6440 Hong Kong: 800 968 066
Hungary: 06 800 112 82 India: 000 800 1007 613 Indonesia: 001 803 017 6440 Ireland: 1 800 947 415 Israel: 1 80 925 6440 Italy: 800 789 377 Japan: 00348 0040 1009 Latvia: 8000 3523 Lithuania: 8 800 3 09 64 Luxembourg: 800 2 3214 Malaysia: 1 800 814 723 Mexico: 001 800 514 6440 Monaco: 800 39 593 Netherlands: 0 800 022 1465 New Zealand: 0 800 451 520 Norway: 800 138 41 Panama: 00 800 226 6440 Peru: 0800 54 129
Philippines: 1 800 111 010 55 Poland: 00 800 112 41 42 Portugal: 800 827 538 Russian Federa=on: 810 800 2915 1012 Singapore: 800 101 2320 Slovenia: 0 800 80439 South Africa: 0 800 982 304 South Korea, Korea, Republic Of: 003 0813 2344 Spain: 900 937 665 Sweden: 02 079 3266 Switzerland: 0 800 894 821 Taiwan: 00 801 127 186 Thailand: 001 800 156 205 2068 Trinidad and Tobago: 1 800 205 6440 United Kingdom: 0 808 101 7156 Uruguay: 0004 019 0348 Venezuela: 0 800 100 8540
INTERNATIONAL TOLL FREE: Par0cipant Code: 625920
Best Practices: BSA Packaging & Deployment
Sean Berry Customer Engineering
BSA Best Prac=ces Webinar Packaging & Deployment
© Copyright 9/10/13 BMC So4ware, Inc 3
! What’s the value? What’s it do?
! Plaborms / Technologies
! How does it work?
! Advanced Topics
Agenda
What’s the value? What’s it do?
© Copyright 9/10/13 BMC So4ware, Inc 5
Value!
! Deploy: - So4ware - Configura=ons - Applica=ons
! Na=ve rollback (never have to “make up” the rollback on a change =cket again)
! Flexible Packaging - Parameters, passwords
© Copyright 9/10/13 BMC So4ware, Inc 6
Common use cases (What do you want to do?)
! Install packaged so4ware - Executables
! Install unpackaged so4ware
! Push a configura=on - Config file entries (resolv.conf, /etc/passwd, hosts, etc.) - User accounts - Add user to Administrators group - New/updated files - Enable automated rollback
© Copyright 9/10/13 BMC So4ware, Inc 7
How Packages Are Used
! One copy of the package, stored in BSA as a “golden” package - Some=mes subject to greater control - Audit trail
! Externally referenced package - Maintained by others? - Updated/owned externally
! Embedding a process - Infrastructure agents
§ Pre-‐flight § So4ware Execu=on § External tasks: restarts/user adds
© Copyright 9/10/13 BMC So4ware, Inc 8
What’s the promise?
! Package any piece of so4ware, in 4.2 seconds, with no effort whatsoever, and deploy EVERYWHERE
© Copyright 9/10/13 BMC So4ware, Inc 9
What’s the reality?
! You –can-‐ package almost anything
! But commands lines can be hard
! Not all applica=ons behave well when silently installed
! Not all applica=ons can –be-‐ silently installed
! What installs easily on one system may fail due to differences or dependencies on another
© Copyright 9/10/13 BMC So4ware, Inc 10
Cut to the chase: I’m impa=ent!
! Upgrade to a Modern BSA version! - (at least in your lab!) - (8.2 SP4+/8.3 SP1+ preferred as of early August 2013) - Actually, much of this Just Works, and has for a long =me.
! Content Packs!
! BSA Packaging Docs - hrps://docs.bmc.com/docs/display/public/bsa83/Deploying+files+and+applica=ons+using+packages+and+depot+objects
- hrps://docs.bmc.com/docs/display/public/bsa83/Adding+or+removing+Windows+users
! Get it working on the command line –then-‐ package the install
! Keep undo & log files when tes=ng deployments!
PlaOorms/Technologies/Buzzwords
© Copyright 9/10/13 BMC So4ware, Inc 12
Why package instead of just scrip=ng + file deploys?
! GUI Packaging is available to everyone with the console
! Built-‐in rollback
! Built-‐in commands (don’t need to teach your users arcane command lines to deploy their apps)
! Strong error handling - Pass or con=nue on “known error codes” - Manage reboot requirements
© Copyright 9/10/13 BMC So4ware, Inc 13
What kinds of packages are there?
! BLPackages - Patented - Almost any kind of configura=on object
§ Most other depot objects § Local users & groups § Config Files & Entries § Files & Directories § Executables & Scripts § External Commands
© Copyright 9/10/13 BMC So4ware, Inc 14
So4ware Packages
! hrps://docs.bmc.com/docs/display/public/bsa83/So4ware+package+overview
© Copyright 9/10/13 BMC So4ware, Inc 15
Patches & Service Packs
! Commonly added via Patching Jobs
! Manually: Depot -‐> New -‐> So4ware -‐> Hobixhrps://docs.bmc.com/docs/display/public/bsa83/Adding+a+hobix+to+the+Depot
How does this stuff generally work?
© Copyright 9/10/13 BMC So4ware, Inc 17
How does so4ware get into BSA?
! Patches/payloads: via Patch Catalog Updates or Patch Remedia=on
! 3rd Party So4ware: usually manually added, commonly used for install/uninstall
! In-‐house applica=ons: most commonly packaged automa=cally from components
! Audit / Snapshot results hrps://docs.bmc.com/docs/display/public/bsa83/Bundling+snapshot+results+into+a+BLPackage
! Op=on: Mount at install =me! (NFS)
© Copyright 9/10/13 BMC So4ware, Inc 18
So4ware Installs
! Ideally use exis=ng packages
! Start with a known working package, or test installs on already-‐built boxes,
! Don't use automated provisioning to test so4ware install commands un=l you know they work (poten=ally very long lead =me & very frustra=ng) - Build one “fresh” instance of the machine and work on the install on that machine
! Don’t delete So4ware Deploy Jobs, change their payloads or targets (dependency trees)
© Copyright 9/10/13 BMC So4ware, Inc 19
Strengths / Weaknesses of Different Kinds of Packages
! BLPackage - Very strong roll-‐back, stop-‐on failure, XML-‐based, parameterizable, can include all kinds of objects. Great for packaging in-‐house apps from components: baked in parameteriza=on. -‐> then usually need to add post-‐install commands
- Great way to bake process into deployment, pre-‐flight checks, ability to check state, roll back on error, prevent further deployment etc.
- Trivially package adding user accounts, service stop/start, bake most configura=on items into process without needing to know command lines & trap failure modes.
- Many files: In older versions some issues seen with many many files (10-‐100k+) as every instruc=on needs to be read/parsed/executed + rollback stored. Consider using a zip file to extract many files.
- Also only does so well with very large files (Several GB+). - Supports repeaters - Nothing wrong with wrapping "net use" into a BLPackage if it's significantly faster to do/there is good organized fileserver availability in your org.
© Copyright 9/10/13 BMC So4ware, Inc 20
Strengths / Weaknesses of Different Kinds of Packages
! So4ware Packages (OS-‐specific): - Generally berer handling for OS-‐specific packages (MSIEXEC, Solaris SysV answer files, etc.), but OOTB examples are dated at this point.
- Supports repeaters
! File Deploy Job: - "rsync-‐like" characteris=cs, works with any file anywhere there's a BSA agent (or any filesystem mounted on a BSA agent, in the case of SMB/NFS file servers…)
- Some=mes -‐great-‐ for large website content (think 100,000 files, permissions, etc.).
- Contrast with audit-‐>deploy, which creates a BLPackage, may be much faster than audit/deploy for many objects, avoids fileserver footprint
! NSH Script: - Very flexible, doesn't bring payloads along, no parameteriza=on. Doesn't support repeaters
! "File”: - great for things that don't need code to deploy them (standalone binary executables, web content, etc.)
© Copyright 9/10/13 BMC So4ware, Inc 21
Ways to Build Packages
! Direct crea=on in the GUI (s=ll very common)
! Package from Component
! Automated: - Scripts - BLCLI - SOAP
! Ini=ated by: - Web Portals - Patching Job Remedia=on - Change requests
© Copyright 9/10/13 BMC So4ware, Inc 22
Ways to deploy packages
! BLDeploy Job - targe=ng BLPackage, - has good simula=on, check for space, - Be carefule with very large payloads + small installed disk footprint.
! So4ware Deploy Job, targe=ng so4ware package
! File Deploy Job
! hrps://docs.bmc.com/docs/display/public/bsa83/Crea=ng+a+Deploy+Job
Next Steps
© Copyright 9/10/13 BMC So4ware, Inc 24
Parameterized Packaging
! Create a template with a simple part, like a directory.
! Add a local property to the template
! Parameterize the part: “C:\App” becomes “??DEPLOY_PATH??”
! Create/discover components on two hosts
! Package, set property, deploy.
© Copyright 9/10/13 BMC So4ware, Inc 25
Where can I get Content?
! Blade Essen=als Content Packages
! Security & Compliance Content (EPD) - Includes remedia=on instruc=ons for many common security configura=ons
! Communi=es!
© Copyright 9/10/13 BMC So4ware, Inc 26
Global Deployments
! Repeaters vs. Data stores
! Replica=on - File Deploy Jobs - NAS-‐based
! Longer =meouts
© Copyright 9/10/13 BMC So4ware, Inc 27
Server Proper=es
! hrps://docs.bmc.com/docs/display/public/bsa83/Server+proper=es+controlling+Deploy+Job+behavior
! IS_DEPLOYABLE
! TRANSACTIONS_DIR
! DEPLOY_ALLOW_NFS_DURING_SUM
! JOB_TIMEOUT
! JOB_PART_TIMEOUT
© Copyright 9/10/13 BMC So4ware, Inc 28
RBAC
! Common to build packages with .Read: anyone can deploy them
! Common to migrate using the “Promote to QA” / “Promote to Prod” type Authoriza=on Profiles
! File server *must* be setup correctly or weird errors will happen (map to single user in ACLs)
© Copyright 9/10/13 BMC So4ware, Inc 29
External Commands
! Use na=ve syntax: “C:\Windows” vs. “/C/Windows”
! “cmd /c” preferred over “start /wait”
! Can use “su -‐” if mapping to root
© Copyright 9/10/13 BMC So4ware, Inc 30
Setup
! Where should I set this up (the first =me)? - A lab! - (not that kind of Lab!)
! Somewhere you have: - control or knowledge of the network,
- know the environment, and - can quickly troubleshoot issues.
© Copyright 9/10/13 BMC So4ware, Inc 31
For More Informa=on
! Next =me: different format! - More videos, in advance! - More focused Q&A
! BMC Communi=es – Server Automa=on: hrps://communi=es.bmc.com/community/bmcdn/bmc_service_automa=on/server_configura=on_automa=on_bladelogic
Q&A
© Copyright 9/10/13 BMC So4ware, Inc 33
Learn more at www.bmc.com